diff options
author | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-05-21 23:28:26 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-05-21 23:28:26 +0300 |
commit | 8356c379cfba8b1b90b0a2423f6afbbe2cdc5d91 (patch) | |
tree | 5e9c8d5dadda3f09cc9803b86a6f24dd98218459 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 8fa3cdff05f009855a6a99a7d77a41004009bbab (diff) | |
download | linux-8356c379cfba8b1b90b0a2423f6afbbe2cdc5d91.tar.xz |
RISC-V: gp_in_global needs register keyword
The Intel kernel build robot recently pointed out that I missed the
register keyword on this one when I refactored the code to remove local
register variables (which aren't supported by LLVM). GCC's manual
indicates that global register variables must have the register keyword,
As far as I can tell lacking the register keyword causes GCC to ignore
the __asm__ and treat this as a regular variable, but I'm not sure how
that didn't show up as some sort of failure.
Fixes: 52e7c52d2ded ("RISC-V: Stop relying on GCC's register allocator's hueristics")
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions