This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/66949] [6 Regression] ICE at -O2 and -O3 on x86_64-linux-gnu in tree_ssa_phiopt_worker, at tree-ssa-phiopt.c:335


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

Anton Blanchard <anton at samba dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anton at samba dot org

--- Comment #3 from Anton Blanchard <anton at samba dot org> ---
I'm seeing this on powerpc64le with the following testcase:

char a;
int b, c, d;

short fn1(short p1, short p2)
{
        return p2 == 0 ? p1 : p1 / p2;
}

int main(void)
{
        char e = 1;
        int f = 7;
        c = a >> f;
        b = fn1(c, 0 < d <= e && fn2());

        return 0;
}

# gcc -O3 -c crash1.i
crash1.i: In function âmainâ:
crash1.i:14:27: warning: implicit declaration of function âfn2â
[-Wimplicit-function-declaration]
  b = fn1(c, 0 < d <= e && fn2());
                           ^~~

crash1.i:9:5: internal compiler error: in tree_ssa_phiopt_worker, at
tree-ssa-phiopt.c:322
 int main(void)
     ^~~~

0x10a46a23 tree_ssa_phiopt_worker
        ../../gcc/gcc/tree-ssa-phiopt.c:322

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]