]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Define the macro ASM_PREFERRED_EH_DATA_FORMAT by checking the assembler...
authorLulu Cheng <chenglulu@loongson.cn>
Fri, 29 Jul 2022 01:44:52 +0000 (09:44 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 29 Jul 2022 06:58:39 +0000 (14:58 +0800)
commit201e8d9f82444403682cd583ce0a03e3e3dd2b73
tree7821cdc35f8f9f3528c75062fe25b34cf4eb5d49
parent0c0feae60aa2f1a29d2624399cbcc6b1a52cc07c
LoongArch: Define the macro ASM_PREFERRED_EH_DATA_FORMAT by checking the assembler's support for eh_frame encoding.

.eh_frame DW_EH_PE_pcrel encoding format is not supported by gas <= 2.39.
Check if the assembler support DW_EH_PE_PCREL encoding and define .eh_frame
encoding type.

gcc/ChangeLog:

* config.in: Regenerate.
* config/loongarch/loongarch.h (ASM_PREFERRED_EH_DATA_FORMAT):
Select the value of the macro definition according to whether
HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT is defined.
* configure: Regenerate.
* configure.ac: Reinstate HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT test.
gcc/config.in
gcc/config/loongarch/loongarch.h
gcc/configure
gcc/configure.ac