This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-980115 sunos4/hpux9 gengenrtl.c bootstrap failure
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: egcs-980115 sunos4/hpux9 gengenrtl.c bootstrap failure
- From: Richard Henderson <rth at cygnus dot com>
- Date: Thu, 15 Jan 1998 17:08:07 -0800
- Cc: egcs at cygnus dot com, rth at cygnus dot com
- References: <199801151901.OAA12630@caip.rutgers.edu>
- Reply-To: Richard Henderson <rth at cygnus dot com>
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[] =
{