Skip to content

Commit e9ec67b

Browse files
keith-packardnashif
authored andcommitted
arm: Add missing multilib default values
The arm multilib configuration includes two more parameters which affect multilib selection, marm/mthumb and mfloat-abi. Without those, the default multilib selection is mis-specified and the only reason it works is because '.' is the fall-back path. Add "marm" and "mfloat-abi=soft" to MULTILIB_DEFAULTS to actually match when the compiler is run without any target parameters. This hasn't caused any problems in practice because there are no non-default multilib options which can be applied to the default -march target as it has neither an FPU nor any branch protection support. Specifying another cpu or architecture always sets -marm and -mfloat-abi and so those multilib configuration don't rely on the defaults. Signed-off-by: Keith Packard <[email protected]>
1 parent 5930f2f commit e9ec67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/config/arm/arm-mlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
along with GCC; see the file COPYING3. If not see
2020
<http://www.gnu.org/licenses/>. */
2121

22-
#define MULTILIB_DEFAULTS { "mbranch-protection=none" }
22+
#define MULTILIB_DEFAULTS { "marm", "mfloat-abi=soft", "mbranch-protection=none", }

0 commit comments

Comments
 (0)