]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust configure machinery to abi32 targets master trunk
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 18 Jun 2026 09:08:39 +0000 (11:08 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 19 Jun 2026 05:29:38 +0000 (07:29 +0200)
The machinery would still consider them as 64-bit targets in a few cases.

gcc/
* acinclude.m4 (gcc_GAS_FLAGS): Set to --32 for abi32 targets.
* configure.ac (TLS support): Use 32-bit sequence for abi32 targets.
* configure: Regenerate.

gcc/acinclude.m4
gcc/configure
gcc/configure.ac

index 135a66a91ba587f23f5243df07bcd004e9cf6f31..354e37791fa75b4616dd1a119d282fe17100a9bc 100644 (file)
@@ -511,6 +511,9 @@ AC_DEFUN([gcc_GAS_FLAGS],
       x86_64-*-linux-gnux32*)
        gcc_cv_as_flags=--x32
        ;;
+      x86_64-*-linux-gnuabi32 | x86_64-*-mingw32abi32)
+       gcc_cv_as_flags=--32
+       ;;
       x86_64-*-* | sparcv9-*-* | sparc64-*-*)
        gcc_cv_as_flags=--64
        ;;
index 735b654e1d0dd780eaf1b4af3b68bcbb1d499f99..1ef7ea3d48211757560268e17102cf3c43b5dd09 100755 (executable)
@@ -26256,6 +26256,9 @@ else
       x86_64-*-linux-gnux32*)
        gcc_cv_as_flags=--x32
        ;;
+      x86_64-*-linux-gnuabi32 | x86_64-*-mingw32abi32)
+       gcc_cv_as_flags=--32
+       ;;
       x86_64-*-* | sparcv9-*-* | sparc64-*-*)
        gcc_cv_as_flags=--64
        ;;
@@ -28108,7 +28111,7 @@ $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
     conftest_s='
       .section .tdata,"aw'$tls_section_flag'",@progbits'
     case "$target" in
-      i?86-*-*)
+      i?86-*-* | x86_64-*-linux-gnuabi32 | x86_64-*-mingw32abi32)
        tls_as_opt="$tls_as_opt $as_32_opt"
        conftest_s="$conftest_s
 foo:   .long   25
index 4360cb955662b8cd20347cace939bfa598ea05c5..4e8269d03b6c249c47119bdf7595ea019fc45fac 100644 (file)
@@ -4005,7 +4005,7 @@ changequote(,)dnl
     conftest_s='
       .section .tdata,"aw'$tls_section_flag'",@progbits'
     case "$target" in
-      i?86-*-*)
+      i?86-*-* | x86_64-*-linux-gnuabi32 | x86_64-*-mingw32abi32)
        tls_as_opt="$tls_as_opt $as_32_opt"
        conftest_s="$conftest_s
 foo:   .long   25