From 265eb9433dd53409a83a9dc56e1e86f52d8100b1 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Thu, 17 Oct 2019 13:55:11 +0000 Subject: [arm] Add default FPU for Marvell-pj4 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277111 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/arm-cpus.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7eb331d60f5..97cb06447b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-10-17 Richard Earnshaw + + * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture. + 2019-10-17 Yuliang Wang * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3) 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 -- cgit v1.2.3