GCC 4.3.0 snapshot 20071221 built with: ../configure --prefix=/usr/local/gcc-4.3-20071221 && time make -j3 bootstrap
on Ubuntu 7.10 (AMD64 install) using the system version of GCC (4:4.1.2-9ubuntu2). The system is a quad core Intel Core 2 system: Intel(R) Core(TM)2 Quad CPU @ 2.40GHz stepping 07 I am trying to build bzip2 1.0.4 from http://www.bzip.org/downloads.html as an experiment with -ftree-parallelize-loops=4 and find that GCC dies with: decompress.c: In function ‘BZ2_decompress’: decompress.c:107: internal compiler error: Segmentation fault The compile succeeds without the -ftree-parallelize-loops=4 option. The complete command line is: gcc-4.3.0 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -ftree-parallelize-loops=4 -save-temps -v -c decompress.c and here is the full output: [EMAIL PROTECTED]:~/Sources/bzip2/bzip2-1.0.4$ gcc-4.3.0 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64 -ftree-parallelize-loops=4 -save-temps -v -c decompress.c Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/usr/local/gcc-4.3-20071221 Thread model: posix gcc version 4.3.0 20071221 (experimental) (GCC) COLLECT_GCC_OPTIONS='-Wall' '-Winline' '-O2' '-g' '-D_FILE_OFFSET_BITS=64' '-ftree-parallelize-loops=4' '-save-temps' '-v' '-c' '-mtune=generic' /usr/local/gcc-4.3-20071221/libexec/gcc/x86_64-unknown-linux-gnu/4.3.0/cc1 -E -quiet -v -D_FILE_OFFSET_BITS=64 decompress.c -mtune=generic -Wall -Winline -ftree-parallelize-loops=4 -fworking-directory -O2 -fpch-preprocess -o decompress.i ignoring nonexistent directory "/usr/local/gcc-4.3-20071221/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/gcc-4.3-20071221/include /usr/local/gcc-4.3-20071221/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include /usr/local/gcc-4.3-20071221/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS='-Wall' '-Winline' '-O2' '-g' '-D_FILE_OFFSET_BITS=64' '-ftree-parallelize-loops=4' '-save-temps' '-v' '-c' '-mtune=generic' /usr/local/gcc-4.3-20071221/libexec/gcc/x86_64-unknown-linux-gnu/4.3.0/cc1 -fpreprocessed decompress.i -quiet -dumpbase decompress.c -mtune=generic -auxbase decompress -g -O2 -Wall -Winline -version -ftree-parallelize-loops=4 -o decompress.s GNU C (GCC) version 4.3.0 20071221 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.3.0 20071221 (experimental), GMP version 4.2.1, MPFR version 2.3.0. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: b6ad8ec8bd3f4aab2e8217c96d6b7427 decompress.c: In function ‘BZ2_decompress’: decompress.c:107: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Using valgrind with --trace-children=yes I get the following for the phase that crashes: ==24343== Memcheck, a memory error detector. ==24343== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==24343== Using LibVEX rev 1732, a library for dynamic binary translation. ==24343== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==24343== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation framework. ==24343== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==24343== For more details, rerun with: -v ==24343== GNU C (GCC) version 4.3.0 20071221 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.3.0 20071221 (experimental), GMP version 4.2.1, MPFR version 2.3.0. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: b6ad8ec8bd3f4aab2e8217c96d6b7427 ==24343== Conditional jump or move depends on uninitialised value(s) ==24343== at 0xB14270: htab_find_slot_with_hash (hashtab.c:634) ==24343== by 0x772FC5: strict_aliasing_warning_backend (tree-ssa-alias-warnings.c:967) ==24343== by 0x772423: compute_may_aliases (tree-ssa-alias.c:1857) ==24343== by 0x64D7F0: execute_function_todo (passes.c:909) ==24343== by 0x64D52E: execute_todo (passes.c:989) ==24343== by 0x64DAF0: execute_one_pass (passes.c:1140) ==24343== by 0x64DC7F: execute_pass_list (passes.c:1171) ==24343== by 0x64DC94: execute_pass_list (passes.c:1172) ==24343== by 0x64DC94: execute_pass_list (passes.c:1172) ==24343== by 0x72C1F7: tree_rest_of_compilation (tree-optimize.c:404) ==24343== by 0x8D4C31: cgraph_expand_function (cgraphunit.c:1151) ==24343== by 0x8D76AB: cgraph_optimize (cgraphunit.c:1214) ==24343== ==24343== Invalid read of size 4 ==24343== at 0x51521D: dominated_by_p (dominance.c:933) ==24343== by 0x7C45D8: scev_probably_wraps_p (tree-ssa-loop-niter.c:2903) ==24343== by 0xADD298: convert_affine_scev (tree-chrec.c:1192) ==24343== by 0x7B5677: idx_find_step (tree-ssa-loop-ivopts.c:1350) ==24343== by 0x7A2B93: for_each_index (tree-ssa-loop-im.c:195) ==24343== by 0x7B2668: find_interesting_uses_address (tree-ssa-loop-ivopts.c:1518) ==24343== by 0x7B3BEE: find_interesting_uses_stmt (tree-ssa-loop-ivopts.c:1619) ==24343== by 0x7B61E5: tree_ssa_iv_optimize_loop (tree-ssa-loop-ivopts.c:1704) ==24343== by 0x7B779F: tree_ssa_iv_optimize (tree-ssa-loop-ivopts.c:5380) ==24343== by 0x7C4BEC: tree_ssa_loop_ivopts (tree-ssa-loop.c:550) ==24343== by 0x64DA98: execute_one_pass (passes.c:1118) ==24343== by 0x64DC7F: execute_pass_list (passes.c:1171) ==24343== Address 0x8 is not stack'd, malloc'd or (recently) free'd decompress.c: In function ‘BZ2_decompress’: decompress.c:107: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ==24343== ==24343== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 8 from 1) ==24343== malloc/free: in use at exit: 1,610,483 bytes in 6,863 blocks. ==24343== malloc/free: 400,193 allocs, 393,330 frees, 193,077,769 bytes allocated. I will attach the .i file and .s file (which is truncated very early at 192 bytes). -- Summary: GCC-4.3.0-20071221 SEGV's building Bzip2 1.0.4 decompress.c with -ftree-parallelize-loops=4 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris at csamuel dot org GCC build triplet: x86_64-unknown-linux GCC host triplet: x86_64-unknown-linux GCC target triplet: x86_64-unknown-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34590