http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30580
Fred J. Tydeman tydeman at tybor dot com changed:
What|Removed |Added
CC||tydeman at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30580
Andrew Pinski pinskia at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |RESOLVED
--- Comment #5 from tkoenig at gcc dot gnu dot org 2008-12-26 16:07 ---
Failing with 183 failures with
gcc -std=c99 foo.c -lm
on current trunk with x86_64-unknown-linux-gnu
--
tkoenig at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #4 from jsm28 at gcc dot gnu dot org 2007-01-25 14:06 ---
And indeed we should support Annex F in this regard.
--
jsm28 at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #1 from geoffk at gcc dot gnu dot org 2007-01-24 22:04 ---
Created an attachment (id=12952)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12952action=view)
tflt2int.c testcase
From http://www.tybor.com/tflt2int.c.
--
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-24 22:10 ---
I thought those conversions are just undefined and don't raise exceptions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30580
--- Comment #3 from geoffk at gcc dot gnu dot org 2007-01-25 06:01 ---
It's optional, but if you support Annex F of the C99 standard then F.4 says:
If the floating value is infinite or NaN or if the integral part of the
floating value exceeds
the range of the integer type, then the