The attached file, tflt2int.c, prints lots of errors and then "Failed with at least 223 failures" on powerpc-darwin, and according to the file fails on lots of other architectures with GCC as well (but with different numbers of failures). It should pass.
Created attachment 12952 [details]
I thought those conversions are just undefined and don't raise exceptions.
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 ‘‘invalid’’ floating-point exception is raised and the
resulting value is unspecified.
And indeed we should support Annex F in this regard.
Failing with 183 failures with
gcc -std=c99 foo.c -lm
on current trunk with x86_64-unknown-linux-gnu
I believe that this is a dup of bug 27682.
It still is failing in 4.5.1 on Intel Pentium 4 under Linux.
Yes I agree this is a dup of bug 27682.
*** This bug has been marked as a duplicate of bug 27682 ***