------- Comment #3 from zsojka at seznam dot cz 2010-03-26 14:56 ------- Created an attachment (id=20211) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20211&action=view) generated profile data
It can be reproduced only when compiled as C++ code. With this profile file and file from comment #1, I get: $ /mnt/svn/gcc-trunk/binary-157723-lto/bin/g++ -O1 -freorder-blocks-and-partition -ftree-vectorize -fgraphite-identity -m32 -mstackrealign -fprofile-use pr43540.C -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-157723-lto/bin/g++ COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-157723-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk/configure --enable-languages=c,c++,lto --prefix=/mnt/svn/gcc-trunk/binary-157723-lto Thread model: posix gcc version 4.5.0 20100325 (experimental) (GCC) COLLECT_GCC_OPTIONS='-O1' '-freorder-blocks-and-partition' '-ftree-vectorize' '-fgraphite-identity' '-m32' '-mstackrealign' '-fprofile-use' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /mnt/svn/gcc-trunk/binary-157723-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1plus -quiet -v -imultilib 32 -D_GNU_SOURCE pr43540.C -quiet -dumpbase pr43540.C -m32 -mstackrealign -mtune=generic -march=x86-64 -auxbase pr43540 -O1 -version -freorder-blocks-and-partition -ftree-vectorize -fgraphite-identity -fprofile-use -o /tmp/cci7jSME.s GNU C++ (GCC) version 4.5.0 20100325 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.5.0 20100325 (experimental), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/mnt/svn/gcc-trunk/binary-157723-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /mnt/svn/gcc-trunk/binary-157723-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../include/c++/4.5.0 /mnt/svn/gcc-trunk/binary-157723-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../include/c++/4.5.0/x86_64-unknown-linux-gnu/32 /mnt/svn/gcc-trunk/binary-157723-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../include/c++/4.5.0/backward /mnt/svn/gcc-trunk/binary-157723-lto/include /mnt/svn/gcc-trunk/binary-157723-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include /mnt/svn/gcc-trunk/binary-157723-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.5.0 20100325 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.5.0 20100325 (experimental), GMP version 4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: c5e882d80018cd4c9e542f2a29b233c3 pr43540.C: In function 'int foo(int, int)': pr43540.C:10:1: internal compiler error: vector VEC(dw_cfi_ref,heap) grow domain error, in output_cfis at dwarf2out.c:3346 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43540