http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56144

             Bug #: 56144
           Summary: ICE in get_reload_reg, at lra-constraints.c:421
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: reg...@cs.utah.edu
                CC: cheny...@cs.utah.edu


regehr@home:~/z/reduce/r200$ gcc -O small.c
small.c: In function ‘main’:
small.c:43:1: internal compiler error: in get_reload_reg, at
lra-constraints.c:421
 }
 ^
0x7f66a2 get_reload_reg
    /home/regehr/z/compiler-source/gcc/gcc/lra-constraints.c:421
0x7f6838 process_addr_reg
    /home/regehr/z/compiler-source/gcc/gcc/lra-constraints.c:1106
0x7f6b94 process_address
    /home/regehr/z/compiler-source/gcc/gcc/lra-constraints.c:2360
0x7f977f curr_insn_transform
    /home/regehr/z/compiler-source/gcc/gcc/lra-constraints.c:2720
0x7fbe04 lra_constraints(bool)
    /home/regehr/z/compiler-source/gcc/gcc/lra-constraints.c:3554
0x7eeeae lra(_IO_FILE*)
    /home/regehr/z/compiler-source/gcc/gcc/lra.c:2279
0x7b7218 do_reload
    /home/regehr/z/compiler-source/gcc/gcc/ira.c:4623
0x7b7218 rest_of_handle_reload
    /home/regehr/z/compiler-source/gcc/gcc/ira.c:4736
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.


regehr@home:~/z/reduce/r200$ cat small.c
int a;
union U0
{
  volatile unsigned f2;
  volatile unsigned f4;
};
volatile b;
static union U0 c;
volatile unsigned d, f;
volatile e;
volatile g;
volatile h;
volatile i;
volatile j;
volatile k;
volatile l;
volatile m;
volatile n;
volatile o;
volatile p;
main ()
{
  a = b;
  a += c.f2;
  a += c.f4;
  unsigned q = h;
  a += q;
  q = g;
  a += q;
  a += f;
  q = e;
  a += q;
  a += d;
  a += 2L;
  a += j;
  a += i;
  a += k;
  a += p;
  a += o;
  a += n;
  a += m;
  a += l;
}


regehr@home:~/z/reduce/r200$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/regehr/z/compiler-install/gcc-r195565-install/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/regehr/z/compiler-source/gcc/configure
--with-libelf=/usr/local --enable-lto
--prefix=/home/regehr/z/compiler-install/gcc-r195565-install
--enable-languages=c,c++
Thread model: posix
gcc version 4.8.0 20130129 (experimental) (GCC)

Reply via email to