Patchwork [testsuite] : A couple of small fixes and tweaks

login
register
mail settings
Submitter Uros Bizjak
Date Aug. 8, 2010, 12:06 p.m.
Message ID <AANLkTikXtbERCdPk4BT5wsDywAgQtP6QKk5AJo4Via5m@mail.gmail.com>
Download mbox | patch
Permalink /patch/61207/
State New
Headers show

Comments

Uros Bizjak - Aug. 8, 2010, 12:06 p.m.
Hello!

2010-08-08  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.dg/march.c: Skip if -march defined.
	* gcc.dg/mtune.c: Skip if -mtune defined.

	* g++.old-deja/g++.jason/thunk3.C: Skip for targets with
	generic thunk support.

Tested on x86_64-pc-linux-gnu and a target that implements generic
thunk support (we will fail to compile thunk3.C test with an error).

Committed to 4.5 and mainline.

Uros.

Patch

Index: gcc.dg/march.c
===================================================================
--- gcc.dg/march.c	(revision 162994)
+++ gcc.dg/march.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-skip-if "" { *-*-* } { "-march=*" } { "" } } */
 /* { dg-options "-march=foo" } */
 /* { dg-error "march" "" { target *-*-* } 0 } */
 /* { dg-bogus "mtune" "" { target *-*-* } 0 } */
Index: gcc.dg/mtune.c
===================================================================
--- gcc.dg/mtune.c	(revision 162994)
+++ gcc.dg/mtune.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-skip-if "" { *-*-* } { "-mtune=*" } { "" } } */
 /* { dg-options "-mtune=foo" } */
 /* { dg-error "mtune" "" { target *-*-* } 0 } */
 /* { dg-bogus "march" "" { target *-*-* } 0 } */
Index: g++.old-deja/g++.jason/thunk3.C
===================================================================
--- g++.old-deja/g++.jason/thunk3.C	(revision 162994)
+++ g++.old-deja/g++.jason/thunk3.C	(working copy)
@@ -1,4 +1,5 @@ 
-// { dg-do run { xfail rs6000-*-* powerpc-*-eabi v850-*-* sh-*-* sh64-*-* h8*-*-* xtensa*-*-* m32r*-*-* lm32-*-* } }
+// { dg-do run }
+// { dg-skip-if "fails with generic thunk support" { rs6000-*-* powerpc-*-eabi v850-*-* sh-*-* sh64-*-* h8*-*-* xtensa*-*-* m32r*-*-* lm32-*-* } { "*" } { "" } }
 // Test that variadic function calls using thunks work right.
 // Note that this will break on any target that uses the generic thunk
 //  support, because it doesn't support variadic functions.