[llvm-bugs] [Bug 44562] New: [ARM] "Invalid register name" for global register vairables
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 15 14:31:19 PST 2020
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: unassignedbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: kristof.beyls at arm.com, llozano at chromium.org,
llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
srhines at google.com, Ties.Stuij at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200115/88b16f76/attachment.html>
More information about the llvm-bugs
mailing list