aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.in
diff options
context:
space:
mode:
authorEdwin Lu <ewlu@rivosinc.com>2024-07-24 16:37:18 -0700
committerEdwin Lu <ewlu@rivosinc.com>2024-07-30 10:56:58 -0700
commit7ef8a9d4b1cea3fea3791859074df79b71abd549 (patch)
tree489b25ab6a4a14ff1402015feca74833afb2008d /gcc/config.in
parentee12a13d25778a1ad8a9b5dc63aadf9f4320088b (diff)
downloadgcc-7ef8a9d4b1cea3fea3791859074df79b71abd549.zip
gcc-7ef8a9d4b1cea3fea3791859074df79b71abd549.tar.gz
gcc-7ef8a9d4b1cea3fea3791859074df79b71abd549.tar.bz2
RISC-V: Add configure check for B extention support
Binutils 2.42 and before don't recognize the b extension in the march strings even though it supports zba_zbb_zbs. Add a configure check to ignore the b in the march string if found. gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_subset_list::to_string): Skip b in march string * config.in: Regenerate. * configure: Regenerate. * configure.ac: Add B assembler check Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
Diffstat (limited to 'gcc/config.in')
-rw-r--r--gcc/config.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config.in b/gcc/config.in
index 3af153e..7fcabbe 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -629,6 +629,12 @@
#endif
+/* Define if the assembler understands -march=rv*_b. */
+#ifndef USED_FOR_TARGET
+#undef HAVE_AS_MARCH_B
+#endif
+
+
/* Define if the assembler understands -march=rv*_zaamo_zalrsc. */
#ifndef USED_FOR_TARGET
#undef HAVE_AS_MARCH_ZAAMO_ZALRSC