This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch committed] Fix SH build failure


I've applied the attached patch to fix the following build
failure on SH:

build/gengtype ../../ORIG/trunk/gcc gtyp-input.list
../../ORIG/trunk/gcc/config/sh/sh.h:2895: parse error: expected a type specifier, have '('../../ORIG/trunk/gcc/config/sh/sh.h:2895: parse error: unmatched '')'' while scanning for ',' or ';'../../ORIG/trunk/gcc/config/sh/sh.h:2895: parse error: unexpected top level token, ')'

Regards,
	kaz
--
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.

--- ORIG/trunk/gcc/config/sh/sh.h	2007-07-14 23:46:32.000000000 +0900
+++ LOCAL/trunk/gcc/config/sh/sh.h	2007-07-14 23:51:32.000000000 +0900
@@ -2892,7 +2892,7 @@ struct sh_args {
 #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;					\
@@ -2905,7 +2905,7 @@ struct sh_args {
 #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;					\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]