From patchwork Fri Oct 14 08:25:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Andre Vieira (lists)" X-Patchwork-Id: 682160 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 3swLJY2xvpz9t0v for ; Fri, 14 Oct 2016 19:25:31 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=GPwAu6ql; 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:message-id:date:mime-version:content-type; q=dns; s=default; b=oicoVvYEccDgKtugckK95SuW4skpL2s71q8Eoe7bzfFVqQ/8m+ mlhuH4xe7NacBpCcxjbcDuH6yTRTmdgcU5N5ZYvb48TxYpYpRfXWjz+3moYwQECh IVBQa1vtlAgcq0gwD3fsfaOSSh6E3ZdAyTRQb4VXyhjF74PROdp77OKdQ= 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=rBTbMItlcv1sVsuzc5eykUVJLh0=; b=GPwAu6ql8Thx80BqRWui RfMzYEmQLZSMluTVhLC9TeFoBIHKZXCtHr1WumRamvgHQuc30nb07YWojOlB5tfl uh57IrnQxq5EzBooyeQ/For7VYOg1ryRusOfTITxKT8slOQkr8youil7PJpSgGko xXCTOITElNV55Fhkbb6n88c= Received: (qmail 101938 invoked by alias); 14 Oct 2016 08:25:17 -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 101800 invoked by uid 89); 14 Oct 2016 08:25:16 -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, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=andresimoesdiasvieiraarmcom, andre.simoesdiasvieira@arm.com, sk:check_e, default_cflags 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; Fri, 14 Oct 2016 08:25:05 +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 0D6332B; Fri, 14 Oct 2016 01:25:04 -0700 (PDT) Received: from [10.2.206.234] (e107157-lin.cambridge.arm.com [10.2.206.234]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B34843F477 for ; Fri, 14 Oct 2016 01:25:03 -0700 (PDT) To: GCC Patches From: "Andre Vieira (lists)" Subject: [PATCH][ARM] Fix testism with pure-code tests for non Cortex-M targets Message-ID: <5800965D.6090302@arm.com> Date: Fri, 14 Oct 2016 09:25:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 X-IsSubscribed: yes Hi there, This patch makes sure the pure-code tests only run for Cortex-M targets. I was hoping '![check_effective_target_arm_arm_ok]' would do the trick but it seems the options passed with RUNTESTFLAGS take precedence over the one in the check. Anyhow, I now use 'check_effective_target_cortex_m'. Is this OK for trunk? Ran these tests for a ARMv7-A. Cheers, Andre gcc/testsuite/ChangeLog: 2016-10-14 Andre Vieira * gcc.target/arm/pure-code/pure-code.exp: Adjust targets to test for. From a5f9063dd8e3c6405c40a7e99d0bf322dc6d58a9 Mon Sep 17 00:00:00 2001 From: Andre Simoes Dias Vieira Date: Mon, 10 Oct 2016 15:32:44 +0100 Subject: [PATCH] Fix testism for non Cortex-M targets --- gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp b/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp index 1abe7782c0e5dbb6e2deef25f4bea9415664f942..aaace952aaa09d6bcfb684909adc325c50d9be0e 100644 --- a/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp +++ b/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp @@ -28,7 +28,7 @@ if ![info exists DEFAULT_CFLAGS] then { # The -mpure-code option is only available for M-profile targets that support # thumb2. if {[check_effective_target_arm_thumb2_ok] - && ![check_effective_target_arm_arm_ok]} then { + && [check_effective_target_arm_cortex_m]} then { # Initialize `dg'. dg-init -- 1.9.1