head: MIPS: A workaround for the R4000 divide/shift errata

Richard Sandiford rsandifo@redhat.com
Fri Feb 20 15:57:00 GMT 2004


"Maciej W. Rozycki" <macro@ds2.pg.gda.pl> writes:
> On Thu, 19 Feb 2004, Richard Sandiford wrote:
>> This is OK, modulo use of TARGET_FIX_R4000, or whatever.
>
>  OK -- I'll add an explicit macro to trigger both workarounds.  I'm only a 
> bit hesitant to invent an externally visible option at this stage -- once 
> agreed upon a name I wouldn't want to change it.

FWIW, I'd happy to see the patch go in with or without a separate option.
Let's see what Eric thinks.

I think the -mfix-* options come into their own if it's likely (or at least
possible) that the bugs will be fixed in a later revision of the processor.
That's certainly not the case for the r4000.  So I don't see a problem with
using:

#define TARGET_FIX_R4000 (TARGET_MIPS4000 && !TARGET_MIPS16)

for the time being and maybe adding an option later if it causes trouble.

Richard



More information about the Gcc-patches mailing list