]> gcc.gnu.org Git - gcc.git/commit
LoongArch: Fix "-mexplict-relocs=none -mcmodel=medium" producing %call36 when the...
authorXi Ruoyao <xry111@xry111.site>
Sat, 18 Nov 2023 17:41:12 +0000 (01:41 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 18 Nov 2023 17:45:29 +0000 (01:45 +0800)
commit84c5dede83de84e0a06b018103be0b9ede5b04a1
tree9c3ee5b84be14058c9d94620b312c8bd7227bcb9
parent51bda9f136c03c948a9e95b60cb8b4257fb427be
LoongArch: Fix "-mexplict-relocs=none -mcmodel=medium" producing %call36 when the assembler does not support it

Even if !HAVE_AS_SUPPORT_CALL36, const_call_insn_operand should still
return false when -mexplict-relocs=none -mcmodel=medium to make
loongarch_legitimize_call_address emit la.local or la.global.

gcc/ChangeLog:

* config/loongarch/predicates.md (const_call_insn_operand):
Remove buggy "HAVE_AS_SUPPORT_CALL36" conditions.  Change "1" to
"true" to make the coding style consistent.
gcc/config/loongarch/predicates.md
This page took 0.058386 seconds and 6 git commands to generate.