http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52911
--- Comment #2 from zuogang <zuogang at huawei dot com> 2012-04-11 15:01:55 UTC --- use another gcc(4.5.1) runing on the ppc e500v2 box (ship with Sourcery pdts), everything is ok! root@P2020RDB:/dev/shm> gcc -v Reading specs from /usr/bin/../lib/gcc/powerpc-linux-gnu/4.5.1/specs COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/bin/../libexec/gcc/powerpc-linux-gnu/4.5.1/lto-wrapper Target: powerpc-linux-gnu Configured with: /scratch/nathan/powerpc-linux-lite/src/gcc-4.5-2010.09/configure --build=i686-pc-linux-gnu --host=powerpc-boot-linux-gnu --target=powerpc-linux-gnu --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-long-double-128 --enable-targets=all --with-cpu-32=603e --with-cpu-64=e5500 --enable-secureplt --with-gnu-as --with-gnu-ld --with-specs='%{save-temps: -fverbose-asm} -D__CS_SOURCERYGXX_MAJ__=2010 -D__CS_SOURCERYGXX_MIN__=9 -D__CS_SOURCERYGXX_REV__=114 %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2010.09-114' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/freescale/usr/local/gcc-4.5.114-eglibc-2.11.114/powerpc-linux-gnu --with-sysroot=/opt/freescale/usr/local/gcc-4.5.114-eglibc-2.11.114/powerpc-linux-gnu/powerpc-linux-gnu/libc --with-build-sysroot=/scratch/nathan/powerpc-linux-lite/install/host-powerpc-e500v2-native/powerpc-linux-gnu/libc --with-gmp=/scratch/nathan/powerpc-linux-lite/obj/host-libs-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/usr --with-mpfr=/scratch/nathan/powerpc-linux-lite/obj/host-libs-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/usr --with-mpc=/scratch/nathan/powerpc-linux-lite/obj/host-libs-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/usr --with-ppl=/scratch/nathan/powerpc-linux-lite/obj/host-libs-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-cloog=/scratch/nathan/powerpc-linux-lite/obj/host-libs-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/usr --with-libelf=/scratch/nathan/powerpc-linux-lite/obj/host-libs-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/usr --enable-libgomp --with-cpu=native --with-float=native -disable-multilib --with-build-time-tools=/scratch/nathan/powerpc-linux-lite/obj/tools-i686-pc-linux-gnu-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/powerpc-linux-gnu/bin --with-build-time-tools=/scratch/nathan/powerpc-linux-lite/obj/tools-i686-pc-linux-gnu-2010.09-114-powerpc-linux-gnu-powerpc-e500v2-native/powerpc-linux-gnu/bin Thread model: posix gcc version 4.5.1 (Sourcery G++ Lite 2010.09-114) root@P2020RDB:/dev/shm> root@P2020RDB:/dev/shm> cat /proc/cpuinfo processor : 0 cpu : e500v2 clock : 1000.000000MHz revision : 4.0 (pvr 8021 1040) bogomips : 125.00 processor : 1 cpu : e500v2 clock : 1000.000000MHz revision : 4.0 (pvr 8021 1040) bogomips : 125.00 total bogomips : 250.00 timebase : 62500000 platform : P2020 RDB model : fsl,P2020 Memory : 1024 MB root@P2020RDB:/dev/shm>