From patchwork Fri Nov 10 08:43:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 118514 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp7650669qgn; Fri, 10 Nov 2017 00:43:42 -0800 (PST) X-Google-Smtp-Source: ABhQp+TKf89DA6bJzAFxGMKQSpzA9xodQkJ8w25e8d3tGfOd2FpeO/f0mo7NsOlNNQ68PryL43l2 X-Received: by 10.99.108.2 with SMTP id h2mr3399946pgc.362.1510303421977; Fri, 10 Nov 2017 00:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510303421; cv=none; d=google.com; s=arc-20160816; b=HeY+UmGaOLYcAxnUw66V/OY8GeS4H1oQcQhjky86U/kYQ7XdNg9jA14Ht+7j9Hsk0I zvFLzEUHpzwbbZzAn5BkDDqHwRG0uMXZjdetB8IEWIx5tiJ8KTC50K42bY37M+tx7MKZ 4PRgpuXp+0tU74CTYxAPgcG4sJ4JcvJgLkKvFP7CuYU87pYDl2L6udPiQvbSuh1EUs9h fCEZG+m0yGfXUD0JwTzZqRoLIDvnPtHM/IrNIEp/3J/hW0hHM7An6vWnsdoRDnorRe6q SR0dUr2qsZFiq/QLAklJfIu2xeFUXpGWezl+0YVsilcx7PFI9lR8ZC6pSsvjVLTXCHaS 2img== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=aUHzLHwoWPVPmBBk4xCo9wqkhLlI4xcPbNqQqJM8MF8=; b=YawNNBaSiUj3rqX+x23Q0plD+WqljuX1ivbO0dxGUgxYnAx5HyXU+QGC/iqBAJnhni WxkIBxVanPb56oRLnUXlg1eu5hFHEkUTcWGE9Yku0Ieddl1jjPdAYn/pQ9z3AqKIzPkG tzAArFcwlDbRgZP06ceP8+qi0FNrU4NXkrx2XYSwPem2JJ8UbIZhaJNqaaPTNPwam03N qdLTh/BD+XVo4yOOUbHKxuoENAMSHgQwrzEAyr1nxu7etISa0KXyJKMM2eyKTVYAyE8E 5RfI29ftjZT/JUfVTZJXU4Q545Mb4pqUMw/+xcKPjswqTU5PpG3ttSlRikxKDdtBycOV ImbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=VnqVDsp5; spf=pass (google.com: domain of gcc-patches-return-466489-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-466489-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id v124si8197474pgv.557.2017.11.10.00.43.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 00:43:41 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-466489-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=VnqVDsp5; spf=pass (google.com: domain of gcc-patches-return-466489-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-466489-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=kR3X8M5i6+jf6mIYsZU+n88wGsr2fdiXgO/aE70UWVMMEW wjzbVfcK8fFPpnwmEE0IvAZVBh0wHxCuTPdt1wk34fhkK98JbE/1sYUpqW1RX5fM rtV47Sl2FLKNThKIrupw11uno2YAHJ7/lkIQWbqU+PXrUB+1NFrt/yHWd+mZo= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=PRmegm5CldyQPxTMwGtNWq0duvw=; b=VnqVDsp5hTNYTIgWdxWm 3mv4w1cTB8N0MwC7KHfIGpo2lHKafdDcB+89bUjb8OaCUcjJdEnllsbwNZrgNouE T3D1V40kt8Q0x1C6YMNfqqProSL/5FqRi1HhjgnJBnYsJWEtiU15q512u/aeRvRS xAx/LYNwSHuzOHe94D5R8xw= Received: (qmail 119907 invoked by alias); 10 Nov 2017 08:43:29 -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 119898 invoked by uid 89); 10 Nov 2017 08:43:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:Fri X-HELO: mail-vk0-f51.google.com Received: from mail-vk0-f51.google.com (HELO mail-vk0-f51.google.com) (209.85.213.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Nov 2017 08:43:27 +0000 Received: by mail-vk0-f51.google.com with SMTP id x65so5669154vkx.1 for ; Fri, 10 Nov 2017 00:43:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bd0g1T3ktWMLLA7+S7C7lkFXM+iigTM1/sB+VoYmE68=; b=GwEYZQLglp4fXWnE2LA+/hHKCEils+vPt/05K8ksrPrIy0QrWeWGTyh+aDYIUTDZyK +gDG95Sh6gmQuSuYByV1EwKargHyPzvbNPgd20M/TjP80pgl3eMeccpnkErRGGgSLedZ DbyCX+mzmuTR3CSLYJQ7heBfehwHqYq2MfsUjG8axZwVrH9MqoUsy7oZ5F2nMQZh0ytW MI914g+UOJjTyHDP94UFGHbPxoIXd6EApXqn0ce/LF+kzNgvQTd75cdYErfXk3B7EkPB GDeqXP75YWV0jE6sdrLq+m8Q+v1L+qx0m4SnuO1FzQE41u0zhBi8VodHfUgE/6h47gD9 BbSQ== X-Gm-Message-State: AJaThX5lv7ryD8sqdK+1RnaHCaZNlk2MNZcLV+I9amJFC6n38569v0aE M1n+g3Mv6VmiolD7F9UV+yCUh6aTzskwlGTZTHlnK+86gTs= X-Received: by 10.31.194.11 with SMTP id s11mr2576152vkf.157.1510303404619; Fri, 10 Nov 2017 00:43:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.94.66 with HTTP; Fri, 10 Nov 2017 00:43:23 -0800 (PST) From: Christophe Lyon Date: Fri, 10 Nov 2017 09:43:23 +0100 Message-ID: Subject: [PATCH][ARM, testsuite] Skip copysign_softfloat_1.c on hard-float targets To: "gcc-patches@gcc.gnu.org" X-IsSubscribed: yes Hi, The attached testsuite patch makes gcc.target/arm/copysign_softfloat_1.c UNSUPPORTED on arm-none-linux-gnueabihf, rather than FAIL/UNRESOLVED because of a link failure since the toolchain startup code is in hard-float ABI while the testcase is compiled with -mfloat-abi=soft. Tested on arm* configurations, with no impact on arm*eabi and FAIL->UNSUPPORTED on arm*hf targets. OK? Thanks, Christophe gcc/testsuite/ChangeLog: 2017-11-10 Christophe Lyon * lib/target-supports.exp (check_effective_target_arm_soft_ok): New function. * gcc.target/arm/copysign_softfloat_1.c: Require arm_soft_ok effective target. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index d7ef04f..6917a4d 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3413,6 +3413,19 @@ proc check_effective_target_arm_vect_no_misalign { } { } +# Return 1 if this is an ARM target supporting -mfloat-abi=soft. Some +# multilibs may be incompatible with this option. + +proc check_effective_target_arm_soft_ok { } { + if { [check_effective_target_arm32] } { + return [check_no_compiler_messages arm_soft_ok executable { + int main() { return 0;} + } "-mfloat-abi=soft"] + } else { + return 0 + } +} + # Return 1 if this is an ARM target supporting -mfpu=vfp # -mfloat-abi=softfp. Some multilibs may be incompatible with these # options. diff --git a/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c b/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c index 1260a6f..d79d014 100644 --- a/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c +++ b/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target arm_thumb2_ok } */ +/* { dg-require-effective-target arm_soft_ok } */ /* { dg-skip-if "skip override" { *-*-* } { "-mfloat-abi=softfp" "-mfloat-abi=hard" } { "" } } */ /* { dg-options "-O2 -mfloat-abi=soft --save-temps" } */ extern void abort (void);