Command line:
$ gcc -O[123s] testcase.c
----- testcase.c -----
static double num;
int foo (void)
{
return *(unsigned *)#
}
----------------------
(reduced from gcc.c-torture/compile/pr39824.c)
Compiler output:
$ gcc -O1 testcase.c
testcase.c: In function 'foo':
testcase.c:2:5: internal compiler error: in fold_convert_const_int_from_real,
at fold-const.c:1548
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r161659 - crash (+rtl,df checking)
r161481 - OK (+rtl,df checking)
r161383 - OK (+rtl,df checking)
--
Summary: [4.6 Regression] ICE: in
fold_convert_const_int_from_real, at fold-const.c:1548
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44748