]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: libgcc: add prototypes in cpuinfo
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 3 Oct 2024 16:03:30 +0000 (16:03 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 17 Oct 2024 15:43:27 +0000 (15:43 +0000)
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.

libgcc/config/aarch64/cpuinfo.c

index ec36d1057383bd23260f85a41b9b30b2288622af..36d0755099b14396189c3dd38da7d67c0426ae28 100644 (file)
@@ -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)
 {