aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2026-02-09 16:07:08 +0100
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2026-02-09 16:07:08 +0100
commit8564ce94d6a853377c41bdd6b5d86541f0e65844 (patch)
tree7137f2e290adc158bc99bd184dad3d9ac71a57a1
parent1900dcf5521c9b2b734eb3b805eb23b066b988c1 (diff)
downloadgcc-trunk.zip
gcc-trunk.tar.gz
gcc-trunk.tar.bz2
build: Use GNU as options on most x86/SPARC systems [PR123841,PR123926]HEADtrunkmaster
The GNU as --32 and --64 options are now applied to all x86 and SPARC systems other than Darwin and Solaris with the native assembler. Tested on {i386,amd64}-pc-solaris2.11, sparc{,v9}-sun-solaris2.11, {x86_64,i686}-pc-linux-gnu, amd64-pc-freebsd15.0, and sparc64-unknown-linux-gnu. 2026-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> gcc: PR other/123841 PR target/123926 * acinclude.m4 (gcc_GAS_FLAGS): Handle non-Darwin/Solaris as cases alike on x86 and SPARC. * configure: Regenerate.
-rw-r--r--gcc/acinclude.m410
-rwxr-xr-xgcc/configure6
2 files changed, 8 insertions, 8 deletions
diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4
index ea73545..0b840c5 100644
--- a/gcc/acinclude.m4
+++ b/gcc/acinclude.m4
@@ -493,7 +493,7 @@ AC_DEFUN([gcc_GAS_FLAGS],
esac
;;
*-*-solaris2*:no)
- dnl Override the default, which may be incompatible.
+ dnl Solaris with the native assembler uses -m32/-m64 consistently.
case "$target" in
i?86-*-* | sparc-*-*)
gcc_cv_as_flags=-m32
@@ -505,16 +505,16 @@ AC_DEFUN([gcc_GAS_FLAGS],
as_32_opt=-m32
as_64_opt=-m64
;;
- i?86-*-*:* | x86_64-*-*:* )
- dnl Override the default, which may be incompatible.
+ i?86-*-*:* | x86_64-*-*:* | sparc*-*-*:*)
+ dnl Otherwise x86 and SPARC use GNU assembler options --32/--64/--x32.
case "$target" in
- i?86-*-*)
+ i?86-*-* | sparc-*-*)
gcc_cv_as_flags=--32
;;
x86_64-*-linux-gnux32*)
gcc_cv_as_flags=--x32
;;
- x86_64-*-linux*)
+ x86_64-*-* | sparcv9-*-* | sparc64-*-*)
gcc_cv_as_flags=--64
;;
esac
diff --git a/gcc/configure b/gcc/configure
index fc3de94..bad7308 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -26188,15 +26188,15 @@ else
as_32_opt=-m32
as_64_opt=-m64
;;
- i?86-*-*:* | x86_64-*-*:* )
+ i?86-*-*:* | x86_64-*-*:* | sparc*-*-*:*)
case "$target" in
- i?86-*-*)
+ i?86-*-* | sparc-*-*)
gcc_cv_as_flags=--32
;;
x86_64-*-linux-gnux32*)
gcc_cv_as_flags=--x32
;;
- x86_64-*-linux*)
+ x86_64-*-* | sparcv9-*-* | sparc64-*-*)
gcc_cv_as_flags=--64
;;
esac