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: aj at suse dot de
- Subject: Re: UNITS_PER_WORD change wrong on MIPS
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Mon, 27 Mar 00 05:42:00 EST
- Cc: gcc-patches at gcc dot gnu dot org
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.