aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2025-03-26 17:39:32 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2025-03-26 17:39:32 -0400
commita49d66f4e5e9cc5d133b25b022a09aa7f2a2162c (patch)
tree689a082914954bea7de84f9d83265d55445f9abb /gcc
parent57d711ba58f8a69dce22b2a543d8e6c668680865 (diff)
downloadgcc-a49d66f4e5e9cc5d133b25b022a09aa7f2a2162c.zip
gcc-a49d66f4e5e9cc5d133b25b022a09aa7f2a2162c.tar.gz
gcc-a49d66f4e5e9cc5d133b25b022a09aa7f2a2162c.tar.bz2
testsuite: fix broken dg directives
Found by dg-lint. gcc/testsuite/ChangeLog: * gcc.dg/ipa/pr110377.c: Fix missing trailing " }" in dg-do directive. * gcc.dg/plugin/infoleak-1.c: Fix dg-bogus directive. * gcc.dg/pr101364-1.c: Fix missing trailing " }" in dg-options directive. * gcc.dg/pr113207.c: Fix dg-do. * gcc.dg/sarif-output/include-chain-2.c: Fix ordering of dg-do and dg-require-effective-target. * gcc.dg/strub-pr118007.c: Likewise. * gcc.dg/tanhbysinh.c: Fix missing whitespace after opening brace and before closing brace in 6 dg-final directives. * gcc.dg/uninit-pred-3_c.c: Fix missing whitespace after opening brace in 6 dg-final directive. * gcc.dg/uninit-pred-3_d.c: Likewise. * gcc.dg/variable-sized-type-flex-array.c: Fix missing space between dg-bogus and message in 2 places. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/ipa/pr110377.c2
-rw-r--r--gcc/testsuite/gcc.dg/plugin/infoleak-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/pr101364-1.c2
-rw-r--r--gcc/testsuite/gcc.dg/pr113207.c2
-rw-r--r--gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/strub-pr118007.c2
-rw-r--r--gcc/testsuite/gcc.dg/tanhbysinh.c12
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pred-3_c.c2
-rw-r--r--gcc/testsuite/gcc.dg/uninit-pred-3_d.c2
-rw-r--r--gcc/testsuite/gcc.dg/variable-sized-type-flex-array.c4
10 files changed, 16 insertions, 16 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/pr110377.c b/gcc/testsuite/gcc.dg/ipa/pr110377.c
index 63120a9..76faef5 100644
--- a/gcc/testsuite/gcc.dg/ipa/pr110377.c
+++ b/gcc/testsuite/gcc.dg/ipa/pr110377.c
@@ -1,4 +1,4 @@
-/* { dg-do compile */
+/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-cp" } */
int test3(int);
__attribute__ ((noinline))
diff --git a/gcc/testsuite/gcc.dg/plugin/infoleak-1.c b/gcc/testsuite/gcc.dg/plugin/infoleak-1.c
index 4c5a86a..07e3101 100644
--- a/gcc/testsuite/gcc.dg/plugin/infoleak-1.c
+++ b/gcc/testsuite/gcc.dg/plugin/infoleak-1.c
@@ -69,7 +69,7 @@ void test_2d (void __user *dst, u32 a)
{
struct s2 s = {0};
s.i = a;
- copy_to_user(dst, &s, sizeof (struct s2)); /* { dg-bogus" } */
+ copy_to_user(dst, &s, sizeof (struct s2)); /* { dg-bogus "" } */
}
struct empty {};
diff --git a/gcc/testsuite/gcc.dg/pr101364-1.c b/gcc/testsuite/gcc.dg/pr101364-1.c
index e7c94a0..c2e3211 100644
--- a/gcc/testsuite/gcc.dg/pr101364-1.c
+++ b/gcc/testsuite/gcc.dg/pr101364-1.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-std=c90 "} */
+/* { dg-options "-std=c90" } */
void fruit(); /* { dg-message "previous declaration" } */
void fruit( /* { dg-error "conflicting types for" } */
diff --git a/gcc/testsuite/gcc.dg/pr113207.c b/gcc/testsuite/gcc.dg/pr113207.c
index 81f53d8..a8bc80d 100644
--- a/gcc/testsuite/gcc.dg/pr113207.c
+++ b/gcc/testsuite/gcc.dg/pr113207.c
@@ -1,4 +1,4 @@
-/* { dg-compile } */
+/* { dg-do compile } */
/* { dg-require-effective-target lto } */
/* { dg-options "-flto -fchecking" } */
diff --git a/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c b/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c
index d5e3b0c..643a709 100644
--- a/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c
+++ b/gcc/testsuite/gcc.dg/sarif-output/include-chain-2.c
@@ -1,6 +1,6 @@
+/* { dg-do compile } */
/* { dg-require-effective-target analyzer } */
/* { dg-options "-fanalyzer -fdiagnostics-format=sarif-file" } */
-/* { dg-do compile } */
/* Verify that SARIF output can capture chains of include files in
diagnostic paths within result locations.
diff --git a/gcc/testsuite/gcc.dg/strub-pr118007.c b/gcc/testsuite/gcc.dg/strub-pr118007.c
index 51f4824..92cd31e 100644
--- a/gcc/testsuite/gcc.dg/strub-pr118007.c
+++ b/gcc/testsuite/gcc.dg/strub-pr118007.c
@@ -1,5 +1,5 @@
-/* { dg-require-effective-target strub } */
/* { dg-do compile } */
+/* { dg-require-effective-target strub } */
/* { dg-options "-fstrub=all -O2" } */
void rb_ec_error_print(struct rb_execution_context_struct *volatile) {} /* { dg-warning "declared inside parameter list" } */
diff --git a/gcc/testsuite/gcc.dg/tanhbysinh.c b/gcc/testsuite/gcc.dg/tanhbysinh.c
index 9dbe133..74fdd52 100644
--- a/gcc/testsuite/gcc.dg/tanhbysinh.c
+++ b/gcc/testsuite/gcc.dg/tanhbysinh.c
@@ -30,12 +30,12 @@ tanhbysinhl_ (long double x)
/* There must be no calls to sinh or atanh */
/* There must be calls to cosh */
-/* {dg-final { scan-tree-dump-not "sinh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "tanh " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinhf " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "tanhf " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinhl " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "tanhl " "optimized" }} */
+/* { dg-final { scan-tree-dump-not "sinh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "tanh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinhf " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "tanhf " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinhl " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "tanhl " "optimized" } } */
/* { dg-final { scan-tree-dump "cosh " "optimized" } } */
/* { dg-final { scan-tree-dump "coshf " "optimized" } } */
/* { dg-final { scan-tree-dump "coshl " "optimized" } } */
diff --git a/gcc/testsuite/gcc.dg/uninit-pred-3_c.c b/gcc/testsuite/gcc.dg/uninit-pred-3_c.c
index 1309790..2125448 100644
--- a/gcc/testsuite/gcc.dg/uninit-pred-3_c.c
+++ b/gcc/testsuite/gcc.dg/uninit-pred-3_c.c
@@ -23,6 +23,6 @@ int foo (int n, int m, int r)
if (r > 0)
if (flag < 0)
- blah(v); /* {dg-bogus "uninitialized" "bogus warning" } */
+ blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */
return 0;
}
diff --git a/gcc/testsuite/gcc.dg/uninit-pred-3_d.c b/gcc/testsuite/gcc.dg/uninit-pred-3_d.c
index 9f93876..272e46b 100644
--- a/gcc/testsuite/gcc.dg/uninit-pred-3_d.c
+++ b/gcc/testsuite/gcc.dg/uninit-pred-3_d.c
@@ -23,6 +23,6 @@ int foo (int n, int m, int r)
if (r > 0)
if (flag == -1)
- blah(v); /* {dg-bogus "uninitialized" "bogus warning" } */
+ blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */
return 0;
}
diff --git a/gcc/testsuite/gcc.dg/variable-sized-type-flex-array.c b/gcc/testsuite/gcc.dg/variable-sized-type-flex-array.c
index 3924937..2267af5 100644
--- a/gcc/testsuite/gcc.dg/variable-sized-type-flex-array.c
+++ b/gcc/testsuite/gcc.dg/variable-sized-type-flex-array.c
@@ -26,6 +26,6 @@ union flex_union_mid1 { int a; struct outer_flex_mid1 b; }; /* { dg-bogus "struc
struct flexn { int n; int data[8]; };
struct out_flex_endn { int m; struct flexn flex_data; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */
-struct out_flex_midn { struct flexn flex_data; int m; }; /* { dg-bogus"structure containing a flexible array member is not at the end of another structure" } */
-struct outer_flex_midn { struct out_flex_midn out_flex_data; int p; }; /* { dg-bogus"structure containing a flexible array member is not at the end of another structure" } */
+struct out_flex_midn { struct flexn flex_data; int m; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */
+struct outer_flex_midn { struct out_flex_midn out_flex_data; int p; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */
union flex_union_midn { int a; struct outer_flex_midn b; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */