Tested x86_64-pc-linux-gnu and armv8l-unknown-linuxgnueabihf, applying to
trunk.
-- 8< --
The Linaro CI runs of this testcase pointed out that I need to check for DFP
support, as well.
gcc/testsuite/ChangeLog:
* c-c++-common/pragma-diag-17.c: Handle !dfp targets.
---
gcc/testsuite/c-c++-common/pragma-diag-17.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/c-c++-common/pragma-diag-17.c
b/gcc/testsuite/c-c++-common/pragma-diag-17.c
index a38841bc48d..a44ce90f98b 100644
--- a/gcc/testsuite/c-c++-common/pragma-diag-17.c
+++ b/gcc/testsuite/c-c++-common/pragma-diag-17.c
@@ -12,7 +12,7 @@ void f()
0b0100; /* { dg-error "binary constant" "" { target { ! c++14 } } }
*/
#pragma GCC diagnostic ignored "-Wpedantic"
2.0j;
- 1.0dd;
+ 1.0dd; /* { dg-error "decimal floating-point" "" { target { ! dfp } } } */
1.0d;
#ifdef __cplusplus
base-commit: bec1f2ce4ad3fe56906d6429b542a290e574b3eb
--
2.46.0