http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45936
Summary: [4.6 regression] cc1 fails to generate target code with -O2 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: driver AssignedTo: unassig...@gcc.gnu.org ReportedBy: jojel...@gmail.com Created attachment 21990 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21990 preprocessed source gcc -mno-cygwin -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -g -DUSE_LIBICONV_GNU -I./obj -I./base -o ./obj/gxfill.o -c ./base/gxfill.c -save-temps -O2 -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-mingw32/4.6.0/lto-wrapper.exe Target: i686-pc-mingw32 Configured with: ./configure --prefix=/usr --disable-win32-registry --enable-threads=posix --enable-languages=c,c++,lto --with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp Thread model: posix gcc version 4.6.0 20101005 (experimental) (GCC) COLLECT_GCC_OPTIONS='-mno-cygwin' '-D' 'HAVE_HYPOT' '-D' 'HAVE_FILE64' '-D' 'HAVE_FONTCONFIG' '-D' 'HAVE_LIBIDN' '-D' 'HAVE_SETLOCALE' '-Wall' '-Wstrict-prototypes' '-Wundef' '-Wmissing-declarations' '-Wmissing-prototypes' '-Wwrite-strings' '-Wno-strict-aliasing' '-Wdeclaration-after-statement' '-fno-builtin' '-fno-common' '-D' 'HAVE_STDINT_H' '-D' 'GX_COLOR_INDEX_TYPE=unsigned long long' '-g' '-D' 'USE_LIBICONV_GNU' '-I' './obj' '-I' './base' '-o' './obj/gxfill.o' '-c' '-save-temps' '-O2' '-v' '-mtune=generic' '-march=pentiumpro' /usr/libexec/gcc/i686-pc-mingw32/4.6.0/cc1.exe -E -quiet -v -I ./obj -I ./base -D__MSVCRT__ -D__MINGW32__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -DWINNT -idirafter /usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../include/w32api -idirafter /usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/lib/../../include/w32api -D HAVE_HYPOT -D HAVE_FILE64 -D HAVE_FONTCONFIG -D HAVE_LIBIDN -D HAVE_SETLOCALE -D HAVE_STDINT_H -D GX_COLOR_INDEX_TYPE=unsigned long long -D USE_LIBICONV_GNU ./base/gxfill.c -mno-cygwin -mtune=generic -march=pentiumpro -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -g -fworking-directory -O2 -fpch-preprocess -o gxfill.i ignoring nonexistent directory "/usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/sys-include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/lib/../../include/w32api" #include "..." search starts here: #include <...> search starts here: ./obj ./base /usr/lib/gcc/i686-pc-mingw32/4.6.0/include /usr/lib/gcc/i686-pc-mingw32/4.6.0/include-fixed /usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/include /usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../include/w32api End of search list. COLLECT_GCC_OPTIONS='-mno-cygwin' '-D' 'HAVE_HYPOT' '-D' 'HAVE_FILE64' '-D' 'HAVE_FONTCONFIG' '-D' 'HAVE_LIBIDN' '-D' 'HAVE_SETLOCALE' '-Wall' '-Wstrict-prototypes' '-Wundef' '-Wmissing-declarations' '-Wmissing-prototypes' '-Wwrite-strings' '-Wno-strict-aliasing' '-Wdeclaration-after-statement' '-fno-builtin' '-fno-common' '-D' 'HAVE_STDINT_H' '-D' 'GX_COLOR_INDEX_TYPE=unsigned long long' '-g' '-D' 'USE_LIBICONV_GNU' '-I' './obj' '-I' './base' '-o' './obj/gxfill.o' '-c' '-save-temps' '-O2' '-v' '-mtune=generic' '-march=pentiumpro' /usr/libexec/gcc/i686-pc-mingw32/4.6.0/cc1.exe -fpreprocessed gxfill.i -quiet -dumpbase gxfill.c -mno-cygwin -mtune=generic -march=pentiumpro -auxbase-strip ./obj/gxfill.o -g -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -version -fno-builtin -fno-common -o gxfill.s GNU C (GCC) version 4.6.0 20101005 (experimental) (i686-pc-mingw32) compiled by GNU C version 4.6.0 20101005 (experimental), GMP version 5.0.0, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C (GCC) version 4.6.0 20101005 (experimental) (i686-pc-mingw32) compiled by GNU C version 4.6.0 20101005 (experimental), GMP version 5.0.0, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 35e82bb8e3d466cb1630a260f1560108 COLLECT_GCC_OPTIONS='-mno-cygwin' '-D' 'HAVE_HYPOT' '-D' 'HAVE_FILE64' '-D' 'HAVE_FONTCONFIG' '-D' 'HAVE_LIBIDN' '-D' 'HAVE_SETLOCALE' '-Wall' '-Wstrict-prototypes' '-Wundef' '-Wmissing-declarations' '-Wmissing-prototypes' '-Wwrite-strings' '-Wno-strict-aliasing' '-Wdeclaration-after-statement' '-fno-builtin' '-fno-common' '-D' 'HAVE_STDINT_H' '-D' 'GX_COLOR_INDEX_TYPE=unsigned long long' '-g' '-D' 'USE_LIBICONV_GNU' '-I' './obj' '-I' './base' '-o' './obj/gxfill.o' '-c' '-save-temps' '-O2' '-v' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/bin/as.exe -o ./obj/gxfill.o gxfill.s COMPILER_PATH=/usr/libexec/gcc/i686-pc-mingw32/4.6.0/:/usr/libexec/gcc/i686-pc-mingw32/4.6.0/:/usr/libexec/gcc/i686-pc-mingw32/:/usr/lib/gcc/i686-pc-mingw32/4.6.0/:/usr/lib/gcc/i686-pc-mingw32/:/usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/bin/ LIBRARY_PATH=/usr/lib/gcc/i686-pc-mingw32/4.6.0/:/usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/lib/:/usr/lib/gcc/i686-pc-mingw32/4.6.0/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-mno-cygwin' '-D' 'HAVE_HYPOT' '-D' 'HAVE_FILE64' '-D' 'HAVE_FONTCONFIG' '-D' 'HAVE_LIBIDN' '-D' 'HAVE_SETLOCALE' '-Wall' '-Wstrict-prototypes' '-Wundef' '-Wmissing-declarations' '-Wmissing-prototypes' '-Wwrite-strings' '-Wno-strict-aliasing' '-Wdeclaration-after-statement' '-fno-builtin' '-fno-common' '-D' 'HAVE_STDINT_H' '-D' 'GX_COLOR_INDEX_TYPE=unsigned long long' '-g' '-D' 'USE_LIBICONV_GNU' '-I' './obj' '-I' './base' '-o' './obj/gxfill.o' '-c' '-save-temps' '-O2' '-v' '-mtune=generic' '-march=pentiumpro' administra...@f8g6s6d42hgdy4 /tmp/gs $ nm -sn obj/gxfill.o 00000000 b .bss 00000000 d .data 00000000 t .text