]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: When checking whether the assembler supports conditional branch relaxation...
authorLulu Cheng <chenglulu@loongson.cn>
Wed, 21 Feb 2024 03:17:14 +0000 (11:17 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 23 Feb 2024 03:18:40 +0000 (11:18 +0800)
commit33abf74108f37fb7792572e538617fd15c8ade29
treec58d0312e7d24c3881a70b64fab58395e4fa929f
parent77de8b722db811e0d95af503552cd2acad8deaad
LoongArch: When checking whether the assembler supports conditional branch relaxation, add compilation parameter "--fatal-warnings" to the assembler.

In binutils 2.40 and earlier versions, only a warning will be reported
when a relocation immediate value is out of bounds. As a result,
the value of the macro HAVE_AS_COND_BRANCH_RELAXATION will also be
defined as 1 when the assembler does not support conditional branch
relaxation. Therefore, add the compilation option "--fatal-warnings"
to avoid this problem.

gcc/ChangeLog:

* configure: Regenerate.
* configure.ac: Add parameter "--fatal-warnings" to assemble
when checking whether the assemble support conditional branch
relaxation.
gcc/configure
gcc/configure.ac