http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56984
Bug #: 56984
Summary: GCC-4.8.0 ICE in tree_vrp.c
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
GCC 4.8.0 with "-O1 -ftree-vrp" option ICEs on
the following code where sizeof(int) == 4.
The failure occurs in Linux (x86_64 and i686)
and Mac OS X (x86_64).
$ cat error.c
int g = 0;
int main(void)
{
if ( (g>>31) < -1 ) { g++; }
return 0;
}
$ x86_64-unknown-linux-gnu-gcc-4.8.0 error.c -O1 -ftree-vrp
error.c: In function 'main':
error.c:3:5: internal compiler error: in remove_range_assertions, at
tree-vrp.c:6276
int main(void)
^
0x936e7e remove_range_assertions
../../gcc/tree-vrp.c:6276
0x936e7e execute_vrp
../../gcc/tree-vrp.c:9299
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.