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]
Other format: [Raw text]

Re: head: MIPS: Complete the R4000 multiply/shift errataworkaround


At Thu, 19 Feb 2004 16:51:53 +0000 (UTC), "Maciej W. Rozycki" wrote:
>  Possible improvements:
> 
> 1. Differentiate between R4000 and R4400 as the latter doesn't suffer from 
> the problem.
> 
> 2. Add an option to toggle the workaround regardless of the processor 
> selected.

FWIW, from my perspective (not a maintainer 8-), I think this is not a
"possible" improvement, it's a necessary improvement.

GCC's MIPS back-end should be capable of generating 'safe' code that
runs on a given minimum ISA level, for any processor that it knows
about fixes for, e.g.

        -mips3 -mfix-r4000 -mfix-sb1 -mfix-...

Whether -mfix-r4000 should be the default in a given configuration is
not something I'm qualified to speak about, but it should definitely
be a flag that can be enabled/disabled seperately from general arch =
r4000 code generation.



chris


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