From patchwork Fri Jun 9 12:53:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 103483 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp194353qgd; Fri, 9 Jun 2017 05:56:59 -0700 (PDT) X-Received: by 10.99.139.194 with SMTP id j185mr43572274pge.126.1497013019618; Fri, 09 Jun 2017 05:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497013019; cv=none; d=google.com; s=arc-20160816; b=b8zWLuLApc5rdqtIHIP+ju/IGrFjOYnvWEgn7j/2XXfZWcpxVSp65b3LOwO/6OCHI4 QpKd8zHH2+xN2k8+wyIDtpi6IdcW25TvgcPxsmVIcJRftMGdYc5sEUt4z/HURuYAQZzX caBjFgLKtZS2nKnyVvTpSHc/bkB98s5hgpGM1Qh2elg6JycmLtRBNBI1WL96m1h09FH0 YjhG4vYAG1GVQNvkB0qBCuigVrn5c0MfdRukK43rvBnbYwjZj8YzbJzn+tmeWrE2N0UP pFuDv5Jl2zCqQMCOtK/8+qMxgr86Z9LvcF6WZLOYX0cLJKu2Ns1Tnw4xvUcIZNKuJ5wD o5tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=We4cjHbvYRSP+tk0Pt2U87/+afevIWZT0/fTEE/rhBw=; b=ihC+bOzKKlu5uQuRXNUH/OwArOGffoZJx4hNPI1JZd6UjSMh4DbZZmzAevzMdaAvqJ Wwf8l9ps5uE+eHY60kjL6spcF0Rzn0WHGAJVWCDzJ8zkP3XKb5/h1FvPgNRavOgCH1d8 +8jIkiqLyl+ocbDxSTZPKgmHjfpOLjXTsuVz6GOoplAFOJNUj39FnBKh2GqpWuUvxdUt nlj7sgCGKF9TsTaMGF8rbcspD4D311JV+97DTf4+DDWwmHaA51lEaltyraedDpbnqrNu sW/V4jtCjgOkyzS3PNwmb2j6YS5xWFdWT8VqfjT7LeFkQ+glVKhh3Wi0wMdfb6sI8xin NTcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-455527-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-455527-patch=linaro.org@gcc.gnu.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id a124si7205977pgc.127.2017.06.09.05.56.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 05:56:59 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-455527-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-455527-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-455527-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:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-type; q=dns; s= default; b=QYdAo76KLhdqRCIxovg0zpWnh/G9DH6A0Q0QNMuSJAusGafsuan0U 1Wwz6n9vduJH+4dp8o+UewTDPiuPGWL/lptcyeowDSur0f1hMde0NQYuZ3uaXiS7 0KWGBLo27ROpjLTVCpEvxN8Y5Pr6Oe/hKl2cOw3vjOOywHEHYgmyk4= 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:from :to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-type; s=default; bh=ZpXBcXgZS1QYnmGzZJ3hR+W6qM4=; b=cOuIG3/Vbqm6XVrs8IkdOwnL10iV ovJ3bkARte1bWdJhjdxmlJoJrAmFz2gJG5EqrfOeOX3rwC+z7JDpk5wuUkukTC+4 g2aIJ6geIJc8DnvToCPSWZHSD1JvrH8pvYUxQ11VS2pjjfrOy6g+aiwlIl4jwq9A Aa+sY5cWo/1k6KM= Received: (qmail 81661 invoked by alias); 9 Jun 2017 12:54:25 -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 81060 invoked by uid 89); 9 Jun 2017 12:54:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= 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, 09 Jun 2017 12:54:19 +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 B1F451610; Fri, 9 Jun 2017 05:54:22 -0700 (PDT) Received: from e105689-lin.cambridge.arm.com (e105689-lin.cambridge.arm.com [10.2.207.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3F16E3F3E1; Fri, 9 Jun 2017 05:54:22 -0700 (PDT) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [PATCH 19/30] [arm] Explicitly set .fpu in cmse_nonsecure_call.S Date: Fri, 9 Jun 2017 13:53:48 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 This file is missing a .fpu directive and was relying on the compiler driver passing through a -mfpu= command line option. When the FPU is auto, that will not be passed through correctly, so set something suitable within the file itself. libgcc: * config/arm/cmse_nonsecure_call.S: Explicitly set the FPU. --- libgcc/config/arm/cmse_nonsecure_call.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libgcc/config/arm/cmse_nonsecure_call.S b/libgcc/config/arm/cmse_nonsecure_call.S index 653ad14..9b7dbb4 100644 --- a/libgcc/config/arm/cmse_nonsecure_call.S +++ b/libgcc/config/arm/cmse_nonsecure_call.S @@ -24,6 +24,14 @@ . */ .syntax unified +#ifdef __ARM_PCS_VFP +# if __ARM_FP & 0x8 + .fpu fpv5-d16 +# else + .fpu fpv4-sp-d16 +# endif +#endif + .thumb .global __gnu_cmse_nonsecure_call __gnu_cmse_nonsecure_call: