We've got commit 625ea3c6ea1811388d030eddff57cd46c209d49a
"AArch64: Deprecate -mabi=ilp32", and then
commit r15-7094-g9fd190c70976638eb8ae239f09d9f73da26d3021
"aarch64: Drop ILP32 from default elf multilibs after deprecation".

For '--target=aarch64-rtems6', with '--enable-werror', we now run into build
failure due to:

    cc1: error: ‘-mabi=ilp32’ is deprecated [-Werror=deprecated]

Per my testing, locally reverting the aforementioned deprecation commit doesn't
restore the ILP32 multilibs' build:

    ../../../../../source-gcc/libstdc++-v3/libsupc++/eh_globals.cc:62:24: 
error: unsupported size 4 for DTPREL relocation, allowed: 8
       62 | { return get_global(); }
          |                        ^
    make[8]: *** [Makefile:781: eh_globals.lo] Error 1
    make[8]: Leaving directory 
'[...]/build-gcc/aarch64-rtems6/ilp32/libstdc++-v3/libsupc++'

..., and similarly for other target libraries.  I've not investigated that one
any further -- should we also for RTEMS/AArch64 just no longer build the ILP32
multilibs?

        gcc/
        * config/aarch64/t-aarch64-rtems: Don't build ILP32 multilibs.
---
 gcc/config/aarch64/t-aarch64-rtems | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/gcc/config/aarch64/t-aarch64-rtems 
b/gcc/config/aarch64/t-aarch64-rtems
index f7bc7e50354e..ab6c3fdd5373 100644
--- a/gcc/config/aarch64/t-aarch64-rtems
+++ b/gcc/config/aarch64/t-aarch64-rtems
@@ -22,9 +22,6 @@ MULTILIB_OPTIONS  =
 MULTILIB_DIRNAMES =
 MULTILIB_REQUIRED =
 
-MULTILIB_OPTIONS  += mabi=ilp32
-MULTILIB_DIRNAMES += ilp32
-
 MULTILIB_OPTIONS  += mno-outline-atomics
 MULTILIB_DIRNAMES += nooa
 
@@ -37,6 +34,4 @@ MULTILIB_DIRNAMES += fix835769
 MULTILIB_OPTIONS  += mfix-cortex-a53-843419
 MULTILIB_DIRNAMES += fix843419
 
-MULTILIB_REQUIRED += mabi=ilp32
-MULTILIB_REQUIRED += 
mabi=ilp32/mno-outline-atomics/mcpu=cortex-a53/mfix-cortex-a53-835769/mfix-cortex-a53-843419
 MULTILIB_REQUIRED += 
mno-outline-atomics/mcpu=cortex-a53/mfix-cortex-a53-835769/mfix-cortex-a53-843419
-- 
2.53.0

Reply via email to