c-opts.c (c_common_post_options): Set -ffp-contract=off in C standards modes.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 6 Nov 2013 16:52:47 +0000 (16:52 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 6 Nov 2013 16:52:47 +0000 (16:52 +0000)
commit6dbe09581a1349498f6b4546f68cb9fd3205e120
treecae87a5350ed0c4d96974ba136c4cdcae7117138
parent1d2217b6ab9ca6f2dd005e6f7ac22296532e6f61
c-opts.c (c_common_post_options): Set -ffp-contract=off in C standards modes.

c-family:
* c-opts.c (c_common_post_options): Set -ffp-contract=off in C
standards modes.
* c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
to mean lack of IEEE 754 support.

testsuite:
* gcc.dg/torture/c99-contract-1.c: New test.

From-SVN: r204460
gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/c-family/c-opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/c99-contract-1.c [new file with mode: 0644]