[arm] Don't pass -mfpu=auto through to the assembler.
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 16 Jun 2017 21:01:51 +0000 (21:01 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 16 Jun 2017 21:01:51 +0000 (21:01 +0000)
The assembler doesn't understand -mfpu=auto.  The easiest way to handle this
is to surpress this value from being passed through, while still passing
through legacy values.

* config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
assembler when it is not -mfpu=auto.

From-SVN: r249281

gcc/ChangeLog
gcc/config/arm/elf.h

index 1542ae3467df89fe9c3af3a6f996972e5fb23b3f..5ea21b74716f02164263d31accab8927128588a9 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
+
+       * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
+       assembler when it is not -mfpu=auto.
+
 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
 
        * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
index f119b87116ff62c0c7608e61fd4ef5ade87dc49a..fcc4f3f81a911854ccedaf6e181ea3338171afe4 100644 (file)
@@ -64,7 +64,7 @@
 %{mapcs-*:-mapcs-%*} \
 %(subtarget_asm_float_spec) \
 %{mthumb-interwork:-mthumb-interwork} \
-%{mfloat-abi=*} %{mfpu=*} \
+%{mfloat-abi=*} %{!mfpu=auto: %{mfpu=*}} \
 %(subtarget_extra_asm_spec)"
 #endif