aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-11-10 10:24:49 +0100
committerJakub Jelinek <jakub@redhat.com>2021-11-10 10:24:49 +0100
commit75ef0353a2d31dad1bda8e35f1849024f7f1e941 (patch)
tree6fc6bcdef1e880f6772926748586f56ff5e1ec61 /libgcc/config
parentfb161782545224f55ba26ba663889c5e6e9a04d1 (diff)
downloadgcc-75ef0353a2d31dad1bda8e35f1849024f7f1e941.zip
gcc-75ef0353a2d31dad1bda8e35f1849024f7f1e941.tar.gz
gcc-75ef0353a2d31dad1bda8e35f1849024f7f1e941.tar.bz2
rs6000, libgcc: Fix up -Wmissing-prototypes warning on rs6000/linux-unwind.h
Jonathan reported and I've verified a In file included from ../../../libgcc/unwind-dw2.c:412: ./md-unwind-support.h:398:6: warning: no previous prototype for ‘ppc_backchain_fallback’ [-Wmissing-prototypes] 398 | void ppc_backchain_fallback (struct _Unwind_Context *context, void *a) | ^~~~~~~~~~~~~~~~~~~~~~ warning on powerpc*-linux* libgcc build. All the other MD_* macro functions are static, so I think the following is the right thing rather than adding a previous prototype for ppc_backchain_fallback. 2021-11-10 Jakub Jelinek <jakub@redhat.com> * config/rs6000/linux-unwind.h (ppc_back_fallback): Make it static, formatting fix.
Diffstat (limited to 'libgcc/config')
-rw-r--r--libgcc/config/rs6000/linux-unwind.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgcc/config/rs6000/linux-unwind.h b/libgcc/config/rs6000/linux-unwind.h
index 8deccc1d..4788497 100644
--- a/libgcc/config/rs6000/linux-unwind.h
+++ b/libgcc/config/rs6000/linux-unwind.h
@@ -395,7 +395,8 @@ struct frame_layout
};
-void ppc_backchain_fallback (struct _Unwind_Context *context, void *a)
+static void
+ppc_backchain_fallback (struct _Unwind_Context *context, void *a)
{
struct frame_layout *current;
struct trace_arg *arg = a;