[Bug target/123926] [16 Regression] sparc cross-compilers fail to build (host=x86_64, target=sparc)

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 2 15:04:55 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123926

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Filip Kastl <pheeck@gcc.gnu.org>:

https://gcc.gnu.org/g:1f9879e17466f5bcb583dd7bac8bae68b57ac31f

commit r16-7849-g1f9879e17466f5bcb583dd7bac8bae68b57ac31f
Author: Filip Kastl <fkastl@suse.cz>
Date:   Mon Mar 2 14:33:06 2026 +0100

    sparc: Don't require a sparc assembler with TLS [PR123926]

    Since r16-6798, it wasn't possible to build a sparc GCC without having
    a sparc assembler installed.  That shoudn't be the case since there are
    usecases for just compiling into assembly.

    The problem was sparc.h doing '#define TARGET_TLS HAVE_AS_TLS'.
    Building GCC failed when HAVE_AS_TLS wasn't defined which is the case
    when one doesn't have an assembler with TLS installed during
    ./configure.

    This patch addresses the problem.

    Pushing as obvious.

            PR target/123926

    gcc/ChangeLog:

            * config/sparc/sparc.h (HAVE_AS_TLS): Default to 0.


More information about the Gcc-bugs mailing list