This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: sim's -DPROFILE=1 conflicts with CGEN's PROFILE attribute
- To: Greg McGary <greg at mcgary dot org>
- Subject: Re: sim's -DPROFILE=1 conflicts with CGEN's PROFILE attribute
- From: Doug Evans <dje at transmeta dot com>
- Date: Wed, 15 Nov 2000 16:03:17 -0800 (PST)
- Cc: Ben Elliston <bje at redhat dot com>, "Frank Ch. Eigler" <fche at redhat dot com>, <cgen at sourceware dot cygnus dot com>
- References: <Pine.LNX.4.30.0011161030310.8142-100000@moshpit.cygnus.com><msvgto3j26.fsf@mcgary.org>
Greg McGary writes:
> > Heh -- good luck. I raised this last year and was met with fierce
> > opposition. It's the old bootstrapping argument.
>
> I don't suppose things have changed all that much in a year.
> I'll just redo the patch the ugly way and resubmit.
There is a way to clean it up a teensy bit.
Tuck all the random ifdef crud in one macro and then have cgen use
that macro.
something like
#if defined (__STDC__) || blah ...
#define CGEN_HAVE_STRINGIZE 1
#else
#define CGEN_HAVE_STRINGIZE 0
#endif
You might even throw that in include/opcodes/cgen.h.