From patchwork Thu Oct 27 10:25:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renlin Li X-Patchwork-Id: 687529 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 3t4NMk4hTFz9sfH for ; Thu, 27 Oct 2016 21:26:10 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=PxDKWJ82; dkim-atps=neutral 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:cc:message-id:date:mime-version:content-type; q= dns; s=default; b=f9IhDZR1vHTKixcCB8fWxdH6KWlj5WZHYTXkctJpygmBZD p4zgSBK+RtfIeJiUJTgrqnc6a3XDuwkPO7FiyfiZPTeIFbWab/r2+7xipbPa4oga izef/lmN156OtLyND74fiLPKlP7uxygG5CndaBPWAALLUG9vP79v2zJ8TTXbg= 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:cc:message-id:date:mime-version:content-type; s= default; bh=jMg4voonThmJxOJwg7x4OBuggac=; b=PxDKWJ82DEm0QUG1eSaA p8SD5vuLOls+b4QxSm3gcCtgn4P5sQ950nKrLrQchSXH2SRlsGoz5mw44VElAO+3 s/sA3YAMuXz1EsBx64HTy6nm6CLPtjMiGqHdMfe+i1m1PgbNT8H9O1YTx3oJ+Rnx sOP4HbyxeZRNw2YTL4p/s20= Received: (qmail 54695 invoked by alias); 27 Oct 2016 10:25:56 -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 54640 invoked by uid 89); 27 Oct 2016 10:25:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=applicable X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Oct 2016 10:25:45 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 766741529; Thu, 27 Oct 2016 03:25:44 -0700 (PDT) Received: from [10.2.207.43] (e104453-lin.cambridge.arm.com [10.2.207.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D86463F218; Thu, 27 Oct 2016 03:25:43 -0700 (PDT) To: "gcc-patches@gcc.gnu.org" From: Renlin Li Subject: [PATCH][AARCH64]Skip gcc.target/aarch64/pr66912.c in tiny or large memory model. Cc: James Greenhalgh , Szabolcs Nagy Message-ID: <5811D626.6030000@foss.arm.com> Date: Thu, 27 Oct 2016 11:25:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 X-IsSubscribed: yes Hi all, This a simple patch to fix gcc.target/aarch64/pr66912.c. It's a test case only applicable to small memory model which is the default one. It has been tested to run only when the memory model is small. Okay to commit? Regards, Renlin Li gcc/testsuite/ChangeLog: 2016-10-27 Renlin Li * gcc.target/aarch64/pr66912.c: Skip tiny and large memory model. commit 364538b449d62c9a411b31021bdd9f355d36edf1 Author: Renlin Li Date: Wed Jan 6 14:00:16 2016 +0000 fix pr66912.c diff --git a/gcc/testsuite/gcc.target/aarch64/pr66912.c b/gcc/testsuite/gcc.target/aarch64/pr66912.c index b8aabcd..be07641 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr66912.c +++ b/gcc/testsuite/gcc.target/aarch64/pr66912.c @@ -1,5 +1,7 @@ /* { dg-do compile { target *-*-linux* } } */ +/* { dg-require-effective-target aarch64_small_fpic } */ /* { dg-options "-O2 -fpic" } */ +/* { dg-skip-if "small memory model" { aarch64*-*-* } { "-mcmodel=tiny" "-mcmodel=large" } { "" } } */ __attribute__((visibility("protected"))) int n_common;