https://bugs.llvm.org/show_bug.cgi?id=44562
Bug ID: 44562
Summary: [ARM] "Invalid register name" for global register
vairables
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: ARM
Assignee: unassignedb...@nondot.org
Reporter: ndesaulni...@google.com
CC: kristof.be...@arm.com, lloz...@chromium.org,
llvm-bugs@lists.llvm.org, peter.sm...@linaro.org,
srhi...@google.com, ties.st...@arm.com
Trying to compile U-Boot w/ Clang to remove GCC from Android, I hit the
following build error w/ Clang:
```
register int foo asm("r9");
void bar(void) {
foo = 0;
}
```
https://godbolt.org/z/_wQi9A
produces:
fatal error: error in backend: Invalid register name "r9".
using "w" still errors, but is not fatal.
This code comes from:
Declaration:
https://gitlab.denx.de/u-boot/u-boot/blob/9d5d74c3ccdc78bac969d25e98eab96872e33b5c/arch/arm/include/asm/global_data.h#L85-114
Use:
1.
https://gitlab.denx.de/u-boot/u-boot/blob/9d5d74c3ccdc78bac969d25e98eab96872e33b5c/lib/efi_loader/efi_boottime.c#L91
2.
https://gitlab.denx.de/u-boot/u-boot/blob/9d5d74c3ccdc78bac969d25e98eab96872e33b5c/lib/efi_loader/efi_boottime.c#L101
3.
https://gitlab.denx.de/u-boot/u-boot/blob/9d5d74c3ccdc78bac969d25e98eab96872e33b5c/lib/efi_loader/efi_boottime.c#L125
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs