// Compile this with -O2 -ffast-math to get segfault
double floor (double);
double bar (double sum)
{
int i;
for (i = 0; i < 256; i++)
sum += floor (0.5 + (i - 128));
return sum;
}
--
Summary: [4.1 regression] SEGV in integer_valued_real_p at
gcc/builtins.c:6711
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at depni dot sinp dot msu dot ru
GCC target triplet: x86_64-*-*, i?86-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24820