This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "anton at samba dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Nov 2015 22:53:05 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-66949-4 at http dot gcc dot gnu dot org/bugzilla/>
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