http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53519
Bug #: 53519
Summary: ice in do_SUBST, at combine.c:707
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
[regehr@dyson r62]$ current-gcc -c -Os small.c
small.c: In function 'fn3':
small.c:24:1: internal compiler error: in do_SUBST, at combine.c:707
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[regehr@dyson r62]$
[regehr@dyson r62]$
[regehr@dyson r62]$ current-gcc -v
Using built-in specs.
COLLECT_GCC=current-gcc
COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r187937-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --with-libelf=/usr/local --enable-lto
--prefix=/home/regehr/z/compiler-install/gcc-r187937-install
--program-prefix=r187937- --enable-languages=c,c++
Thread model: posix
gcc version 4.8.0 20120528 (experimental) (GCC)
[regehr@dyson r62]$
[regehr@dyson r62]$
[regehr@dyson r62]$
[regehr@dyson r62]$ cat small.c
int a, b, c, d, e;
short
fn1 (short p1)
{
return a == 0 ? p1 : 0;
}
short
fn2 (int p1, int p2)
{
return p1 + p2;
}
void
fn3 ()
{
int f;
if (e)
;
else
{
f = fn1 (65535 ^ b);
if (fn2 (!6L <= ~f, ~e) == c)
d = 0;
}
}