OSDN Git Service

* config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jul 2007 22:59:56 +0000 (22:59 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jul 2007 22:59:56 +0000 (22:59 +0000)
(DO_GLOBAL_DTORS_BODY): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126645 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.h

index bfbaae6..0ec3d87 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
+       (DO_GLOBAL_DTORS_BODY): Likewise.
+
 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
            Nigel Stephens  <nigel@mips.com>
 
 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
            Nigel Stephens  <nigel@mips.com>
 
index 4fe0de8..0e99ce6 100644 (file)
@@ -2892,7 +2892,7 @@ struct sh_args {
 #undef DO_GLOBAL_CTORS_BODY
 #define DO_GLOBAL_CTORS_BODY                   \
 {                                              \
 #undef DO_GLOBAL_CTORS_BODY
 #define DO_GLOBAL_CTORS_BODY                   \
 {                                              \
-  typedef (*pfunc)();                          \
+  typedef void (*pfunc) (void);                        \
   extern pfunc __ctors[];                      \
   extern pfunc __ctors_end[];                  \
   pfunc *p;                                    \
   extern pfunc __ctors[];                      \
   extern pfunc __ctors_end[];                  \
   pfunc *p;                                    \
@@ -2905,7 +2905,7 @@ struct sh_args {
 #undef DO_GLOBAL_DTORS_BODY
 #define DO_GLOBAL_DTORS_BODY                   \
 {                                              \
 #undef DO_GLOBAL_DTORS_BODY
 #define DO_GLOBAL_DTORS_BODY                   \
 {                                              \
-  typedef (*pfunc)();                          \
+  typedef void (*pfunc) (void);                        \
   extern pfunc __dtors[];                      \
   extern pfunc __dtors_end[];                  \
   pfunc *p;                                    \
   extern pfunc __dtors[];                      \
   extern pfunc __dtors_end[];                  \
   pfunc *p;                                    \