This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] cgen/i960, desc vs configure wrt PROFILE
- To: DJ Delorie <dj at redhat dot com>
- Subject: Re: [patch] cgen/i960, desc vs configure wrt PROFILE
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Mon, 5 Feb 2001 19:40:45 -0500
- Cc: cgen at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- References: <200102060026.TAA29083@greed.delorie.com>
Hi -
On Mon, Feb 05, 2001 at 07:26:05PM -0500, DJ Delorie wrote:
: Configure adds -DPROFILE=1 to the build, but i960-desc.c uses
: A(PROFILE) and ends up with CGEN_HW_1 being undefined. OK to commit
: these two?
Upon looking again at this recurrent problem, I'm sure that merely
#undef-ing is the wrong solution.
: I tried rebuilding the i960 with latest cgen, but that
: broke even worse. [...]
Eek - that should work!
In the mean time, consider copying the definition of the "A()" macro
from more recently generated sims, into i960-desc.c:
#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
- FChE
PGP signature