8319440: RISC-V: jdk can't be built with clang due to register keyword

Reviewed-by: fyang
This commit is contained in:
Arseny Bochkarev 2023-11-22 16:13:49 +00:00 committed by Vladimir Kempik
parent 524da141e7
commit a4bd9e4d0b

View File

@ -74,7 +74,7 @@
#define read_csr(csr) \
({ \
register unsigned long __v; \
unsigned long __v; \
__asm__ __volatile__ ("csrr %0, %1" \
: "=r" (__v) \
: "i" (csr) \