]> 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>
Wed, 20 Sep 2023 01:20:02 +0000 (09:20 +0800)
commit9bab65a77049edcc7afc59532173206ee816e726
tree6ae3d160fcdb1eade806c2457cdc22dccb3f6713
parent590a8bec3ed92118e084b0a1897d3314a666170e
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-driver.h (ASM_SPEC): When compiling with
-mno-relax, pass the -mno-relax option to the assembler.
* 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.
gcc/config.in
gcc/config/loongarch/genopts/loongarch.opt.in
gcc/config/loongarch/gnu-user.h
gcc/config/loongarch/loongarch-driver.h
gcc/config/loongarch/loongarch-opts.h
gcc/config/loongarch/loongarch.opt
gcc/configure
gcc/configure.ac