Patchwork [testsuite] : Fix PR 51128, scan failures with -fno-fat-lto-objects

login
register
mail settings
Submitter Uros Bizjak
Date Dec. 5, 2011, 6:02 p.m.
Message ID <CAFULd4ZtJUu9ve0Or6-WxCqhLCu-9vhOwqSnM2U4BnKwU8YCtA@mail.gmail.com>
Download mbox | patch
Permalink /patch/129389/
State New
Headers show

Comments

Uros Bizjak - Dec. 5, 2011, 6:02 p.m.
Hello!

Just skip these tests when -fno-fat-lto-objects was added to options.

2011-12-05  Uros Bizjak  <ubizjak@gmail.com>

	PR testsuite/51128
	* gcc.dg/torture/pr23821.c: Skip if -fno-fat-lto-objects was passed.
	* gcc.dg/torture/pr39074.c: Ditto.
	* gcc.dg/torture/pr39074-2.c: Ditto.
	* gcc.dg/torture/pr42898.c: Ditto.
	* gcc.dg/torture/pr42898-2.c: Ditto.
	* gcc.dg/torture/pr45704.c: Ditto.
	* gcc.dg/torture/pr50472.c: Ditto.
	* gcc.dg/torture/pta-callused-1.c: Ditto.
	* gcc.dg/torture/pta-ptrarith-1.c: Ditto.
	* gcc.dg/torture/pta-ptrarith-2.c: Ditto.
	* gcc.dg/torture/pta-ptrarith-3.c: Ditto.
	* gcc.dg/torture/pta-escape-1.c: Ditto.
	* gcc.dg/torture/ipa-pta-1.c: Ditto.
	* gcc.dg/torture/ssa-pta-fn-1.c: Ditto.

Tested on x86_64-pc-linux-gnu {, -m32}, committed to mainline SVN.

Uros.
Hans-Peter Nilsson - Dec. 19, 2011, 3:48 a.m.
On Mon, 5 Dec 2011, Uros Bizjak wrote:
> Hello!
>
> Just skip these tests when -fno-fat-lto-objects was added to options.
>
> 2011-12-05  Uros Bizjak  <ubizjak@gmail.com>
>
> 	PR testsuite/51128
> 	* gcc.dg/torture/pr23821.c: Skip if -fno-fat-lto-objects was passed.
> 	* gcc.dg/torture/pr39074.c: Ditto.
> 	* gcc.dg/torture/pr39074-2.c: Ditto.
> 	* gcc.dg/torture/pr42898.c: Ditto.
> 	* gcc.dg/torture/pr42898-2.c: Ditto.
> 	* gcc.dg/torture/pr45704.c: Ditto.
> 	* gcc.dg/torture/pr50472.c: Ditto.
> 	* gcc.dg/torture/pta-callused-1.c: Ditto.
> 	* gcc.dg/torture/pta-ptrarith-1.c: Ditto.
> 	* gcc.dg/torture/pta-ptrarith-2.c: Ditto.
> 	* gcc.dg/torture/pta-ptrarith-3.c: Ditto.
> 	* gcc.dg/torture/pta-escape-1.c: Ditto.
> 	* gcc.dg/torture/ipa-pta-1.c: Ditto.
> 	* gcc.dg/torture/ssa-pta-fn-1.c: Ditto.
>
> Tested on x86_64-pc-linux-gnu {, -m32}, committed to mainline SVN.

For future reference, doing
<http://gcc.gnu.org/ml/gcc-patches/2011-10/msg01998.html> would
have been better than this scattered approach.

brgds, H-P

Patch

Index: gcc.dg/torture/pta-ptrarith-1.c
===================================================================
--- gcc.dg/torture/pta-ptrarith-1.c	(revision 182010)
+++ gcc.dg/torture/pta-ptrarith-1.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 struct Foo {
   int *p;
Index: gcc.dg/torture/pta-ptrarith-2.c
===================================================================
--- gcc.dg/torture/pta-ptrarith-2.c	(revision 182010)
+++ gcc.dg/torture/pta-ptrarith-2.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 struct Foo {
   int **p;
Index: gcc.dg/torture/pr23821.c
===================================================================
--- gcc.dg/torture/pr23821.c	(revision 182010)
+++ gcc.dg/torture/pr23821.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 /* At -O1 DOM threads a jump in a non-optimal way which leads to
    the bogus propagation.  */
 /* { dg-skip-if "" { *-*-* } { "-O1" } { "" } } */
Index: gcc.dg/torture/pta-ptrarith-3.c
===================================================================
--- gcc.dg/torture/pta-ptrarith-3.c	(revision 182010)
+++ gcc.dg/torture/pta-ptrarith-3.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 extern void abort (void);
 struct X {
Index: gcc.dg/torture/pr45704.c
===================================================================
--- gcc.dg/torture/pr45704.c	(revision 182010)
+++ gcc.dg/torture/pr45704.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
 
 struct st {
     int ptr;
Index: gcc.dg/torture/pr50472.c
===================================================================
--- gcc.dg/torture/pr50472.c	(revision 182010)
+++ gcc.dg/torture/pr50472.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
 
 static const unsigned int foo = 1;
 unsigned int test( void )
Index: gcc.dg/torture/ipa-pta-1.c
===================================================================
--- gcc.dg/torture/ipa-pta-1.c	(revision 182010)
+++ gcc.dg/torture/ipa-pta-1.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do compile { target { nonpic } } } */
 /* { dg-options "-fipa-pta -fdump-ipa-pta" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 struct X { char x; char y; };
 
Index: gcc.dg/torture/pta-callused-1.c
===================================================================
--- gcc.dg/torture/pta-callused-1.c	(revision 182010)
+++ gcc.dg/torture/pta-callused-1.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 volatile int i;
 int ** __attribute__((noinline,pure)) foo(int **p) { i; return p; }
Index: gcc.dg/torture/pr39074-2.c
===================================================================
--- gcc.dg/torture/pr39074-2.c	(revision 182010)
+++ gcc.dg/torture/pr39074-2.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* { dg-do run } */
 /* { dg-require-effective-target stdint_types } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 #include <stdint.h>
 
Index: gcc.dg/torture/pr39074.c
===================================================================
--- gcc.dg/torture/pr39074.c	(revision 182010)
+++ gcc.dg/torture/pr39074.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 typedef __PTRDIFF_TYPE__ intptr_t;
 
Index: gcc.dg/torture/pr42898-2.c
===================================================================
--- gcc.dg/torture/pr42898-2.c	(revision 182010)
+++ gcc.dg/torture/pr42898-2.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
 
 struct hardware {
   int parm1:8;
Index: gcc.dg/torture/pr42898.c
===================================================================
--- gcc.dg/torture/pr42898.c	(revision 182010)
+++ gcc.dg/torture/pr42898.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
 
 struct hardware {
   int parm1:8;
Index: gcc.dg/torture/pta-escape-1.c
===================================================================
--- gcc.dg/torture/pta-escape-1.c	(revision 182010)
+++ gcc.dg/torture/pta-escape-1.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 int *p;
 void __attribute__((noinline,noclone))
Index: gcc.dg/torture/ssa-pta-fn-1.c
===================================================================
--- gcc.dg/torture/ssa-pta-fn-1.c	(revision 182010)
+++ gcc.dg/torture/ssa-pta-fn-1.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fdump-tree-alias" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
 
 extern void abort (void);
 int *glob;