Prechádzať zdrojové kódy

declare fpu usage to the assembler in arm hard-float asm files

Some armhf gcc toolchains (built with --with-float=hard but without
--with-fpu=vfp*) do not pass -mfpu=vfp to the assembler and then
binutils rejects the UAL mnemonics for VFP unless there is an .fpu vfp
directive in the asm source.
Szabolcs Nagy 9 rokov pred
rodič
commit
7557a8462e

+ 2 - 0
src/fenv/armhf/fenv.s

@@ -1,3 +1,5 @@
+.fpu vfp
+
 .global fegetround
 .type fegetround,%function
 fegetround:

+ 1 - 0
src/math/armhf/fabs.s

@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global fabs
 .type   fabs,%function

+ 1 - 0
src/math/armhf/fabsf.s

@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global fabsf
 .type   fabsf,%function

+ 1 - 0
src/math/armhf/sqrt.s

@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global sqrt
 .type   sqrt,%function

+ 1 - 0
src/math/armhf/sqrtf.s

@@ -1,3 +1,4 @@
+.fpu vfp
 .text
 .global sqrtf
 .type   sqrtf,%function