h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 15 Nov 2003 21:35:18 +0000 (21:35 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 15 Nov 2003 21:35:18 +0000 (21:35 +0000)
* config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
(DO_GLOBAL_DTORS_BODY): Likewise.

From-SVN: r73634

gcc/ChangeLog
gcc/config/h8300/h8300.h

index 4f2a3a36fc82f59ea31a772e4d424cfea63a7d65..e6937a6c59caedc58c86d35a45a40a45d8700e40 100644 (file)
@@ -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
index 055a32542e16352e611077313cfa1cc3eb962e48..4766e7c594cdd11c584fda6f86a0d9f5f21c1cd1 100644 (file)
@@ -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)();                                  \