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

            Bug ID: 64115
           Summary: [5 Regression] ICE: : in rs6000_delegitimize_address,
                    at config/rs6000/rs6000.c:7051
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
              Host: powerpc64-unknown-linux-gnu
            Target: powerpc64-unknown-linux-gnu
             Build: powerpc64-unknown-linux-gnu

trippels@gcc2-power8 linux-3.17.2 % cat radio.i
void (*a)();
void b43legacy_synth_pu_workaround ();
int
channel2freq_bg (int p1)
{
  static int b[] = {};
  if (__builtin_expect (p1, 0))
    return b[p1];
  return 0;
}
void
b43legacy_radio_selectchannel (int p1)
{
  int c;
  b43legacy_synth_pu_workaround ();
  c = channel2freq_bg (p1);
  int d = c;
  a (d);
  if (p1)
    b43legacy_synth_pu_workaround ();
}


trippels@gcc2-power8 linux-3.17.2 % gcc -g -O2 -fprofile-arcs -c radio.i
(unspec:DI [
        (symbol_ref:DI ("*.LANCHOR1") [flags 0x182])
        (mem/v/c:DI (plus:DI (reg/f:DI 67 ap)
                (const_int -88 [0xffffffffffffffa8])) [5  S8 A8])
    ] UNSPEC_TOCREL)
radio.i: In function ‘b43legacy_radio_selectchannel’:
radio.i:21:1: internal compiler error: in rs6000_delegitimize_address, at
config/rs6000/rs6000.c:7051
 }
 ^
0x10b2e193 rs6000_delegitimize_address
        ../../gcc/gcc/config/rs6000/rs6000.c:7051
0x103b01f7 mem_loc_descriptor(rtx_def*, machine_mode, machine_mode,
var_init_status)
        ../../gcc/gcc/dwarf2out.c:12402
0x103b11f7 mem_loc_descriptor(rtx_def*, machine_mode, machine_mode,
var_init_status)
        ../../gcc/gcc/dwarf2out.c:12766
0x103baa77 loc_descriptor
        ../../gcc/gcc/dwarf2out.c:13444
0x103baabb loc_descriptor
        ../../gcc/gcc/dwarf2out.c:13471
0x103bb17b dw_loc_list_1
        ../../gcc/gcc/dwarf2out.c:13748
0x103b605b dw_loc_list
        ../../gcc/gcc/dwarf2out.c:14018
0x103b605b loc_list_from_tree
        ../../gcc/gcc/dwarf2out.c:14403
0x103bd7fb add_location_or_const_value_attribute
        ../../gcc/gcc/dwarf2out.c:15908
0x103a227b gen_variable_die
        ../../gcc/gcc/dwarf2out.c:19102
0x103a4993 gen_decl_die
        ../../gcc/gcc/dwarf2out.c:20828
0x103c0d83 decls_for_scope
        ../../gcc/gcc/dwarf2out.c:20368
0x1039e4eb gen_subprogram_die
        ../../gcc/gcc/dwarf2out.c:18694
0x103a4747 gen_decl_die
        ../../gcc/gcc/dwarf2out.c:20761
0x103a62b3 dwarf2out_function_decl
        ../../gcc/gcc/dwarf2out.c:21202
0x1042d1f7 rest_of_handle_final
        ../../gcc/gcc/final.c:4508
0x1042d1f7 execute
        ../../gcc/gcc/final.c:4550
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.

Reply via email to