]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
arm: adjust FPU selection logic
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 4 Jun 2024 11:56:21 +0000 (12:56 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Wed, 5 Jun 2024 16:45:45 +0000 (17:45 +0100)
commitbe9943151aba8d283b81bdc95a8b2ffa5b1d0f1a
tree527dd4daabd005f1eb5af88068cfc155a1445357
parentd3a79e28334f691d651aefbbef9eaaa952b67178
arm: adjust FPU selection logic

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