From patchwork Fri Jul 13 16:11:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 141932 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp993260ljj; Fri, 13 Jul 2018 09:18:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdU+MZgU3Oi4NkGyFXygakoBjPxWQ/x8SepbJk6TaPTRCS5lbVgIFER1Yu45IiZBMukX3Gl X-Received: by 2002:a63:3190:: with SMTP id x138-v6mr6651132pgx.60.1531498680348; Fri, 13 Jul 2018 09:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531498680; cv=none; d=google.com; s=arc-20160816; b=go3C/mWf5s2OXABovf5+dwdh0qXWczuKORyfZO8ZCY9DTg9N0xsiIp1Vb9eGM7osvW 070XgGDhf0sCEvKU5GLtt0PofEm+tAVol+QejkScVcwCO0dddR1LOWV4hARBHseFrDsu GRsatVJCFrug72lLuhagt9WyfKFuwQXDgYgCxDang8e5eEP+ln+gscy6ABcgLZ0D/kjq SpJlf5BccaR2d2DDqgAjQX9vFvtkv7QNYkpRiVQG1obfqhkvwJuJ6P1w+CMOaaqLfN7R X2d7JEr0OhpLZ0bJPmF+6iMc2UmXNk4D5jZ5tE1rdRg9wI7tAYYUnxUkDgkUngCr2O9g nuZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=gIBFrPJXVR/sWjqycsoaOSs9P6dhxSlduLBaWWeaHFM=; b=tCVibGfdHLNxWCUWWEQimL7VfxoF6uJpIyMtUsE9aTx4R2i8OEAkI4hsdoZ+w6BlCq tmsLFngy6pzacsVAwhRjLTFBJXcTQ2iD2UJpS7gzLmrBqW6wmrotMnaELBp9x/ajtkNJ evy230+7/akLmxY9VwLw0D0plVHrXogVZImuX+bOLODBI1hYvuCAGSpl8Cdll5J7qcvZ LdMJn3XsRk0i7TNr1dow7t2sKGCEkdKiyLfQkeHJnGUPFWmyBeGBsFcPF3GujO6XsqAX WERMNa68b/1ck8lAEsHUEBVFE3L7K21WkiqzFQ6OoxAsTOL5Y7KHMabjoae1HPUe7lnd WiIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Eii61Rps; spf=pass (google.com: domain of gcc-patches-return-481527-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-481527-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id w19-v6si24578472pfn.160.2018.07.13.09.17.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 09:18:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-481527-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Eii61Rps; spf=pass (google.com: domain of gcc-patches-return-481527-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-481527-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=afgUIRbf6qAgMhNU ek13pUhIVSDmIDN44kRUHDt4OQWV61SVp1iYAqbcXSAakLrBYHkYjfE2tpXZBlXf sK4hbaj/yaEjDoQCORafrs7zNPk9eERyGOoSxByiQ/79POudWVL8eIydY6P5PlDi ymRzzpNsbTxg/tUay/fA+o6WLxU= 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:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=default; bh=n+X64tCiqgXNkzy85P8x1d +Qcvw=; b=Eii61Rpsei37MiaJqiMb/xpkjAIOpM30FSbaqzLa4nMOB+hL7d4u9M w6wjzNYqZEqNN29QJSABg4iJ08qDnbf44VKEFAHKikChILVzDpMd/b5e92NdovVO Jh6pwywFx8j0GjAfByFZ+YPsOgKKMErDCb3EtI3fnxLR3iMK/Ip+I= Received: (qmail 42113 invoked by alias); 13 Jul 2018 16:17:49 -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 42070 invoked by uid 89); 13 Jul 2018 16:17:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=gdwarf2, gdwarf-2 X-HELO: mx07-00178001.pphosted.com Received: from mx08-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (91.207.212.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Jul 2018 16:17:46 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w6DGDutu013862; Fri, 13 Jul 2018 18:17:44 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2k6x5dracp-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 13 Jul 2018 18:17:44 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F2F1331; Fri, 13 Jul 2018 16:17:43 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id DD646A6D9; Fri, 13 Jul 2018 16:17:43 +0000 (GMT) Received: from gnb.st.com (10.75.127.48) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 13 Jul 2018 18:17:43 +0200 From: To: CC: Subject: [ARM/FDPIC v2 17/21] [ARM][testsuite] FDPIC: Skip tests that don't work in PIC mode Date: Fri, 13 Jul 2018 18:11:12 +0200 Message-ID: <20180713161136.29104-18-christophe.lyon@st.com> In-Reply-To: <20180713161136.29104-1-christophe.lyon@st.com> References: <20180713161136.29104-1-christophe.lyon@st.com> MIME-Version: 1.0 X-IsSubscribed: yes From: Christophe Lyon Some tests fail on arm*-*-uclinuxfdpiceabi because it generates PIC code and they don't support it: skip them. They also fail on arm*-linux* when forcing -fPIC. 2018-XX-XX Christophe Lyon gcc/testsuite/ * gcc.target/arm/eliminate.c: Accept only nonpic targets. * g++.dg/other/anon5.C: Likewise. Change-Id: I8efb8d356ce25b020c44a84b07f79a996dca0358 -- 2.6.3 diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C index ee4601e..dadd92e 100644 --- a/gcc/testsuite/g++.dg/other/anon5.C +++ b/gcc/testsuite/g++.dg/other/anon5.C @@ -1,5 +1,6 @@ // PR c++/34094 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } } +// { dg-require-effective-target nonpic } // { dg-options "-gdwarf-2" } // Ignore additional message on powerpc-ibm-aix // { dg-prune-output "obtain more information" } */ diff --git a/gcc/testsuite/gcc.target/arm/eliminate.c b/gcc/testsuite/gcc.target/arm/eliminate.c index f254dd8..299d4df 100644 --- a/gcc/testsuite/gcc.target/arm/eliminate.c +++ b/gcc/testsuite/gcc.target/arm/eliminate.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target { nonpic } } } */ /* { dg-options "-O2" } */ struct X