From 4cd0866d1da8f571a85bf01428912533ca145b1c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 15 Nov 2003 21:35:18 +0000 Subject: [PATCH] h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings. * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings. (DO_GLOBAL_DTORS_BODY): Likewise. From-SVN: r73634 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.h | 14 ++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f2a3a36fc82..e6937a6c59ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-15 Kazu Hirata + + * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings. + (DO_GLOBAL_DTORS_BODY): Likewise. + 2003-11-15 Joseph S. Myers * doc/install.texi (Prerequisites): Refine documentation of diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 055a32542e16..4766e7c594cd 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -1054,10 +1054,9 @@ struct cum_arg #undef DO_GLOBAL_CTORS_BODY #define DO_GLOBAL_CTORS_BODY \ { \ - typedef (*pfunc)(); \ - extern pfunc __ctors[]; \ - extern pfunc __ctors_end[]; \ - pfunc *p; \ + extern func_ptr __ctors[]; \ + extern func_ptr __ctors_end[]; \ + func_ptr *p; \ for (p = __ctors_end; p > __ctors; ) \ { \ (*--p)(); \ @@ -1067,10 +1066,9 @@ struct cum_arg #undef DO_GLOBAL_DTORS_BODY #define DO_GLOBAL_DTORS_BODY \ { \ - typedef (*pfunc)(); \ - extern pfunc __dtors[]; \ - extern pfunc __dtors_end[]; \ - pfunc *p; \ + extern func_ptr __dtors[]; \ + extern func_ptr __dtors_end[]; \ + func_ptr *p; \ for (p = __dtors; p < __dtors_end; p++) \ { \ (*p)(); \ -- 2.47.3