From patchwork Fri May 25 08:03:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 136815 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3299735lji; Fri, 25 May 2018 01:44:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpqz/OBODicT3gJ22p5gIosoNzchPzIRNk7oooBQp3SH1rEj7B3RBx61Gq0JJ850JAfiL2B X-Received: by 2002:a17:902:8d85:: with SMTP id v5-v6mr1648382plo.93.1527237869985; Fri, 25 May 2018 01:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527237869; cv=none; d=google.com; s=arc-20160816; b=rUMyxmxuLTGQqiaDh4wsK2agNHzjy5wxMxX/ceuB+ToMyihweKdQmRKwfCD+ClmnUw Pis+K1Lat1O5zwvvHq+kGAHxej6/NobUitZjJ0K+Lm5+YXOL9se2AI3O8QIMHtf9BG9n xxIepFhgvTudys2JMpYlr1TZ6dFDs0cqoQ88iQAgNlT4IdzwiOIby86s3uViAYpdCc4u vFS0ctDudazj/6u8wtqjZUc5MGmMNljBJkvZNOWZSO6vRzJURimdOgsyRhBdy7XWvhYS V8F1kVwhDcmetykwEEQKIwlWHjWxRCfxKs3kkgdskPWKMWnkG1jLsXI5nIg8jN5Em5Vq fMUg== 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: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=sNOThwMyfazvN16cNXz1UAv0yECorcIRkHNVigkZnhg=; b=HO03iKKxXotQ0UAnLAu/5AdsYrq3cBzPDFlkLn0i0eX2aVU+UC61XXLWNPUQJ73m7U x3dEsaddbbRAgEtJPeCUTC0sLaypk2YSkbQuGe9AoIrQ4+TZoOPXDVBStR+yq16wRofY I7/QrtWQJg8GEQCqleaj6x9PXJmRhY3iSJx4TvJQXySn4XX/TopJbZMQvWihR1ILe2Ds s2NO4C50aybhn90a/KM05HacV2cTFiI6BCfHnayLTHqEiQRi9gzrEZc5/dohsfSBozjU PvK4b6oc72ieNSh2XTn99Tzo2nwptc46IEBpG8en/wDZ7kDXqbMB3lpDtrY/qhjp7+03 OJbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=OMkaFVnc; spf=pass (google.com: domain of gcc-patches-return-478482-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478482-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 a3-v6si13915826pgc.300.2018.05.25.01.44.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 01:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-478482-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=OMkaFVnc; spf=pass (google.com: domain of gcc-patches-return-478482-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478482-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:subject:date:message-id:in-reply-to:references:mime-version :content-type; q=dns; s=default; b=oQfJ53ezWXcXbGdf90Lv+P/187wXm PD96foFLDQ8ri2mJDFwcwXuDb5yTn4sNjbKa5WpjAnsHyyijP7m0kyEaLRfE7NnG l6v6e/SzApkCMLcOpZ6v1VAT8ggkBlDb4HuoJg5r439XPNwLVaUBlSTVrO/76Bh9 K84gaZvLEK3mMs= 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:subject:date:message-id:in-reply-to:references:mime-version :content-type; s=default; bh=2WQuaKp5EK5CXw+/wvj5/JQeMcQ=; b=OMk aFVncdbw5RPSU/q5ExIf8p74YFxvSeTEDET0i92ajGFJeFM1p5mWGttr1LZmIzM8 N1a8Wabpq7gyJYGstBfppx6XqZKjqIVjiZnx7Rdp2lGYq7y5hQvi2q9t0/IB2UfU mCRxONZ0gHJSOnhjl1Ebl8L0eKE4KTeXl7cZPl74= Received: (qmail 125394 invoked by alias); 25 May 2018 08:26:27 -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 75452 invoked by uid 89); 25 May 2018 08:10:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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=gdwarf-2, gdwarf2, nonpic 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, 25 May 2018 08:10:18 +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 w4P895Eg019433; Fri, 25 May 2018 10:10:16 +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 2j59qwu4n7-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 May 2018 10:10:16 +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 E853F31; Fri, 25 May 2018 08:10:14 +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 97B8E2435; Fri, 25 May 2018 08:10:14 +0000 (GMT) Received: from gnb.st.com (10.75.127.51) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 25 May 2018 10:10:13 +0200 From: Christophe Lyon To: , Subject: [ARM/FDPIC 18/21] [ARM][testsuite] FDPIC: Skip tests that don't work in PIC mode Date: Fri, 25 May 2018 10:03:31 +0200 Message-ID: <20180525080354.13295-19-christophe.lyon@st.com> In-Reply-To: <20180525080354.13295-1-christophe.lyon@st.com> References: <20180525080354.13295-1-christophe.lyon@st.com> MIME-Version: 1.0 X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG5NODE1.st.com (10.75.127.13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-25_03:, , signatures=0 X-IsSubscribed: yes 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