[PATCH] MIPS gas: Reallow branches to global file-internal labels

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Thu Feb 13 10:24:00 GMT 2003
Alexandre Oliva wrote:
> 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.

Ah, that's the trick! Thanks! This rests my concerns.


Thiemo



More information about the Binutils mailing list