https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63804

            Bug ID: 63804
           Summary: ice in find_oldest_value_reg with -g -O2
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 33930
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33930&action=edit
gzipped C source code

I just tried to compile the attached code
on gcc trunk dated 20141109 on an AMD x86_64 box.

The compiler said

$ ../results/bin/gcc -c -g -O2 bug169.c
brw_eu_emit.c: In function ‘brw_oword_block_write_scratch’:
brw_eu_emit.c:2071:1: internal compiler error: Segmentation fault
0xa82d3c crash_signal(int)
    ../../src/trunk/gcc/toplev.c:358
0x9c07fe find_oldest_value_reg(reg_class, rtx_def*, value_data*)
    ../../src/trunk/gcc/regcprop.c:459
0x9c0ab1 replace_oldest_value_reg(rtx_def**, reg_class, rtx_insn*, value_data*)
    ../../src/trunk/gcc/regcprop.c:492
0x9bfbcc replace_oldest_value_addr(rtx_def**, reg_class, machine_mode, unsigned
char, rtx_insn*, value_data*)
    ../../src/trunk/gcc/regcprop.c:652
0x9be2a8 copyprop_hardreg_forward_1(basic_block_def*, value_data*)
    ../../src/trunk/gcc/regcprop.c:761
0x9be19a copyprop_hardreg_forward_bb_without_debug_insn(basic_block_def*)
    ../../src/trunk/gcc/regcprop.c:1145
0xa47dbb prepare_shrink_wrap(basic_block_def*)
    ../../src/trunk/gcc/shrink-wrap.c:439
0xa48f60 try_shrink_wrapping(edge_def**, edge_def*, bitmap_head*, rtx_insn*)
    ../../src/trunk/gcc/shrink-wrap.c:573
0x7f6709 thread_prologue_and_epilogue_insns()
    ../../src/trunk/gcc/function.c:5937
0x7f6709 rest_of_handle_thread_prologue_and_epilogue()
    ../../src/trunk/gcc/function.c:6476
0x7f6709 (anonymous
namespace)::pass_thread_prologue_and_epilogue::execute(function*)
    ../../src/trunk/gcc/function.c:6514
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Flags -g -O2 required.

Reply via email to