]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Compile gcc.dg/tree-ssa/ldexp.c with -std=c99
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 17 Feb 2026 08:43:52 +0000 (09:43 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 17 Feb 2026 08:43:52 +0000 (09:43 +0100)
The gcc.dg/tree-ssa/ldexp.c test FAILs on Solaris:

FAIL: gcc.dg/tree-ssa/ldexp.c (test for excess errors)
UNRESOLVED: gcc.dg/tree-ssa/ldexp.c scan-assembler-not \\tfmul\\t

Excess errors:
../builtins-config.h:53:2: error: #error forgot to set -std=c99.

Fixed by adding that option.

Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and
x86_64-pc-linux-gnu.

2026-02-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
* gcc.dg/tree-ssa/ldexp.c (dg-additional-options): Add -std=c99.

gcc/testsuite/gcc.dg/tree-ssa/ldexp.c

index 98395f9da767470e139c73e62e2b54c04a3d925a..f90685fd2d6fd4115fbcb0199964cc2179baa503 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-additional-options "-Ofast" } */
+/* { dg-additional-options "-std=c99 -Ofast" } */
 
 /* { dg-final { scan-assembler-not "\tfmul\t" } } */