From patchwork Sun Aug 8 12:06:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 61207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A2A2CB6F10 for ; Sun, 8 Aug 2010 22:07:04 +1000 (EST) Received: (qmail 9360 invoked by alias); 8 Aug 2010 12:07:01 -0000 Received: (qmail 9341 invoked by uid 22791); 8 Aug 2010 12:06:59 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 Aug 2010 12:06:55 +0000 Received: by qwg8 with SMTP id 8so6716246qwg.20 for ; Sun, 08 Aug 2010 05:06:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.37.3 with SMTP id v3mr6115418qcd.169.1281269213084; Sun, 08 Aug 2010 05:06:53 -0700 (PDT) Received: by 10.229.182.18 with HTTP; Sun, 8 Aug 2010 05:06:53 -0700 (PDT) Date: Sun, 8 Aug 2010 14:06:53 +0200 Message-ID: Subject: [PATCH, testsuite]: A couple of small fixes and tweaks From: Uros Bizjak To: gcc-patches@gcc.gnu.org Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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.