This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: New approach to --with-cpu
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gcc-patches at sources dot redhat dot com, echristo at redhat dot com
- Date: 31 Jul 2002 14:15:53 +0100
- Subject: Re: RFC: New approach to --with-cpu
- References: <20020730215824.GA21681@nevyn.them.org>
Daniel Jacobowitz <drow@mvista.com> writes:
> +#ifdef TARGET_DEFAULT_OPTION_ARCH
> + if (! option_present (*argcp, *argvp, "-march="))
> + add_option (argcp, argvp, "-march=" XSTRING (TARGET_DEFAULT_OPTION_ARCH));
> +#endif
On mips, what should happen if you give -mips3 on the command line?
Should it override the default -march? Seems like the default would
win as things stand.
I suppose you could have:
if (!option_present (*argcp, *argvp, "-march=")
&& (!option_present (*argcp, *argvp, "-mips")
|| option_present (*argcp, *argvp, "-mips16")))
add_option (argcp, argvp, "-march=" XSTRING (TARGET_DEFAULT_OPTION_ARCH));
(since -mips16 shouldn't change the default arch) but maybe
there needs to be some sort of target macro?
Richard