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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
          Component|c                           |tree-optimization
            Summary|ICE when compiling the      |[7 Regression] ICE when
                   |Linux kernel                |compiling the Linux kernel
                   |(net/wireless/util.o)       |(net/wireless/util.o)

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat util.i
struct {
  char h_dest[6]
} d;
struct {
  int addr1[0];
  int addr2[0];
  int addr3[0];
  int addr4[]
} a, c;
b;
*ieee80211_get_SA() {
  if (b)
    return a.addr4;
  return a.addr2;
}
__ieee80211_data_to_8023() {
  int *e, *f;
  if (ieee80211_has_tods())
    e = c.addr3;
  else
    e = c.addr1;
  memcpy(d.h_dest, e, 6);
  f = ieee80211_get_SA();
  memcpy(0, f, 1);
}

markus@x4 tmp % gcc -w -O2 -c util.i
util.i: In function ‘__ieee80211_data_to_8023’:
util.i:16:1: internal compiler error: Segmentation fault
 __ieee80211_data_to_8023() {
 ^~~~~~~~~~~~~~~~~~~~~~~~
0xb21c0f crash_signal
        ../../gcc/gcc/toplev.c:335
0x7f7c24210eaf ???
       
/home/markus/glibc/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7929b6 dominated_by_p(cdi_direction, basic_block_def const*, basic_block_def
const*)
        ../../gcc/gcc/dominance.c:973
0xca5964 propagate_with_phi
        ../../gcc/gcc/tree-ssa-phiprop.c:335
0xca5964 execute
        ../../gcc/gcc/tree-ssa-phiprop.c:447

Reply via email to