gcc/config
Yang Yujie 227b18f5d7 LoongArch: Reimplement multilib build option handling.
Library build options from --with-multilib-list used to be processed with
*self_spec, which missed the driver's initial canonicalization.  This
caused limitations on CFLAGS override and the use of driver-only options
like -m[no]-lsx.

The problem is solved by promoting the injection rules of --with-multilib-list
options to the first element of DRIVER_SELF_SPECS, to make them execute before
the canonialization.  The library-build options are also hard-coded in
the driver and can be used conveniently by the builders of other non-gcc
libraries via the use of -fmultiflags.

Bootstrapped and tested on loongarch64-linux-gnu.

ChangeLog:

	* config-ml.in: Remove unneeded loongarch clause.
	* configure.ac: Register custom makefile fragments mt-loongarch-*
	for loongarch targets.
	* configure: Regenerate.

config/ChangeLog:

	* mt-loongarch-mlib: New file.  Pass -fmultiflags when building
	target libraries (FLAGS_FOR_TARGET).
	* mt-loongarch-elf: New file.
	* mt-loongarch-gnu: New file.

gcc/ChangeLog:

	* config.gcc: Pass the default ABI via TM_MULTILIB_CONFIG.
	* config/loongarch/loongarch-driver.h: Invoke MLIB_SELF_SPECS
	before the driver canonicalization routines.
	* config/loongarch/loongarch.h: Move definitions of CC1_SPEC etc.
	to loongarch-driver.h
	* config/loongarch/t-linux: Move multilib-related definitions to
	t-multilib.
	* config/loongarch/t-multilib: New file.  Inject library build
	options obtained from --with-multilib-list.
	* config/loongarch/t-loongarch: Same.
2023-09-15 10:42:12 +08:00
..
acinclude.m4
acx.m4 Revert "sphinx: support Sphinx in build system" 2022-11-14 09:35:06 +01:00
asmcfi.m4
ax_check_define.m4
ax_count_cpus.m4
ax_cxx_compile_stdcxx.m4
ax_lib_socket_nsl.m4
ax_pthread.m4
bitfields.m4
bootstrap-asan.mk
bootstrap-cet.mk
bootstrap-debug-big.mk
bootstrap-debug-ckovw.mk
bootstrap-debug-lean.mk
bootstrap-debug-lib.mk
bootstrap-debug.mk
bootstrap-hwasan.mk
bootstrap-lto-lean.mk
bootstrap-lto-noplugin.mk
bootstrap-lto.mk
bootstrap-O1.mk
bootstrap-O3.mk
bootstrap-Og.mk
bootstrap-time.mk
bootstrap-ubsan.mk
cet.m4
ChangeLog Daily bump. 2023-08-12 00:17:36 +00:00
codeset.m4
depstand.m4
dfp.m4 aarch64: Enable DFP (Decimal Floating-point) (BID format) 2022-05-20 09:31:15 +02:00
elf.m4
enable.m4
extensions.m4
futex.m4
gc++filt.m4
gcc-plugin.m4 config: Fix host -rdynamic detection for build != host != target 2023-08-11 13:20:07 +00:00
gettext-sister.m4
gettext.m4
glibc21.m4
gthr.m4 gcc: Add 'mcf' thread model support from mcfgthread 2022-10-19 13:52:37 +00:00
gxx-include-dir.m4
hwcaps.m4
iconv.m4
intdiv0.m4
inttypes_h.m4
inttypes-pri.m4
inttypes.m4
isl.m4
largefile.m4
lcmessage.m4
ld-symbolic.m4
lead-dot.m4
lib-ld.m4 egrep in binutils 2023-08-07 22:59:40 +02:00
lib-link.m4
lib-prefix.m4
libstdc++-raw-cxx.m4
lthostflags.m4
math.m4
mh-alpha-linux
mh-cygwin
mh-darwin
mh-djgpp
mh-mingw mh-mingw: drop unused BOOT_CXXFLAGS variable 2023-07-21 10:37:58 +01:00
mh-pa
mh-ppc-aix
mmap.m4
mt-alphaieee
mt-android
mt-d30v
mt-gnu
mt-loongarch-elf LoongArch: Reimplement multilib build option handling. 2023-09-15 10:42:12 +08:00
mt-loongarch-gnu LoongArch: Reimplement multilib build option handling. 2023-09-15 10:42:12 +08:00
mt-loongarch-mlib LoongArch: Reimplement multilib build option handling. 2023-09-15 10:42:12 +08:00
mt-mips16-compat
mt-mips-elfoabi
mt-mips-gnu
mt-nios2-elf
mt-ospace
mt-sde
mt-spu
multi.m4
nls.m4
no-executables.m4
override.m4 PR27116, Spelling errors found by Debian style checker 2023-08-07 22:59:40 +02:00
picflag.m4 Deprecate a.out support for NetBSD targets. 2023-08-07 22:59:41 +02:00
pkg.m4 PKG_CHECK_MODULES: Properly check if $pkg_cv_[]$1[]_LIBS works 2023-08-07 22:59:41 +02:00
plugins.m4
po.m4
proginstall.m4
progtest.m4
sjlj.m4
stdint_h.m4
stdint.m4
target-posix
tcl.m4
tls.m4
toolexeclibdir.m4
uintmax_t.m4
ulonglong.m4
unwind_ipinfo.m4
warnings.m4
weakref.m4
zlib.m4
zstd.m4 configure: require libzstd >= 1.4.0 2023-08-07 22:59:37 +02:00