]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: harmless dg-* whitespace fixes
authorSam James <sam@gentoo.org>
Thu, 27 Mar 2025 13:19:51 +0000 (13:19 +0000)
committerSam James <sam@gentoo.org>
Thu, 27 Mar 2025 13:29:47 +0000 (13:29 +0000)
These just fix inconsistent/unusual style to avoid noise when grepping
and also people picking up bad habits when they see it (as similar
mistakes can be harmful).

gcc/testsuite/ChangeLog:

* c-c++-common/goacc/pr69916.c: Fix unusual whitespace in dg-*.
* g++.old-deja/g++.abi/vtable2.C: Ditto.
* g++.old-deja/g++.bugs/900330_02.C: Ditto.
* g++.old-deja/g++.bugs/900406_02.C: Ditto.
* g++.old-deja/g++.bugs/900519_13.C: Ditto.
* g++.old-deja/g++.mike/p9068.C: Ditto.
* gcc.dg/20040203-1.c: Ditto.
* gcc.dg/980502-1.c: Ditto.
* gcc.dg/ipa/ipa-sra-14.c: Ditto.
* gcc.dg/pr35468.c: Ditto.
* gcc.dg/pr82597.c: Ditto.
* gcc.dg/tree-ssa/phi-opt-7.c: Ditto.
* gfortran.dg/assumed_charlen_in_main.f90: Ditto.
* gfortran.dg/cray_pointers_2.f90: Ditto.

14 files changed:
gcc/testsuite/c-c++-common/goacc/pr69916.c
gcc/testsuite/g++.old-deja/g++.abi/vtable2.C
gcc/testsuite/g++.old-deja/g++.bugs/900330_02.C
gcc/testsuite/g++.old-deja/g++.bugs/900406_02.C
gcc/testsuite/g++.old-deja/g++.bugs/900519_13.C
gcc/testsuite/g++.old-deja/g++.mike/p9068.C
gcc/testsuite/gcc.dg/20040203-1.c
gcc/testsuite/gcc.dg/980502-1.c
gcc/testsuite/gcc.dg/ipa/ipa-sra-14.c
gcc/testsuite/gcc.dg/pr35468.c
gcc/testsuite/gcc.dg/pr82597.c
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-7.c
gcc/testsuite/gfortran.dg/assumed_charlen_in_main.f90
gcc/testsuite/gfortran.dg/cray_pointers_2.f90

index e037af34a632193113950ac57f9dae7fedfeb2d1..5c46bb7dbed7b2c863ce7ccd852a0cbe266a3c51 100644 (file)
@@ -1,4 +1,4 @@
-/* {  dg-additional-options "-O2" } */
+/* { dg-additional-options "-O2" } */
 
 /* PR 69916, an loop determined to be empty sometime after omp-lower
    and before oacc-device-lower can evaporate leading to no GOACC_LOOP
index 96533e09218e5c94c510853ac59a12a5b6661782..762277dfa2ae7fe2fb9bb62d86815fc9d00fdcf6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do run  }
+// { dg-do run }
 // { dg-options "-Wno-attribute-alias -fno-strict-aliasing" }
 // Origin: Mark Mitchell <mark@codesourcery.com>
 
index f1591b2e5c7d6e2f1eed6a15a5dedeae9a888b53..4f2f83149f40a5b2e44fc8486d385dbfc44a89c6 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble  }
+// { dg-do assemble }
 // g++ 1.37.1 bug 900330_02
 
 // The C++ Reference Manual says in section 13.1:
index bcbffeb559da6e740397ab75b75fbb6b601892e0..dcce14cd40ca6adf2fc1c981304e24d25f05d9d2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do run  }
+// { dg-do run }
 // g++ bug 900406_02
 
 // g++ fails to correctly parse some type specifications within casts.
index 6b8260d418ba408c97d17e25ed406300185bf1f1..91293bf0538494ea22eb5369448810224d5831e9 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble  }
+// { dg-do assemble }
 // g++ 1.37.1 bug 900519_13
 
 // If multiple inheritance creates a situation in which a given name is
index a33f60f58e4f17f4b86b6ae651b41c58cce04b4f..b12bdb4806b3f79f001b853f9423ff643a98a208 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do assemble  }
+// { dg-do assemble }
 // prms-id: 9068
 
 struct ostream {
index 59c824ea47c307aae9b68e6d5fc9d7c76740b55c..b92c0ec1cfad027c6cea4e955720e5b6712d5352 100644 (file)
@@ -1,6 +1,6 @@
 /* PR/13994; bug_cond2 was rejected on gcc up to version 3.4.x */
