PATCH: Turn mips relaxation if appropriate (Re: MIPS gas relaxation still doesn't work)
Richard Sandiford
rsandifo@redhat.com
Mon Oct 14 08:58:00 GMT 2002
"H. J. Lu" <hjl@lucon.org> writes:
> Since no other assemblers warn for relaxation by default, the mips GNU
> assembler shouldn't be different. That means branch relaxation is just
> like another form of macro. However, if gcc wishes to check its own
> bug, it can pass --relax to gas. But it is not required to get branch
> relaxation.
But your patch effectively changes --relax-branch to mean
"warn about branch relaxations that are otherwise applied
by default if -mno-embedded-pic". At the same time it's
still acting as "enable branch relaxation" when used with
-membedded-pic. Seems a bit convoluted.
At the end of the day, it is only a warning. If you really
want a way of turning it off, why not put it under the control
of a separate flag?
Richard
More information about the Binutils
mailing list