This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: UNITS_PER_WORD change wrong on MIPS


>>>>> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]