Command line: gcc -O3 -mavx -c testcase.c Tested revisions: r156830 - crash r156745 - crash r156293 - crash r155966 - OK (release checking) r155609 - OK r154830 - OK r153685 - OK 4.4 r156256 - OK (with checking) 4.4 r153668 - OK
Valgrind output: ==1002== Command: /mnt/svn/gcc-trunk/binary-156830-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1 -quiet testcase.c -quiet -dumpbase testcase.c -mavx -mtune=generic -auxbase testcase -O3 -o /tmp/cc6y8iNe.s ==1002== ==1002== Invalid read of size 1 ==1002== at 0xBDB6AE: hash_rtx_cb (cse.c:2372) ==1002== by 0xBE0C6C: cse_insn (cse.c:2581) ==1002== by 0xBE3CF5: cse_main (cse.c:6352) ==1002== by 0xBE435D: rest_of_handle_cse (cse.c:7241) ==1002== by 0x72357A: execute_one_pass (passes.c:1561) ==1002== by 0x723804: execute_pass_list (passes.c:1616) ==1002== by 0x723816: execute_pass_list (passes.c:1617) ==1002== by 0x819174: tree_rest_of_compilation (tree-optimize.c:413) ==1002== by 0x99B1C0: cgraph_expand_function (cgraphunit.c:1545) ==1002== by 0x99DBE4: cgraph_optimize (cgraphunit.c:1624) ==1002== by 0x99E144: cgraph_finalize_compilation_unit (cgraphunit.c:1093) ==1002== by 0x4B0332: c_write_global_declarations (c-decl.c:9506) ==1002== Address 0xafafafaf00000006 is not stack'd, malloc'd or (recently) free'd ==1002== testcase.c: In function 'foo': testcase.c:14:1: 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. -- Summary: [4.5 Regression] ICE: SIGSEGV with -O3 -mavx Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43107