-/* { dg-do compile  }*/
-/* { dg-options "-std=gnu89"  }*/
+/* { dg-do compile */
+/* { dg-options "-std=gnu89" */
 
 struct s { char c[1]; };
 struct s a;
index f06491cd96c0fe0b28feea7eb16069d2c10e1c30..6a64c76c0a0956b5a42dad2e704e58bcce619af4 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile  }*/
+/* { dg-do compile */
 /* { dg-options "-O2" } */
 
 char *const f(void)
index 75619c67b092fb29aa13e1b82da4f5b7d50072ea..81bfd3c869e62c07a32345cff5169b84c2ead2dc 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-O2 -fipa-sra -fdump-ipa-sra"  } */
+/* { dg-options "-O2 -fipa-sra -fdump-ipa-sra" } */
 
 /* Check of a transitive recursive structure split. */
 
index 085c073070c47d7980125dc4afee45266bf606d8..1bd7a9d97cfe5422a04a28ccbf91267b7f33484e 100644 (file)
@@ -1,5 +1,5 @@
 /* PR tree-optimization/35468 */
-/* { dg-do compile  }*/
+/* { dg-do compile */
 /* { dg-options "-O2 -fno-tree-dce" } */
 
 char *const f(void)
index 98ae264d1c9e68c1f5d4a58720ba4c9d7609f5fc..5c034f3df087e0b4addecf404936abe422637449 100644 (file)
@@ -1,5 +1,5 @@
 /* PR rtl-optimization/82597 */
-/* { dg-do compile  }*/
+/* { dg-do compile */
 /* { dg-options "-O2 -funroll-loops" } */
 
 int pb;
index 3ee43e55692ec0c238f63c7e7ef8409864443a1b..9b180d5960864b781c2f49ff1557bbe90e1a720e 100644 (file)
@@ -16,7 +16,7 @@ int f(int t, int c)
 }
 
 /* There should be no ifs as this is converted into `(t != 0) & (c != 0)`.
-/* { dg-final { scan-tree-dump-not "if" "optimized" }  }*/
+/* { dg-final { scan-tree-dump-not "if" "optimized" }  } */
 /* { dg-final { scan-tree-dump-times "\[^\r\n\]*_\[0-9\]* = c_\[0-9\]*.D. != 0" 1 "optimized"  } } */
 /* { dg-final { scan-tree-dump-times "\[^\r\n\]*_\[0-9\]* = t_\[0-9\]*.D. != 0" 1 "optimized"  } } */
 
index f4bb701548d6b316709e848d8a61c4aa6848d5c3..695a5801324c4cce762ee7a7de2a61aa90e22edb 100644 (file)
@@ -20,7 +20,7 @@ end subroutine poobar
 program test
   character(len=*), parameter :: foo = 'test'     ! Parameters must work.
   character(len=4) :: bar = foo
-  character(len=*) :: foobar = 'This should fail' ! {  dg-error "must be a dummy" }
+  character(len=*) :: foobar = 'This should fail' ! { dg-error "must be a dummy" }
   print *, bar
   call poobar ()
 end
index 4351874825edfe3353a6bd151fe869aad7ff18f5..a7e15bad850a8eedc7f99d28e8f89d6e9a95bc1f 100644 (file)
@@ -1,6 +1,6 @@
 ! Using two spaces between dg-do and run is a hack to keep gfortran-dg-runtest
 ! from cycling through optimization options for this expensive test.
-! { dg-do  run }
+! { dg-do run }
 ! { dg-options "-O3 -fcray-pointer -fbounds-check -fno-inline" }
 ! { dg-timeout-factor 4 }
 !