[PATCH 04/11] arm: adjust FPU selection logic

Richard Earnshaw rearnsha@arm.com
Mon Jun 3 11:49:05 GMT 2024


The logic here seems to be overly complex, so simplify it a bit.  One
particular problem was that using the legacy -mno-fpu option was not
working properly, as this has all the feature bits set to zero causing
the code to then pick a different FPU as the default.  Fix this by
only selecting an FPU as a fallback if the code has not otherwise
selected one: there was only one route by which this could happen.

This patch is really a pre-cursor to the following one where we want
to make no-fpu internally a fall-back position for some legacy
processors where previously we would have dropped back to the FPA.
---
 gas/config/tc-arm.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-arm-adjust-FPU-selection-logic.patch
Type: text/x-patch
Size: 1135 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20240603/35208477/attachment.bin>


More information about the Binutils mailing list