]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Promote Zaamo/Zalrsc to a when using an old binutils
authorPatrick O'Neill <patrick@rivosinc.com>
Tue, 18 Jun 2024 21:40:15 +0000 (14:40 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Wed, 19 Jun 2024 20:38:20 +0000 (13:38 -0700)
commite03583e7ee99552276a90a4094776fda55ab2e02
tree7d05a42bc948617973b4b86870926753a14d40f2
parent25860fd2a674373a6476af5ff0bd92354fc53d06
RISC-V: Promote Zaamo/Zalrsc to a when using an old binutils

Binutils 2.42 and before don't support Zaamo/Zalrsc. When users specify
both Zaamo and Zalrsc, promote them to 'a' in the -march string.

This does not affect testsuite results for users with old versions of binutils.
Testcases that failed due to 'call'/isa string continue to fail after this PATCH
when using an old version of binutils.

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc: Add 'a' extension to
riscv_combine_info.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/common/config/riscv/riscv-common.cc