]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Fix gnu23-builtins-no-dfp
authorJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:54:46 +0000 (22:54 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:54:46 +0000 (22:54 -0700)
Last patch for the night.  There's still a bit of minor fallout left in GCC
(loongarch testsuite for example).  But things are looking good on the targets
I test.  The plan is to start submitting the various newlib/libgloss fixes
tomorrow.

Anyway, this test was the one I was most concerned about.  Basically we're
testing that on a !dfp target that the builtins are not available.  It expects
a warning, but gets an error by default now.  I just changed the test to use
-fpermissive, so that the test behaves as it did previously.

Pushed to the trunk.

gcc/testsuite
* gcc.dg/gnu23-builtins-no-dfp-1.c: Add -fpermissive.

gcc/testsuite/gcc.dg/gnu23-builtins-no-dfp-1.c

index 9fa25f0dd13173cc9f46dba72fef1789b327a053..8fe4efbdd98659befe2673c1a74d5c2228f9e60d 100644 (file)
@@ -1,7 +1,7 @@
 /* Test C23 built-in functions: test DFP built-in functions are not
    available when no DFP support.  Bug 91985.  */
 /* { dg-do compile { target { ! dfp } } } */
-/* { dg-options "-std=gnu23" } */
+/* { dg-options "-std=gnu23 -fpermissive" } */
 
 int fabsd32 (void);
 int fabsd64 (void);