From patchwork Fri Sep 19 17:11:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 391356 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DDEA514019D for ; Sat, 20 Sep 2014 03:12:10 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=b/YO66+gpc+Cy1AWj GroUV24zUSh/S9r5PNfz/qB5qVVcAuNjl2beElIJIcKQldW/ghX5dtr/qEk1KpcD fb4mB1Zy44I5WTsGvWb6osr4kW0QlVXCXr3rGmfyXXfGc7JWJOvYxlhUdR574m+m prlSPMtUIdsxC3tkapF9BF3g1s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=default; bh=hSxWKCdroMF71gxrprTeKS+ qSCk=; b=Meq4eQpX+ycPP5atu2oNS7zxxd1J464tNei6wg8yIkfghr/yLxRR/qy JCgI2b2zwERmWxrl6Wsttzg17VAlEd+D/A4135MVRTXM0QO30H+Y/V7mmdYsGAzx qJUUHEv8Ny0aW3AxoU6YU6lSMgNxIpacn9xWbiEs8Jr0Tmzt3vd0= Received: (qmail 17841 invoked by alias); 19 Sep 2014 17:12:02 -0000 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 Received: (qmail 17812 invoked by uid 89); 19 Sep 2014 17:11:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: one.firstfloor.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (193.170.194.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 19 Sep 2014 17:11:58 +0000 Received: by one.firstfloor.org (Postfix, from userid 503) id 68AB7869B6; Fri, 19 Sep 2014 19:11:53 +0200 (CEST) Date: Fri, 19 Sep 2014 19:11:53 +0200 From: Andi Kleen To: Jakub Jelinek Cc: Andi Kleen , Dominique Dhumieres , gcc-patches@gcc.gnu.org, iain@codesourcery.com Subject: Re: [PATCH 2/2] Add some more test cases for fentry and pg Message-ID: <20140919171153.GC4120@two.firstfloor.org> References: <20140917134237.D6D77100@mailhost.lps.ens.fr> <20140917143220.GX4120@two.firstfloor.org> <20140917143900.GY4120@two.firstfloor.org> <20140917145133.GK17454@tucnak.redhat.com> <20140917154645.GZ4120@two.firstfloor.org> <20140917155012.GM17454@tucnak.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140917155012.GM17454@tucnak.redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) This is the patch I committed. Should fix everyone's issues. Fix mcount test cases to only run on supported targets * gcc.dg/pg-override.c: Only run on x86 Linux. * gcc.dg/pg.c: Dito. * gcc.target/i386/fentry-override.c: Exclude for PIC. * gcc.target/i386/fentry.c: Dito. diff --git a/gcc/testsuite/gcc.dg/pg-override.c b/gcc/testsuite/gcc.dg/pg-override.c index 60be162..9b8d8fa 100644 --- a/gcc/testsuite/gcc.dg/pg-override.c +++ b/gcc/testsuite/gcc.dg/pg-override.c @@ -1,6 +1,6 @@ /* Test -fprofile override */ /* { dg-do compile } */ -/* { dg-options "-fprofile" { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-fprofile" { target i?86-*-linux* x86_64-*-linux* } } */ /* { dg-final { scan-assembler-not "mcount" } } */ /* Origin: Andi Kleen */ extern void foobar(const char *); diff --git a/gcc/testsuite/gcc.dg/pg.c b/gcc/testsuite/gcc.dg/pg.c index 60be162..9b8d8fa 100644 --- a/gcc/testsuite/gcc.dg/pg.c +++ b/gcc/testsuite/gcc.dg/pg.c @@ -1,6 +1,6 @@ /* Test -fprofile override */ /* { dg-do compile } */ -/* { dg-options "-fprofile" { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-fprofile" { target i?86-*-linux* x86_64-*-linux* } } */ /* { dg-final { scan-assembler-not "mcount" } } */ /* Origin: Andi Kleen */ extern void foobar(const char *); diff --git a/gcc/testsuite/gcc.target/i386/fentry-override.c b/gcc/testsuite/gcc.target/i386/fentry-override.c index 3771f19..0464454 100644 --- a/gcc/testsuite/gcc.target/i386/fentry-override.c +++ b/gcc/testsuite/gcc.target/i386/fentry-override.c @@ -1,5 +1,5 @@ /* Test -mfentry override */ -/* { dg-do compile } */ +/* { dg-do compile { target { *-*-linux* } && { nonpic || ! { ia32 } } } } */ /* { dg-options "-mfentry" } */ /* { dg-final { scan-assembler-not "__fentry__" } } */ /* Origin: Andi Kleen */ diff --git a/gcc/testsuite/gcc.target/i386/fentry.c b/gcc/testsuite/gcc.target/i386/fentry.c index bd3db13..d0d70c6 100644 --- a/gcc/testsuite/gcc.target/i386/fentry.c +++ b/gcc/testsuite/gcc.target/i386/fentry.c @@ -1,5 +1,5 @@ /* Test -mfentry */ -/* { dg-do compile } */ +/* { dg-do compile { target { *-*-linux* } && { nonpic || ! { ia32 } } } } */ /* { dg-options "-fprofile -mfentry" } */ /* { dg-final { scan-assembler "__fentry__" } } */ /* Origin: Andi Kleen */