diff options
author | Koakuma <[email protected]> | 2024-10-29 21:49:07 +0700 |
---|---|---|
committer | Andreas Larsson <[email protected]> | 2024-11-16 09:52:56 +0100 |
commit | 69114be15b35a4d7ff084a6415fad018da648942 (patch) | |
tree | 5c5800fe58057293c9780f7246a10bd3df9f73d9 /scripts/gdb/linux/interrupts.py | |
parent | 9852d85ec9d492ebef56dc5f229416c925758edc (diff) |
sparc/build: Put usage of -fcall-used* flags behind cc-option
Place -fcall-used* flags behind cc-option so that clang (which doesn't
support them) can still compile the kernel.
This is a safe change, the reasoning is as follows:
In the (normal) 32-bit ABI, %g5 and %g7 is normally reserved, and in
the 64-bit ABI, %g7 is the reserved one.
Linux turns them into volatile registers by the way of -fcall-used-*,
but on the other hand, omitting the flags shouldn't be harmful;
compilers will now simply refuse to touch them, and any assembly
code that happens to touch them would still work like usual (because
Linux' conventions already treats them as volatile anyway).
Signed-off-by: Koakuma <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Reviewed-by: Andreas Larsson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andreas Larsson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions