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

Re: mips $12-$15 are named $t4-$t7


On Apr  7, 2003, Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de> wrote:

> IIRC "See MIPS Run" claims this bad idea happened, and it would also
> break much code if t0-t3 would disappear.

Well, it could have been retained as an alias.  But the damage is
already done.

> Note also that the assembly examples in "MIPSpro N32 Handbook" use t0.

Indeed.  And it also mentions t4..t7 do not exist in NewABI
configurations, and introduces ta0..ta3 that alias a4..a7 or t4..t7
depending on the ABI.  Eeek.

Anyway, we do have a very serious problem now.  GCC does map t0..t3 to
$8..$11 regardless of the ABI, and changing this mapping now may break
code that declares register variables using the mnemonic name.

Anyway, I'm reverting my ``obvious'' patch for now.  Thanks for
catching this!

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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