Clean up tests where a later dg-do completely overrides another.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Fri, 29 Apr 2016 09:19:01 +0000 (09:19 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 29 Apr 2016 09:19:01 +0000 (09:19 +0000)
The attached patch cleans up some (mostly unnecessary) dg-do
directives in the gcc.dg and gcc.target test cases.

gcc/testsuite/ChangeLog:

2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>

* gcc/testsuite/gcc.dg/cpp/mac-dir-2.c: Remove pointless duplicate
dg-do.
* gcc/testsuite/gcc.dg/pr27003.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/cswtch.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c: Likewise.
* gcc.target/arc/mxy.c: Likewise.
* gcc.target/arc/mswape.c: Likewise.
* gcc.target/arc/mrtsc.c: Likewise.
* gcc.target/arc/mcrc.c: Likewise.
* gcc.target/arc/mdsp-packa.c: Likewise.
* gcc.target/arc/mdvbf.c: Likewise.
* gcc.target/arc/mlock.c: Likewise.
* gcc.target/arc/mmac-24.c: Likewise.
* gcc.dg/spec-options.c: Switch order of the two "dg-do run".

From-SVN: r235628

14 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/mac-dir-2.c
gcc/testsuite/gcc.dg/pr27003.c
gcc/testsuite/gcc.dg/spec-options.c
gcc/testsuite/gcc.dg/tree-ssa/cswtch.c
gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c
gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c
gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c
gcc/testsuite/gcc.target/arc/mcrc.c
gcc/testsuite/gcc.target/arc/mlock.c
gcc/testsuite/gcc.target/arc/mmac-24.c
gcc/testsuite/gcc.target/arc/mrtsc.c
gcc/testsuite/gcc.target/arc/mswape.c
gcc/testsuite/gcc.target/arc/mxy.c

index e6850db9ef665ed70764fe2c967770e3c8a0c728..020b08e0b4a4c4fe2f304065adaf4bd7e2ea31db 100644 (file)
@@ -1,3 +1,22 @@
+2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
+
+       * gcc/testsuite/gcc.dg/cpp/mac-dir-2.c: Remove pointless duplicate
+       dg-do.
+       * gcc/testsuite/gcc.dg/pr27003.c: Likewise.
+       * gcc/testsuite/gcc.dg/tree-ssa/cswtch.c: Likewise.
+       * gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c: Likewise.
+       * gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c: Likewise.
+       * gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c: Likewise.
+       * gcc.target/arc/mxy.c: Likewise.
+       * gcc.target/arc/mswape.c: Likewise.
+       * gcc.target/arc/mrtsc.c: Likewise.
+       * gcc.target/arc/mcrc.c: Likewise.
+       * gcc.target/arc/mdsp-packa.c: Likewise.
+       * gcc.target/arc/mdvbf.c: Likewise.
+       * gcc.target/arc/mlock.c: Likewise.
+       * gcc.target/arc/mmac-24.c: Likewise.
+       * gcc.dg/spec-options.c: Switch order of the two "dg-do run".
+
 2016-04-29  Sebastian Huber  <sebastian.huber@embedded-brains.de>
            Matthijs Kooijman  <matthijs@stdin.nl>
            Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
index b31ab3bee7bf4d59aa1993c908de11ac6ef80af4..4c45d146b40cb734bc708fff2c5a6bb373a36f5c 100644 (file)
@@ -1,7 +1,5 @@
 /* Copyright (C) 2002 Free Software Foundation, Inc.  */
 
-/* { dg-do preprocess } */
-
 /* Source: Neil Booth, 26 Feb 2002.
 
    Test that we allow directives in macro arguments.  */
index 5e416f4c0cf461a696739746b0f4bededbf4a3eb..7d886a0496f2c26ce4bab9cb193ddf459e2ff217 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-do run } */
 /* { dg-options "-Os" } */
 
index 1f9d8c1fd84afe2d7e45ad778449234eb4281151..e3ab23ac1101d7726a58e239d57d6080f5bcd03b 100644 (file)
@@ -1,8 +1,8 @@
 /* Check that -mfoo is accepted if defined in a user spec
    and that it is not passed on the command line.  */
 /* Must be processed in EXTRA_SPECS to run.  */
-/* { dg-do run { target sh*-*-* } } */
 /* { dg-do compile } */
+/* { dg-do run { target sh*-*-* } } */
 /* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */
 
 extern void abort(void);
index 80f92f7799f02e492b0f99933611367134dfa5a1..5737a0ef3c8c395e9fc56b0fb41b03af167cb7b2 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-switchconv" } */
 /* { dg-do run } */
 
index 72539218a949c22ad2a4acca4d6f0bd93edcfffa..0d92f8e230717b65d7a5f8839a16fe6fae0526f8 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-do run } */
 /* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */
 
index 3244c1d02275e45bc2415d4692548997099c11e8..382a464cef7aeb5d805157787a0296dd6d6f0758 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-do run } */
 /* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */
 
index 7ad0d79e3982031e614028c653bafc76b1e59981..a3ee1d946a76db246188f1c850e8f9bf8b918606 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-do run } */
 /* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */
 
index d3780bb00d6b91af14e3f4e027e904e15605de77..a449bdd48d63a5ae5d5385cf9c1c20ab3a788ff7 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-options "-mcrc" } */
 /* { dg-do assemble } */
 
index 3a8b050c30efcefc741cd76796e2e1777a117ff4..e207f91cddec5446103dc4431da4314bb7223403 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-options "-mlock" } */
 /* { dg-do assemble } */
 
index 30cb6981a03fea55d865eac0567275772c536fde..89da0b127aaac7f7fa9f438d63ce9a9acb777d96 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-options "-mmac-24" } */
 /* { dg-do assemble } */
 
index 31852a5e479b8fc6f3aae9e1caf2453acea338cd..15cb9395dfd53014060f515e8be5d857febb26ce 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-options "-mrtsc" } */
 /* { dg-do assemble } */
 
index 692e6a2bb6eec8abac48556bc6c91aead723bf45..6d23bde7c294a2f7ca94e743aad846c4d377c856 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-options "-mswape" } */
 /* { dg-do assemble } */
 
index 1ecc34d2bdb58d70a4536dd26023e9805e75112f..283daf05ec2949bdbc800065daaafd50a4f4e19a 100644 (file)
@@ -1,4 +1,3 @@
-/* { dg-do compile } */
 /* { dg-options "-mxy" } */
 /* { dg-do assemble } */