This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: FYI: -march/-mcpu patch for mips


On Fri, Jun 22, 2001 at 10:17:27PM -0700, Eric Christopher wrote:
> 
> > Did you mean `incompatible'? I don't see anything wrong if they
> > are simply different.
> > 
> > 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.
> > 
> 
> I was misreading your patch :)
> 
> At any rate, it doesn't look backwards compatible.
> You'll need to make sure that the case where -mcpu
> is given, but -march is not is handled with -mcpu
> setting the default architecture for the assembler.

It was never meant to be backwards compatible. That is why I also
changed some testcases. In fact, the new -march has the same
affect as the old -mcpu. Since my Linux mips toolchain is new for
everyone, there is no compatibility problem.

> 
> You may want to issue a warning that this behavior
> is deprecated though so that we can remove it in a
> future version.

I will give it a try.


H.J.


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