From patchwork Sun Aug 8 12:06:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [testsuite] : A couple of small fixes and tweaks Date: Sun, 08 Aug 2010 02:06:53 -0000 From: Uros Bizjak X-Patchwork-Id: 61207 Message-Id: To: gcc-patches@gcc.gnu.org Hello! 2010-08-08 Uros Bizjak * 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. 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.