http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35700
Michael Savisko <savisko at yahoo dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |savisko at yahoo dot com --- Comment #5 from Michael Savisko <savisko at yahoo dot com> 2011-07-17 08:31:41 UTC --- I'm using WindRiver compiler based on gcc version 3.4.4 and I have the same compilation problem. However, from my observation the problem occurs because of -O1 compilation key. When change this to -O0 (or without optimization option at all) the problem disappears. Here's my compilation's command line: /raven/Tools/pkgs/WindRiver/1.4/gnu/3.4.4-wrlinux-1.4/x86-linux2/bin/i586-wrs-linux-gnu-i686p4-glibc_cgl-g++ -DMPC_WR14_COMPILATION -DBBND_TARGET_STRING=\"PMP-CE3100\" -c -MD -ggdb -march=i686 -mtune=i686 -m32 -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -D__USE_STRING_INLINES -O1 -feliminate-unused-debug-types -fno-keep-static-consts -fmerge-constants -fno-omit-frame-pointer -fno-builtin -fno-defer-pop -fthread-jumps -fif-conversion -fif-conversion2 -fvisibility-inlines-hidden -fregmove -Wall -Wextra -Winit-self -Wcast-align -Wfloat-equal -Wpointer-arith -Wsign-compare -Werror -Wformat=2 -Wswitch-enum -Wendif-labels -Wno-missing-format-attribute -Wnon-virtual-dtor -Wlarger-than-8388608