]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Check whether binutils supports the relax function. If supported, explicit...
authorLulu Cheng <chenglulu@loongson.cn>
Fri, 15 Sep 2023 02:22:49 +0000 (10:22 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 22 Feb 2024 03:04:14 +0000 (11:04 +0800)
commit20ef2df1667f04c854a07b736840061c4a62608b
tree8ee4d6dcce1bbbd1a1b83fa254b35053a0dc0b34
parent0181e86ac14387cfb84ff8583c1313a71b4d3661
LoongArch: Check whether binutils supports the relax function. If supported, explicit relocs are turned off by default.

gcc/ChangeLog:

* config.in: Regenerate.
* config/loongarch/genopts/loongarch.opt.in: Add compilation option
mrelax. And set the initial value of explicit-relocs according to the
detection status.
* config/loongarch/gnu-user.h: When compiling with -mno-relax, pass the
--no-relax option to the linker.
* config/loongarch/loongarch-opts.h (HAVE_AS_MRELAX_OPTION): Define macro.
* config/loongarch/loongarch.opt: Regenerate.
* configure: Regenerate.
* configure.ac: Add detection of support for binutils relax function.

(cherry picked from commit 9bab65a77049edcc7afc59532173206ee816e726)
gcc/config.in
gcc/config/loongarch/genopts/loongarch.opt.in
gcc/config/loongarch/gnu-user.h
gcc/config/loongarch/loongarch-opts.h
gcc/config/loongarch/loongarch.opt
gcc/configure
gcc/configure.ac