From patchwork Fri Nov 16 15:47:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 151364 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp590585ljp; Fri, 16 Nov 2018 07:53:52 -0800 (PST) X-Google-Smtp-Source: AJdET5fBjFi9KnoMkqryBJHzhaVfNVwmxVzBPxIrbVbtSWZhMyN7wTpZWv7r31bcS/1BvnmRnBse X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr11380864plb.314.1542383632765; Fri, 16 Nov 2018 07:53:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542383632; cv=none; d=google.com; s=arc-20160816; b=NeRIEJZz/IQywDInSOcRn7qVwZJCDVQdHbgOgSgKPuJAc0OgbWCMsrL+XXlB3iwqMd 235m2Ddf/RX0/mD+yfBrc5lEUGdMdP4Wof8b5dZJh43Gpw8/0eZtssKdHj5Itv1sB/Dv HZLNCfP5uCZIR/HLGFzNTP2WXWOYVlAbdijeaDqYo1m6BAjudPktoWBe3CAEAqNXEQ5k S11GPQ932uEHUrLASOH6Huz9RXJDU47hwgHWWgWPsE7a7gob5Of1jV0VEvE4uIlsW3Un eZ4kltnhWQ2SQVNcCS+wTEkyNqZJEK+u062cckXEh3qBgQYu1lZL7YZYtxhUHNx3kE/k Za+Q== 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; bh=sNOThwMyfazvN16cNXz1UAv0yECorcIRkHNVigkZnhg=; b=jhAvPsYSRCBpcnaWPMnp2Q1nq5zT4f2GSG3freRXTJMOw9mh47ybtP1RedwTsrz/pC icdXoHSDw8r52t3iWcYWl6Fczgg2mqnQZPMDA19Wugundq62uOpwbONqxu5PPlitBf6i Oltp+1jGdDw1rV/L/SC1VYL356R/K9BE8eBL9CMIUCMOs9MFQm51SQS8LzPU1VV1djbR F6PV+0/FMyk63FhKtqKZzndQTNUtXP/hnoDqBje1eaXFuCY9YpQquPwj9AF0gjgUHR41 6V6sZlMRKQ2q0XZrV4EEPRHCH+KvLJYgatxg03WBwdmsdFSomMjVaUlUPlXKReGVqX0S mOnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=uZx1pot5; spf=pass (google.com: domain of gcc-patches-return-490279-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-490279-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 j38-v6si30013962pgl.138.2018.11.16.07.53.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 07:53:52 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-490279-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=uZx1pot5; spf=pass (google.com: domain of gcc-patches-return-490279-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-490279-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=gGo/n0K0S2LFF0YZ 408VOJn2H1PPpdcK89nhiOLZihxujLkj1i7LVKyO2wMWw59cHPQ75fyzd2tefXYn i5JpkHJDWSJPESamSQoHBCqzspjHsDKChqoOCJ+aVJgTmKtY+0PHQZasrcnTo/Zo ebCsHEIkBMZ1C3dq1BY0li6ItXc= 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=2WQuaKp5EK5CXw+/wvj5/J QeMcQ=; b=uZx1pot5E7PVCbZNAp+3M7Zwog6tboafhaCoOR2mpzy5/5YcCYwpg3 VNKyysqAxm+wL2cOt7nLUkivRXYb5q8vQuyihWKMxKnzWw6oI8Sh0/Yucl6q1i4B Q40xzXMCdK/UDWnzOWNjl92/1UGZs4b2y8fukHIqpfGtwd5ZEcHXk= Received: (qmail 26638 invoked by alias); 16 Nov 2018 15:53:41 -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 26622 invoked by uid 89); 16 Nov 2018 15:53:40 -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=Accept 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, 16 Nov 2018 15:53:39 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id wAGFiNcZ030536; Fri, 16 Nov 2018 16:53:37 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2nsxqxrpu3-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 16 Nov 2018 16:53:37 +0100 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 20F183A; Fri, 16 Nov 2018 15:53:37 +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 0BF995005; Fri, 16 Nov 2018 15:53:37 +0000 (GMT) Received: from gnb.st.com (10.75.127.45) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 16 Nov 2018 16:53:36 +0100 From: Christophe Lyon To: CC: Subject: [ARM/FDPIC v4 16/20] [ARM][testsuite] FDPIC: Skip tests that don't work in PIC mode Date: Fri, 16 Nov 2018 16:47:44 +0100 Message-ID: <20181116154808.25154-17-christophe.lyon@st.com> In-Reply-To: <20181116154808.25154-1-christophe.lyon@st.com> References: <20181116154808.25154-1-christophe.lyon@st.com> MIME-Version: 1.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