diff options
author | Srinath Parvathaneni <srinath.parvathaneni@arm.com> | 2023-01-24 09:57:52 +0000 |
---|---|---|
committer | Srinath Parvathaneni <srinath.parvathaneni@arm.com> | 2023-01-24 09:58:21 +0000 |
commit | 275820c09e5f397040cbff69c90012dc1e220faf (patch) | |
tree | e0613efc0e6f7871ec90f8aad12bea0c55a246fe /gcc/config.gcc | |
parent | e304e9283a97e28dc0074d8d30715d3f626b4e87 (diff) | |
download | gcc-275820c09e5f397040cbff69c90012dc1e220faf.zip gcc-275820c09e5f397040cbff69c90012dc1e220faf.tar.gz gcc-275820c09e5f397040cbff69c90012dc1e220faf.tar.bz2 |
arm: Fix inclusion of arm-mlib.h header more than once (pr108505).
The patch fixes the build issue for arm-none-eabi target configured with
--with-multilib-list=aprofile,rmprofile, in which case the header file
arm/arm-mlib.h is being included more than once and the toolchain build
is failing (PR108505).
gcc/ChangeLog:
2023-01-24 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
PR target/108505
* config.gcc (tm_file): Move the variable out of loop.
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 771bd35..d828223 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4350,7 +4350,6 @@ case "${target}" in case ${arm_multilib} in aprofile|rmprofile) tmake_profile_file="arm/t-multilib" - tm_file="$tm_file arm/arm-mlib.h" ;; @*) ml=`echo "X$arm_multilib" | sed '1s,^X@,,'` @@ -4389,6 +4388,7 @@ case "${target}" in # through to the multilib selector with_float="soft" tmake_file="${tmake_file} ${tmake_profile_file}" + tm_file="$tm_file arm/arm-mlib.h" TM_MULTILIB_CONFIG="$with_multilib_list" fi fi |