egcs-980115 sunos4/hpux9 gengenrtl.c bootstrap failure

Richard Henderson rth@cygnus.com
Fri Jan 16 02:26:00 GMT 1998


On Thu, Jan 15, 1998 at 02:01:40PM -0500, Kaveh R. Ghazi wrote:
> 	I am unable to bootstrap egcs-980115 using native cc on
> sparc-sun-sunos4.1.3 or hppa1.1-hp-hpux9.01 because I get errors of
> the following nature:
> 
>  > cc -c  -DIN_GCC    -g  -DHAVE_CONFIG_H     -I. -I. -I./config ./gengenrtl.c
>  > "./rtl.def", line 67: illegal character: '#'

Right.  How about this?


r~



Index: gengenrtl.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gengenrtl.c,v
retrieving revision 1.2
diff -c -p -d -r1.2 gengenrtl.c
*** gengenrtl.c	1998/01/13 09:06:31	1.2
--- gengenrtl.c	1998/01/16 01:04:03
*************** struct rtx_definition 
*** 35,41 ****
--- 35,45 ----
    const char *enumname, *name, *format;
  };
  
+ #ifdef __STDC__
  #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { # ENUM, NAME, FORMAT },
+ #else
+ #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) { "ENUM", NAME, FORMAT },
+ #endif
  
  struct rtx_definition defs[] = 
  {  



More information about the Gcc mailing list