]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: wire up --with-tls to control -mtls-dialect= default
authorSam James <sam@gentoo.org>
Fri, 22 Aug 2025 23:54:01 +0000 (00:54 +0100)
committerSam James <sam@gentoo.org>
Sat, 23 Aug 2025 10:13:50 +0000 (11:13 +0100)
commit96a291c4bb0b8a00b0a125e6a60f60072ffe53a7
treeec4338d4d1336d233feaf7fabe6e89e3991cf014
parentf23bac62f46fc296a4d0526ef54824d406c3756c
i386: wire up --with-tls to control -mtls-dialect= default

Allow passing --with-tls= at configure-time to control the default value
of -mtls-dialect= for i386 and x86_64. The default itself (gnu) is not changed
unless --with-tls= is passed.

--with-tls= is already wired up for ARM and RISC-V.

gcc/ChangeLog:
PR target/120933

* config.gcc (supported_defaults): Add tls for i386, x86_64.
* config/i386/i386.h (host_detect_local_cpu): Add tls.
* doc/install.texi: Document --with-tls= for i386, x86_64.
gcc/config.gcc
gcc/config/i386/i386.h
gcc/doc/install.texi