[Bug tree-optimization/57497] New: ICE in lra_create_new_reg_with_unique_value, at lra.c:155

antoine.balestrat at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 1 08:55:00 GMT 2013


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

            Bug ID: 57497
           Summary: ICE in lra_create_new_reg_with_unique_value, at
                    lra.c:155
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoine.balestrat at gmail dot com

Hello !
The following testcase makes GCC 4.9.0 as of 20130601 ICE at -O3.

$ cat lra.c
int a, b;

void f(void)
{
    for(;; a++)
        if(0)
        {
            int *q;
lbl1:
            ;
            char **p = 0;
lbl2:
            while(**p)
                1 & **p ? : (b = 0);
            p = &q;
        }

        else
        {
            long **t, c = 2200000000;

            if(b)
            {
                *t = &c;
                goto lbl1;
            }

            goto lbl2;
        }
}

$ xgcc -O3 -w lra.c
lra.c: In function ‘f’:
lra.c:30:1: internal compiler error: in lra_create_new_reg_with_unique_value,
at 
lra.c:155
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


More information about the Gcc-bugs mailing list