FYI: -march/-mcpu patch for mips

H . J . Lu hjl@lucon.org
Fri Jun 22 21:38:00 GMT 2001


On Fri, Jun 22, 2001 at 09:19:59PM -0700, Eric Christopher wrote:
> 
> > > You should probably put in a check to make sure that both -march and
> > > -mcpu are both not given on the command line (and different).
> > > 
> > 
> > Why? What is wrong to have both? I thought it was the whole idea.
> > 
> 
> The "and different" was the operative part of the phrase.  If they are

Did you mean `incompatible'? I don't see anything wrong if they
are simply different.

> different which one do you choose?  As I said, I'd suggest producing a
> warning and chosing the -march option.
> 
> I can't see a reason for them to be both included under gas right now.
> Please let me know if there is one though :)
> 

In my patch, -march determines what instructions to use and -mcpu
determines how to schedule the instructions. I changed -mcpu so that
it wouldn't use any new instructions.


H.J.



More information about the Binutils mailing list