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: [PATCH] MIPS gas: Reallow branches to global file-internal labels


On Feb 13, 2003, Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> wrote:

> It loses performance and enlarges the code, because conditional branches
> have to be converted to branch-and-jump sequences.

Nope.  Just turn:

.globl foo
foo:
...
     b foo

into

.globl foo
foo:
.Lfoo:
...
     b .Lfoo

No additional branches, no additional symbols, no differences in the
resulting object, and you're now clear that you really really mean to
branch to that symbol, and not to whatever symbol might override it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.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]