diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2023-09-15 10:22:49 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2023-09-20 09:20:02 +0800 |
commit | 9bab65a77049edcc7afc59532173206ee816e726 (patch) | |
tree | 6ae3d160fcdb1eade806c2457cdc22dccb3f6713 /gcc/expr.cc | |
parent | 590a8bec3ed92118e084b0a1897d3314a666170e (diff) | |
download | gcc-9bab65a77049edcc7afc59532173206ee816e726.zip gcc-9bab65a77049edcc7afc59532173206ee816e726.tar.gz gcc-9bab65a77049edcc7afc59532173206ee816e726.tar.bz2 |
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.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions