[Bug target/71801] [7 Regression] ice in fix_debug_reg_uses

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 8 05:29:00 GMT 2016


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-07-08
                 CC|                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat bug_.i
struct {
  char uuid[16];
} c;
struct {
  int s_uuid[6];
} a, b;
void *memcpy();
int lseek();
static int get_label_uuid(char *p1) {
  memcpy(p1, a.s_uuid, sizeof(a));
  if (lseek())
    memcpy(p1, b.s_uuid, sizeof(b));
  return 0;
}
void uuidcache_addentry(char *p1) { memcpy(&c, p1, sizeof(c)); }
void uuidcache_init() {
  char d[1];
  get_label_uuid(d);
  uuidcache_addentry(d);
}

markus@x4 tmp % gcc -c -O2 -g bug_.i
bug_.i: In function ‘uuidcache_init’:
bug_.i:20:1: internal compiler error: in fix_debug_reg_uses, at
config/i386/i386.c:3818
 }
 ^
0xe92015 timode_scalar_chain::fix_debug_reg_uses(rtx_def*)
        ../../gcc/gcc/config/i386/i386.c:3817
0xea5482 timode_scalar_chain::fix_debug_reg_uses(rtx_def*)
        ../../gcc/gcc/config/i386/i386.c:3799
0xea5482 timode_scalar_chain::convert_insn(rtx_insn*)
        ../../gcc/gcc/config/i386/i386.c:3844
0xea5d04 scalar_chain::convert()
        ../../gcc/gcc/config/i386/i386.c:3932
0xea64f6 convert_scalars_to_vector
        ../../gcc/gcc/config/i386/i386.c:3998
0xea64f6 execute
        ../../gcc/gcc/config/i386/i386.c:4092
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.


More information about the Gcc-bugs mailing list