Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: MinGW32CE (arm-wince-mingw32ce
Submitted By: Ivan Maidanski (ivmai)
Assigned to: Nobody/Anonymous (nobody)
Summary: Suspicious ".data" symbols ordering
I've discovered that it symbols in .data section (unlike .bss one) are neither in the odrer they are defined in .c file nor in the reversed order if optimization is on.
I haven't seen such behavior in other compilers or gcc toolchains (I've checked VC++ 9, eVC++, MinGW, mingw-w64).
The test case attached (compile it with at least -O1; to make output goes to a log file, compile it with -DUSE_LOGFILE).