From patchwork Thu Jan 12 22:48:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 91241 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2117528obz; Thu, 12 Jan 2017 14:49:25 -0800 (PST) X-Received: by 10.84.179.67 with SMTP id a61mr24517739plc.98.1484261365565; Thu, 12 Jan 2017 14:49:25 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id z74si7838472pff.228.2017.01.12.14.49.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 14:49:25 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-446018-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; spf=pass (google.com: domain of gcc-patches-return-446018-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-446018-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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=kF4t10HOakOWS2bQZoBUH0SWnvdvA6tMEtQsziAvpYcStSLsF0 0Hzeqj4j8noxKgagj/KWF9b6X0MmDvM7REqLMuefJl0xcGPelMprOoncOFxpk7mJ PG5aQig5o3VgByoMSTo60LNIn5nwamcynDtq45OVHoPWRg8RHDbkxm6Kk= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=1MmLBXXM6EG3JjdT7decgMqbWqU=; b=FuyWCd0VVWkdnO0NgA2V 1sycDVKOlhzaDVttEdi1rtBe5khO/JGv7KiwszX813eUplmzmub+i5bhTzB03Z0H nPnYToYvfhY8F3FJc9zKltS54KKx4Y0kkl85pO5qeuob9sdgivTpZ4/eSGSsHNHU KEr00lmYbQa1X2bv1UGU1R0= Received: (qmail 11327 invoked by alias); 12 Jan 2017 22:49:10 -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 11304 invoked by uid 89); 12 Jan 2017 22:49:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jan 2017 22:48:59 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtp id 1cRoAz-00068e-V8 from Sandra_Loosemore@mentor.com for gcc-patches@gcc.gnu.org; Thu, 12 Jan 2017 14:48:58 -0800 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 12 Jan 2017 14:48:54 -0800 To: "gcc-patches@gcc.gnu.org" From: Sandra Loosemore Subject: [testsuite, committed] gcc.dg/pr77862.c requires fpic target Message-ID: <587807D5.8010902@codesourcery.com> Date: Thu, 12 Jan 2017 15:48:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) gcc.dg/pr77862.c was failing on targets that don't support -fPIC, specifically nios2-elf. I've fixed this with a dg-require-effective-target restriction, consistent with what similar testcases do (e.g., gcc.dg/pic-2.c). Committed as obvious. -Sandra Index: gcc/testsuite/gcc.dg/pr77862.c =================================================================== --- gcc/testsuite/gcc.dg/pr77862.c (revision 244386) +++ gcc/testsuite/gcc.dg/pr77862.c (working copy) @@ -1,6 +1,7 @@ /* PR tree-optimization/77862 */ /* { dg-do compile } */ +/* { dg-require-effective-target fpic } */ /* { dg-options "-O2 -fPIC -w" } */ struct paramed_type