aboutsummaryrefslogtreecommitdiff
path: root/libgcc/enable-execute-stack-empty.c
diff options
context:
space:
mode:
authorAndrew Carlotti <andrew.carlotti@arm.com>2023-09-20 12:22:09 +0100
committerAndrew Carlotti <andrew.carlotti@arm.com>2023-12-16 00:38:41 +0000
commit2c200a12c12f84a4d373aafaae8ff01fb0381b46 (patch)
tree08c658316a9548912fc060684b31034c7395ea66 /libgcc/enable-execute-stack-empty.c
parent06f64b95bafc06c318efc7b6d7c03cd34fe4be78 (diff)
downloadgcc-2c200a12c12f84a4d373aafaae8ff01fb0381b46.zip
gcc-2c200a12c12f84a4d373aafaae8ff01fb0381b46.tar.gz
gcc-2c200a12c12f84a4d373aafaae8ff01fb0381b46.tar.bz2
aarch64: Add cpu feature detection to libgcc
This is added to enable function multiversioning, but can also be used directly. The interface is chosen to match that used in LLVM's compiler-rt, to facilitate cross-compiler compatibility. The content of the patch is derived almost entirely from Pavel's prior contributions to compiler-rt/lib/builtins/cpu_model.c. I have made minor changes to align more closely with GCC coding style, and to exclude any code from other LLVM contributors, and am adding this to GCC with Pavel's approval. libgcc/ChangeLog: * config/aarch64/t-aarch64: Include cpuinfo.c * config/aarch64/cpuinfo.c: New file (__init_cpu_features_constructor) New. (__init_cpu_features_resolver) New. (__init_cpu_features) New. Co-authored-by: Pavel Iliin <Pavel.Iliin@arm.com>
Diffstat (limited to 'libgcc/enable-execute-stack-empty.c')
0 files changed, 0 insertions, 0 deletions