[arm] Explicitly set .fpu in cmse_nonsecure_call.S
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 16 Jun 2017 21:04:52 +0000 (21:04 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Fri, 16 Jun 2017 21:04:52 +0000 (21:04 +0000)
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.

From-SVN: r249297

libgcc/ChangeLog
libgcc/config/arm/cmse_nonsecure_call.S

index 9a97dba918fdea82b39de5a4ed21c3e6beb2c4db..63b973c58e660ad308013ad13db4f5f574d065b9 100644 (file)
@@ -1,3 +1,7 @@
+2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
+
+       * config/arm/cmse_nonsecure_call.S: Explicitly set the FPU.
+
 2017-06-09  Martin Liska  <mliska@suse.cz>
 
        * libgcov-profiler.c (__gcov_indirect_call_profiler_v2):
index 653ad1492912bbb7a518c8a32eb1329a9c571c35..9b7dbb4f5746f09a5b8f285e4a07da5bf5168932 100644 (file)
    <http://www.gnu.org/licenses/>.  */
 
 .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: