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: Turn mips relaxation if appropriate (Re: MIPS gas relaxation still doesn't work)


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


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