diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-11-15 21:35:18 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-11-15 21:35:18 +0000 |
commit | 4cd0866d1da8f571a85bf01428912533ca145b1c (patch) | |
tree | 2a4913307b55bdd0a1cebd815d171fcb9b055771 /gcc/config/h8300/h8300.h | |
parent | 9cbbf4634e91d536460a35d6c6c9e82edbad9bdc (diff) | |
download | gcc-4cd0866d1da8f571a85bf01428912533ca145b1c.zip gcc-4cd0866d1da8f571a85bf01428912533ca145b1c.tar.gz gcc-4cd0866d1da8f571a85bf01428912533ca145b1c.tar.bz2 |
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
Diffstat (limited to 'gcc/config/h8300/h8300.h')
-rw-r--r-- | gcc/config/h8300/h8300.h | 14 |
1 files changed, 6 insertions, 8 deletions
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)(); \ |