diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2024-10-03 16:03:30 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2024-10-17 15:43:27 +0000 |
commit | d806810f02a15a82f284d9e0e03c24f32f2a3be2 (patch) | |
tree | 4fcc5ad56775447a266b099eb208e6ad649a15ac | |
parent | e4d417417f8a2f1cf615b6ff81687f4861787de0 (diff) | |
download | gcc-d806810f02a15a82f284d9e0e03c24f32f2a3be2.zip gcc-d806810f02a15a82f284d9e0e03c24f32f2a3be2.tar.gz gcc-d806810f02a15a82f284d9e0e03c24f32f2a3be2.tar.bz2 |
aarch64: libgcc: add prototypes in cpuinfo
Add prototypes for __init_cpu_features_resolver and
__init_cpu_features to avoid warnings due to -Wmissing-prototypes.
libgcc/
* config/aarch64/cpuinfo.c (__init_cpu_features_resolver): Add
prototype.
(__init_cpu_features): Likewise.
-rw-r--r-- | libgcc/config/aarch64/cpuinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgcc/config/aarch64/cpuinfo.c b/libgcc/config/aarch64/cpuinfo.c index ec36d10..36d0755 100644 --- a/libgcc/config/aarch64/cpuinfo.c +++ b/libgcc/config/aarch64/cpuinfo.c @@ -387,6 +387,7 @@ __init_cpu_features_constructor (unsigned long hwcap, __atomic_store_n (&__aarch64_cpu_features.features, feat, __ATOMIC_RELAXED); } +void __init_cpu_features_resolver(unsigned long, const __ifunc_arg_t *); void __init_cpu_features_resolver(unsigned long hwcap, const __ifunc_arg_t *arg) { @@ -395,6 +396,7 @@ __init_cpu_features_resolver(unsigned long hwcap, const __ifunc_arg_t *arg) __init_cpu_features_constructor(hwcap, arg); } +void __init_cpu_features(void); void __attribute__ ((constructor)) __init_cpu_features(void) { |