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
Hi -
On Wed, Nov 15, 2000 at 12:56:30PM -0700, Greg McGary wrote:
: [...]
: There is a third solution solution:
: 3) Define A like so (e.g., for _HW_):
:
: #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
: #define A(a) (1 << CGEN_HW_##a)
: #else
: #define A(a) (1 << CGEN_HW_/**/a)
: #endif
Thanks, that's a neat way to solve the problem. (There is some precedent
elsewhere in the toolchain for assuming ANSI compliance in compilers,
so the non-## case may not even be needed any more.)
If you send a patch (see cgen/desc-cpu.scm and opc-itab.scm), you can get
your name into the ChangeLog.
- FChE
PGP signature