Patchwork [COMMITTED] Disable inappropriate LTO testcases in the presence of --disable-lto

login
register
mail settings
Submitter Marcus Shawcroft
Date Sept. 22, 2010, 10:11 a.m.
Message ID <000001cb5a3e$7d23ee10$776bca30$@shawcroft@arm.com>
Download mbox | patch
Permalink /patch/65416/
State New
Headers show

Comments

Marcus Shawcroft - Sept. 22, 2010, 10:11 a.m.
Hi,

The recent patch http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01322.html
modified a number of test cases adding an effective target precondition. Due
to a typo, the precondition is silently discarded with the effect that the
tests are always run. Committed as obvious.

2010-09-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>

        * gcc.dg/debug/pr41893-1.c: Typo fix to dg-require-effective-target
lto.
        * gcc.dg/pr27898.c: Likewise.
        * gcc.dg/pr28712.c: Likewise.
        * gcc.dg/pr30762-1.c: Likewise.
        * gcc.dg/pr31529-1.c: Likewise.
        * gcc.dg/pr34457-1.c: Likewise.
        * gcc.dg/pr34668-1.c: Likewise.
        * gcc.dg/pr34989-1.c: Likewise.
        * gcc.dg/pr43557-1.c: Likewise.

/Marcus
Gerald Pfeifer - Sept. 22, 2010, 2:40 p.m.
On Wed, 22 Sep 2010, Marcus Shawcroft wrote:
> The recent patch http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01322.html 
> modified a number of test cases adding an effective target precondition. 
> Due to a typo, the precondition is silently discarded with the effect 
> that the tests are always run. Committed as obvious.

Good catch -- thanks a lot, Marcus.

Gerald

Patch

diff --git a/gcc/testsuite/gcc.dg/debug/pr41893-1.c b/gcc/testsuite/gcc.dg/debug/pr41893-1.c
index fbd7445..150fdef 100644
--- a/gcc/testsuite/gcc.dg/debug/pr41893-1.c
+++ b/gcc/testsuite/gcc.dg/debug/pr41893-1.c
@@ -1,6 +1,6 @@ 
 /* PR debug/41893 */
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -fwhole-program -O -r -nostdlib" } */
 /* { dg-additional-sources "pr41893-2.c" } */
 
diff --git a/gcc/testsuite/gcc.dg/pr27898.c b/gcc/testsuite/gcc.dg/pr27898.c
index e4160ca..2763a49 100644
--- a/gcc/testsuite/gcc.dg/pr27898.c
+++ b/gcc/testsuite/gcc.dg/pr27898.c
@@ -1,6 +1,6 @@ 
 /* PR c/27898 */
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib" } */
 /* { dg-additional-sources "pr27898.c" } */
 
diff --git a/gcc/testsuite/gcc.dg/pr28712.c b/gcc/testsuite/gcc.dg/pr28712.c
index 1578577..f398321 100644
--- a/gcc/testsuite/gcc.dg/pr28712.c
+++ b/gcc/testsuite/gcc.dg/pr28712.c
@@ -1,6 +1,6 @@ 
 /* PR c/28712 */
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib" } */
 /* { dg-additional-sources "pr28712.c pr28712.c" } */
 
diff --git a/gcc/testsuite/gcc.dg/pr30762-1.c b/gcc/testsuite/gcc.dg/pr30762-1.c
index df93d73..74a566a 100644
--- a/gcc/testsuite/gcc.dg/pr30762-1.c
+++ b/gcc/testsuite/gcc.dg/pr30762-1.c
@@ -1,6 +1,6 @@ 
 /* PR c/30762 */
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib -O3" } */
 /* { dg-additional-sources pr30762-2.c } */
 
diff --git a/gcc/testsuite/gcc.dg/pr31529-1.c b/gcc/testsuite/gcc.dg/pr31529-1.c
index 4585b64..31339e1 100644
--- a/gcc/testsuite/gcc.dg/pr31529-1.c
+++ b/gcc/testsuite/gcc.dg/pr31529-1.c
@@ -1,5 +1,5 @@ 
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib" } */
 /* { dg-additional-sources "pr31529-2.c" } */
 
diff --git a/gcc/testsuite/gcc.dg/pr34457-1.c b/gcc/testsuite/gcc.dg/pr34457-1.c
index 1b4c316..3ccee11 100644
--- a/gcc/testsuite/gcc.dg/pr34457-1.c
+++ b/gcc/testsuite/gcc.dg/pr34457-1.c
@@ -1,7 +1,7 @@ 
 /* PR c/34457 */
 /* { dg-do link } */
 /* { dg-require-effective-target trampolines } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib -O2" } */
 /* { dg-additional-sources "pr34457-2.c" } */
    
diff --git a/gcc/testsuite/gcc.dg/pr34668-1.c b/gcc/testsuite/gcc.dg/pr34668-1.c
index 11c6691..5949566 100644
--- a/gcc/testsuite/gcc.dg/pr34668-1.c
+++ b/gcc/testsuite/gcc.dg/pr34668-1.c
@@ -1,6 +1,6 @@ 
 /* PR c/34668 */
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib -O2" } */
 /* { dg-additional-sources "pr34668-2.c" } */
 
diff --git a/gcc/testsuite/gcc.dg/pr34989-1.c b/gcc/testsuite/gcc.dg/pr34989-1.c
index cd45c83..47d8363 100644
--- a/gcc/testsuite/gcc.dg/pr34989-1.c
+++ b/gcc/testsuite/gcc.dg/pr34989-1.c
@@ -1,5 +1,5 @@ 
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib -O2" } */
 /* { dg-additional-sources "pr34989-2.c" } */
 
diff --git a/gcc/testsuite/gcc.dg/pr43557-1.c b/gcc/testsuite/gcc.dg/pr43557-1.c
index 466e89a..dd6667c 100644
--- a/gcc/testsuite/gcc.dg/pr43557-1.c
+++ b/gcc/testsuite/gcc.dg/pr43557-1.c
@@ -1,6 +1,6 @@ 
 /* PR debug/43557 */
 /* { dg-do link } */
-/* { dg-require-effective-target-lto } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-flto -r -nostdlib -g -O2" } */
 /* { dg-additional-sources "pr43557-2.c" } */