PATCH: Turn mips relaxation if appropriate (Re: MIPS gas relaxation still doesn't work)

Alexandre Oliva aoliva@redhat.com
Mon Oct 14 09:17:00 GMT 2002


On Oct 14, 2002, "H. J. Lu" <hjl@lucon.org> wrote:

> But it is not required to get branch relaxation.

I remember having got an error from the IRIX 6.5 assembler when I gave
it the relax test to assemble.  It even suggested me to use a certain
option that I suspect was a compiler option, since passing it to the
assembler had no effect, and failed to assemble the testcase just the
same.  Unfortunately our IRIX 6.5 box is unavailable ATM so I can't
double-check, but I think the current implementation matches that of
IRIX.

> Also, I have a problem with --relax-branch/--no-relax-branch. There is
> no mention of them with "as --help"

Oops.  This should be fixed, indeed.

> Also gas already has a generic option:

>   --relax                     Relax branches on certain targets

> Why does mips invent a new option?

Because mips-gas does far more relaxation than just branches, and the
rest seems to be what is expected of a mips assembler, so it's enabled
by default, whereas branch relaxation seems to be not the rule, at
least for mips.

-- 
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



More information about the Binutils mailing list