Make C2X imply -fno-fp-int-builtin-inexact.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 8 Oct 2019 00:37:45 +0000 (01:37 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 8 Oct 2019 00:37:45 +0000 (01:37 +0100)
commitfbb2a6dcf8abbd1a605544597442e3d67984a455
tree24ae9f7f7cca0794b54fdcc58088dce8cb05ac5e
parentb11df8983de352246b68c1485121d4aa8f26a5bb
Make C2X imply -fno-fp-int-builtin-inexact.

Since TS 18661-1 has been integrated into C2X, this patch makes C2X
imply -fno-fp-int-builtin-inexact.

Bootstrapped with no regressions on x86_64-pc-linux-gnu.

gcc:
* doc/invoke.texi (-ffp-int-builtin-inexact): Document
-fno-fp-int-builtin-inexact default for C2X.

gcc/c-family:
* c-opts.c (c_common_post_options): Set
-fno-fp-int-builtin-inexact for C2X.

gcc/testsuite:
* gcc.dg/torture/builtin-fp-int-inexact-c2x.c: New test.

From-SVN: r276686
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-fp-int-inexact-c2x.c [new file with mode: 0644]