http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46931
Summary: Subversion id 167184 breaks building perlbench on power7 with debug Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: regression AssignedTo: unassig...@gcc.gnu.org ReportedBy: meiss...@gcc.gnu.org CC: m...@suse.de Host: powerpc64-linux Target: powerpc64-linux Build: powerpc64-linux Created attachment 22748 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22748 Stripped down file that shows the problem GCC has a segmentation violation when compiling the spec 2006 benchmark perlbench on powerpc64-linux systems with the -O2 -ftree-vectorize -mcpu=power7 -g options. Here is the traceback: -igoo-> /opt/at4.0/bin/gdb cc1 'import site' failed; use -v for traceback GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-linux". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/meissner/fsf-build-ppc64/bug/gcc/cc1...done. Breakpoint 1 at 0x101f95ec: file /home/meissner/fsf-src/bug/gcc/diagnostic.c, line 893. Breakpoint 2 at 0x101f9548: file /home/meissner/fsf-src/bug/gcc/diagnostic.c, line 838. Breakpoint 3 at 0x10a45678 Breakpoint 4 at 0x10a45260 (gdb) r -O2 -ftree-vectorize -mcpu=power7 -g -quiet pp.i Starting program: /home/meissner/fsf-build-ppc64/bug/gcc/cc1 -O2 -ftree-vectorize -mcpu=power7 -m64 -g -quiet pp.i Program received signal SIGSEGV, Segmentation fault. gsi_for_stmt (stmt=0xfffb659af50) at /home/meissner/fsf-src/bug/gcc/gimple-iterator.c:554 554 i = gsi_start_bb (bb); (gdb) where #0 gsi_for_stmt (stmt=0xfffb659af50) at /home/meissner/fsf-src/bug/gcc/gimple-iterator.c:554 #1 0x0000000010660998 in insert_debug_temp_for_var_def (gsi=0x0, var=0xfffb693b318) at /home/meissner/fsf-src/bug/gcc/tree-ssa.c:444 #2 0x0000000010663ff8 in release_ssa_name (var=0xfffb693b318) at /home/meissner/fsf-src/bug/gcc/tree-ssanames.c:207 #3 0x0000000010542640 in delete_update_ssa () at /home/meissner/fsf-src/bug/gcc/tree-into-ssa.c:2793 #4 0x0000000010691c64 in slpeel_tree_peel_loop_to_edge (loop=<value optimized out>, e=<value optimized out>, first_niters=0xfffb693aef8, niters=0xfffb693aad8, update_first_loop_count=<value optimized out>, th=0, check_profitability=86 'V', cond_expr=<value optimized out>, cond_expr_stmt_list=0x0) at /home/meissner/fsf-src/bug/gcc/tree-vect-loop-manip.c:1456 #5 0x0000000010691f44 in vect_do_peeling_for_alignment (loop_vinfo=0x10ecfa40) at /home/meissner/fsf-src/bug/gcc/tree-vect-loop-manip.c:2189 #6 0x0000000010686dc8 in vect_transform_loop (loop_vinfo=0x10ecfa40) at /home/meissner/fsf-src/bug/gcc/tree-vect-loop.c:4677 #7 0x000000001069be78 in vectorize_loops () at /home/meissner/fsf-src/bug/gcc/tree-vectorizer.c:205 #8 0x00000000105febec in tree_vectorize () at /home/meissner/fsf-src/bug/gcc/tree-ssa-loop.c:220 #9 0x0000000010417468 in execute_one_pass (pass=0x10d1e3d8) at /home/meissner/fsf-src/bug/gcc/passes.c:1563 #10 0x0000000010417ab4 in execute_pass_list (pass=0x10d1e3d8) at /home/meissner/fsf-src/bug/gcc/passes.c:1618 #11 0x0000000010417ae0 in execute_pass_list (pass=0x10d1e248) at /home/meissner/fsf-src/bug/gcc/passes.c:1619 #12 0x0000000010417ae0 in execute_pass_list (pass=0x10d1dad0) at /home/meissner/fsf-src/bug/gcc/passes.c:1619 #13 0x0000000010558490 in tree_rest_of_compilation (fndecl=0xfffb6879200) at /home/meissner/fsf-src/bug/gcc/tree-optimize.c:422 #14 0x000000001075866c in cgraph_expand_function (node=0xfffb680c080) at /home/meissner/fsf-src/bug/gcc/cgraphunit.c:1508 #15 0x000000001075bc48 in cgraph_expand_all_functions () at /home/meissner/fsf-src/bug/gcc/cgraphunit.c:1567 #16 cgraph_optimize () at /home/meissner/fsf-src/bug/gcc/cgraphunit.c:1823 #17 0x000000001075c118 in cgraph_finalize_compilation_unit () at /home/meissner/fsf-src/bug/gcc/cgraphunit.c:1031 #18 0x000000001009e3d8 in c_write_global_declarations () at /home/meissner/fsf-src/bug/gcc/c-decl.c:9837 #19 0x00000000104e57cc in compile_file (argc=7, argv=0xfffffffe008) at /home/meissner/fsf-src/bug/gcc/toplev.c:819 #20 do_compile (argc=7, argv=0xfffffffe008) at /home/meissner/fsf-src/bug/gcc/toplev.c:2211 #21 toplev_main (argc=7, argv=0xfffffffe008) at /home/meissner/fsf-src/bug/gcc/toplev.c:2274 #22 0x0000000010147720 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/meissner/fsf-src/bug/gcc/main.c:36 gdb) c Continuing. Breakpoint 2, internal_error (gmsgid=0x10cb8778 "%s") at /home/meissner/fsf-src/bug/gcc/diagnostic.c:838 838 diagnostic_set_info (&diagnostic, gmsgid, &ap, input_location, DK_ICE); (gdb) c Continuing. pp.i: In function ‘Perl_pp_complement’: pp.i:8514: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. The ChangeLog for the change was: 2010-11-26 Michael Matz <m...@suse.de> * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops. * passes.c (init_optimization_passes): Remove superfluous copy-prop pass. I'm attaching a stripped down .i of the Perl_pp_complement function which has the error.