From patchwork Thu Oct 17 13:56:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 176640 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp963788ill; Thu, 17 Oct 2019 06:56:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUA7mRI0OR7tLDVN5KcyV+QLGiNJI2fArgWgApZawft3osCZz4tFbSemffMdzFXLTQO/F5 X-Received: by 2002:a17:906:3049:: with SMTP id d9mr3559418ejd.288.1571320613341; Thu, 17 Oct 2019 06:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571320613; cv=none; d=google.com; s=arc-20160816; b=L5Yq+xDd7B0wS5lzKe3psIvVxVQv1qX53QomHbPPVbmRof8QEdf1UY0YfJqxnfkIdl KA5fPXxcioAqtLVYc2g2/+4HBprKEIz9Yi/zr5/bkc2KbTbCH17F+NXw/s7Nm5w+1EQ+ 7X97vwyj8xohBbyLstqOmiog9Epy4NlE2HdhrHC4cxuU+pR+nL7ffSV6Dre3DKZnmQJu pCighTDfxB62BYProfmO1jV68CHvOFKrgWcLaQQyrUsDq1JaAjTTK4WxBr2HULDuRygZ dpvAVgDnWPWjDbLk+lQdWQCSNSaRlM68ikPGxQI0tDJBTQLy5y7otMvvwrWyIunnmYx9 rj3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:date:message-id:subject:from:to :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=5pJxufvY/xYdYMczjIsrJTLj9j+33Gyt8NAj3qmBQuo=; b=hbh2ffYAxe8pPlBqtLvSwVZNghctZR3p8sgP+1H+ZEy8k5njsVn+3UKtvETVaQ+ALJ 7p4OhERbZQGk+EPjM/GawU0EC3xPkDOjs80xzVuDQ6cNXVoSJhVzT0BkOEsRtFSnJkxm hMNFT23vs+/vUikQ73alummNA7VVOBNwlh9SWMoQa5HrT8hXn8T2WX2GjZao0n6lg1BY 3U1QqScCSzlVE1eBxKSwz5kplaU0exr71Voq1853V70Y2H5oSTQMk0BFDDJrbuoVG365 COhZeeVG+LZW44YI/MQg6A38gxzWXdx+MUZwjexI03c8ZJytJkrKtIkJ5OACnRkFNxaA 06Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=W7SUL3Fe; spf=pass (google.com: domain of gcc-patches-return-511221-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-511221-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 o32si1683852edb.63.2019.10.17.06.56.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 06:56:53 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-511221-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=W7SUL3Fe; spf=pass (google.com: domain of gcc-patches-return-511221-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-511221-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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=jUxPTJAqmo6LbHlHlRXyd9vVz+zf9hCaFMAuNErlcK+NNkzUYp pnb1P5kZHherqPkCzFFQ3MOICD+zq6CvhvCOaP8evn0H+jXM7JFuU4gbsbwnrowg ooDWjBklrxYhODoYj95yH84nZyGu5nm9FjdM/0U3U74ywv4MPviBOdVVA= 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=njQvRkNyXI0mDWs4fERMq/9pHvI=; b=W7SUL3FeUxylnxO9HoxE 9KqNhdnEnb+A1IK3EKn6B6KTZCGPzsmEve2uBkRlv8v6MwY5RdLZHd8UnGccWWO7 iBjkyJCM+m6hf/B34vDEfTtPHBvMk015/EdNe8gcKNDe71p8WWNuL6YpiViUx7k+ sggCu+bSPEhpl6Ocme+iAVQ= Received: (qmail 87100 invoked by alias); 17 Oct 2019 13:56:40 -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 87016 invoked by uid 89); 17 Oct 2019 13:56:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_PASS autolearn=ham version=3.3.1 spammy=device X-HELO: foss.arm.com Received: from Unknown (HELO foss.arm.com) (217.140.110.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Oct 2019 13:56:39 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EB72F1993; Thu, 17 Oct 2019 06:56:31 -0700 (PDT) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.206.225]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 95F283F6C4; Thu, 17 Oct 2019 06:56:31 -0700 (PDT) To: "gcc-patches@gcc.gnu.org" From: "Richard Earnshaw (lists)" Subject: [arm] Add default FPU for Marvell-pj4 Message-ID: <77d6452d-80cc-b2e0-92ab-a10ca6eae029@arm.com> Date: Thu, 17 Oct 2019 14:56:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 According to GAS, the Marvell PJ4 CPU has a VFPv3-D16 floating point unit, but GCC's CPU configuration tables omits this, meaning that -mfpu=auto will not correctly select the FPU. This patch fixes this by adding the +fp option to the architecture specification for this device. * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture. Committed to trunk. diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in index f8a3b3db67a..50379a0a10a 100644 --- a/gcc/config/arm/arm-cpus.in +++ b/gcc/config/arm/arm-cpus.in @@ -1150,7 +1150,7 @@ end cpu cortex-m3 begin cpu marvell-pj4 tune flags LDSCHED - architecture armv7-a+mp+sec + architecture armv7-a+mp+sec+fp costs marvell_pj4 end cpu marvell-pj4