Bug 57497 - [4.9 Regression] ICE in lra_create_new_reg_with_unique_value, at lra.c:155
Summary: [4.9 Regression] ICE in lra_create_new_reg_with_unique_value, at lra.c:155
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.9.0
: P3 normal
Target Milestone: 4.9.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code, ra
Depends on:
Blocks:
 
Reported: 2013-06-01 08:54 UTC by Antoine Balestrat
Modified: 2013-10-30 12:37 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-*-*
Build:
Known to work: 4.8.1
Known to fail:
Last reconfirmed: 2013-06-03 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Balestrat 2013-06-01 08:54:53 UTC
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.
Comment 1 Richard Biener 2013-06-03 08:47:50 UTC
Confirmed.
Comment 2 Marek Polacek 2013-06-03 12:33:34 UTC
Started with http://gcc.gnu.org/r199298
Comment 3 Antoine Balestrat 2013-06-22 09:36:25 UTC
This bug looks unreproducible with the current trunk.
Comment 4 Richard Biener 2013-10-30 12:37:28 UTC
Assuming fixed.