This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: UNITS_PER_WORD change wrong on MIPS
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Subject: Re: UNITS_PER_WORD change wrong on MIPS
- From: Andreas Jaeger <aj at suse dot de>
- Date: 27 Mar 2000 13:21:22 +0200
- Cc: gcc-patches at gcc dot gnu dot org
- References: <10003271042.AA04870@vlsi1.ultra.nyu.edu>
>>>>> Richard Kenner writes:
> The problem seems to be the definition to UNITS_PER_WORD in
> config/mips/mips.h as:
> #define UNITS_PER_WORD ((unsigned int) (TARGET_64BIT ? 8 : 4))
> Removing the (unsigned int) fixed the problem. But what's the proper
> fix?
> *Very* hard to say. Certainly that fix is needed, but the need for it
> points out that the pre-processor isn't getting the current macro right
> either. I think we need a MIN_UNITS_PER_WORD which is constant for that
> purpose. I'll work on that.
We do have already a MIN_UNITS_PER_WORD in mips.h:
#define MIN_UNITS_PER_WORD 4
Do we need to change UNITS_PER_WORD to MIN_UNITS_PER_WORD in
libgcc2.h? Are there are other places/things that needs changing?
Thanks for looking into it,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de