Skip to content

Commit dddeab7

Browse files
committed
ARMC6: Use float-abi=hard
For binary compatibility with ARMC5, use the hard ABI variant whenever we have FP hardware - this is ARMC5's default behaviour, which we do not override. Cortex-M4F was already using hard; this brings M7F and M33F into line.
1 parent 27e1bc3 commit dddeab7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/toolchains/arm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,15 +415,15 @@ def __init__(self, target, *args, **kwargs):
415415
self.flags['common'].append("-mfloat-abi=hard")
416416
elif target.core == "Cortex-M7F":
417417
self.flags['common'].append("-mfpu=fpv5-sp-d16")
418-
self.flags['common'].append("-mfloat-abi=softfp")
418+
self.flags['common'].append("-mfloat-abi=hard")
419419
elif target.core == "Cortex-M7FD":
420420
self.flags['common'].append("-mfpu=fpv5-d16")
421-
self.flags['common'].append("-mfloat-abi=softfp")
421+
self.flags['common'].append("-mfloat-abi=hard")
422422
elif target.core.startswith("Cortex-M23"):
423423
self.flags['common'].append("-march=armv8-m.base")
424424
elif target.core.startswith("Cortex-M33F"):
425425
self.flags['common'].append("-mfpu=fpv5-sp-d16")
426-
self.flags['common'].append("-mfloat-abi=softfp")
426+
self.flags['common'].append("-mfloat-abi=hard")
427427

428428
if ((target.core.startswith("Cortex-M23") or
429429
target.core.startswith("Cortex-M33")) and

0 commit comments

Comments
 (0)