]> git.ipfire.org Git - thirdparty/gcc.git/commit
build: Unify 32 and 64-bit assembler handling
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 27 Jan 2026 18:15:36 +0000 (19:15 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 27 Jan 2026 18:15:36 +0000 (19:15 +0100)
commit5fc4e333b42d12aca71587f83f2d2c5be9633146
tree3518e8dd8efefbd8c9f8e3cc129fe9b8d0ea690f
parentf75fe68437e3cd62548370f9653aae7fee8c621c
build: Unify 32 and 64-bit assembler handling

gcc/configure.ac uses various ways to handle differences between GNU as
and Solaris as assembler options and syntax.

This patch unifies all those, setting gcc_cv_as_flags, as_32_opt, and
as_64_opt once in acinclude.m4 (gcc_GAS_FLAGS) and using the result
everywhere.  Besides, handling Solaris as syntax differences from GNU as
is done in a more readable way.

Bootstrapped without regressions on i386-pc-solaris2.11,
x86_64-pc-solaris2.11, x86_64-pc-linux-gnu, x86_64-unknown-freebsd14.3,
and x86_64-apple-darwin21.6.0.

gcc:
* acinclude.m4 (gcc_cv_as_flags) Provide Solaris settings.
Apply Linux/x86 gas settings on all x86 gas targets, too.
(as_32_opt, as_64_opt): Set on all x86 gas targets.
* configure.ac: Consistenly use as_32_opt, as_64_opt instead of
as_ix86_gas_{32,64}_opt or hardcoded --64.
<sparc*-*-*>: Simplify setting TLS test code.
* configure: Regenerate.
gcc/acinclude.m4
gcc/configure
gcc/configure.ac