From patchwork Sat Aug 30 00:04:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 384420 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 7636E14012B for ; Sat, 30 Aug 2014 10:04:50 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=HA09xZr9UH5sAFvWuR1MMA5ibz5nxtC7xYaZ8aGsLQ3cXityRK6tn xSjQj7vK69eaaqjlUSeBRBV/PKVx9hCwRZ40hOkV0CKxdo/HJQLwFXXOjhjkSjpd VHL6NzDvs8uCl1bSo1O9ZoWtXgXJDMcD67Msk1Z2SUcUiFOpNq0uX8= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=YXNCAtLUentDvadBUvPsxhidGgo=; b=Cwl59vCgEq8pHHT7vrNs 1xx5KAdZwNvj6AAwiYWgUtkq9cnUf8QdJiZTboiDygRs2+RHW8DrkI0RYfc6j9qH gDp1GN7jB43vgFe8uEa5OzYCcmkQsP3YpcJ0gSMlqKA3ipImcnGm2fBjJy7eslTV gqenauig+Twb9WUYYCoCrew= Received: (qmail 26774 invoked by alias); 30 Aug 2014 00:04:43 -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 26763 invoked by uid 89); 30 Aug 2014 00:04:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 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; Sat, 30 Aug 2014 00:04:41 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XNW9l-00067h-Nz from Maciej_Rozycki@mentor.com for gcc-patches@gcc.gnu.org; Fri, 29 Aug 2014 17:04:37 -0700 Received: from localhost (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server (TLS) id 14.2.247.3; Sat, 30 Aug 2014 01:04:36 +0100 Date: Sat, 30 Aug 2014 01:04:32 +0100 From: "Maciej W. Rozycki" To: Subject: [PATCH] GCC/test: Don't try ARM cortex-M check on non-ARM Message-ID: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Hi, This change fixes ugly confusing error messages like: Executing on host: powerpc-linux-gnu-gcc arm_cortex_m25641.c -fno-diagnostics-show-caret -fdiagnostics-color=never -mthumb -S -o arm_cortex_m25641.s (timeout = 300) powerpc-linux-gnu-gcc: error: unrecognized command line option '-mthumb' compiler exited with status 1 output is: powerpc-linux-gnu-gcc: error: unrecognized command line option '-mthumb' FAIL: gcc.dg/binop-xor1.c scan-tree-dump-times optimized "\\^" 1 (check_effective_target_logical_op_short_circuit has been since updated to include powerpc*-*-* so the error won't trigger anymore, however it still falls through to check_effective_target_arm_cortex_m if none from its target list matched, so there *will* be another non-ARM target still triggering this). OK to apply? 2014-08-30 Maciej W. Rozycki gcc/testsuite/ * lib/target-supports.exp (check_effective_target_arm_cortex_m): Return right away if !arm*-*-*. Maciej gcc-test-target-arm-cortex-m.diff Index: gcc-fsf-trunk-quilt/gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc-fsf-trunk-quilt.orig/gcc/testsuite/lib/target-supports.exp 2014-08-26 20:34:31.378258198 +0100 +++ gcc-fsf-trunk-quilt/gcc/testsuite/lib/target-supports.exp 2014-08-30 00:23:59.697532006 +0100 @@ -2818,6 +2818,9 @@ proc check_effective_target_arm_cond_exe # Return 1 if this is an ARM cortex-M profile cpu proc check_effective_target_arm_cortex_m { } { + if { ![istarget arm*-*-*] } { + return 0 + } return [check_no_compiler_messages arm_cortex_m assembly { #if !defined(__ARM_ARCH_7M__) \ && !defined (__ARM_ARCH_7EM__) \