diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/h8300/h8300.h | 14 |
2 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f2a3a3..e6937a6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-15 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings. + (DO_GLOBAL_DTORS_BODY): Likewise. + 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk> * doc/install.texi (Prerequisites): Refine documentation of diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 055a325..4766e7c 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)(); \ |
