This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFC & patch: Rework MIPS command-line handling
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: Paul Koning <pkoning at equallogic dot com>
- Cc: gcc-patches at gcc dot gnu dot org, binutils at sources dot redhat dot com
- Date: Tue, 16 Jul 2002 17:01:51 +0200 (MET DST)
- Subject: Re: RFC & patch: Rework MIPS command-line handling
- Organization: Technical University of Gdansk
On Tue, 16 Jul 2002, Paul Koning wrote:
> Maciej> There is no need, either, as there are "-march=mips1",
> Maciej> etc. equivalents, and specifying "-march=3000 -march=mips2"
> Maciej> is obviously incorrect for anyone...
>
> Actually, it isn't. By the usual rules, if you mention a switch more
> than once, the last occurrence is in effect. So this should be
> equivalent simply to saying -march=mips2.
I might have been unclear: with "-march=3000 -march=mips2" it is as you
describe, with "-march=3000 -mips2" one might not expect it as it's not
obvious the two options are of the same class.
> That rule is necessary to allow makefiles to set options that are
> generally in effect but can be overridden when needed.
Certainly.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +