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
On Wed, Jul 31, 2002 at 03:45:52PM +0100, Richard Sandiford wrote:
> Daniel Jacobowitz <drow@mvista.com> writes:
> > Well, the best I can do given the -mipsN situation... how does this
> > revision look to you?
>
> The new macro looks good. I still think there should be some -mips16
> exemption, though. Specifying -mips16 and some other -mipsN option
> isn't supported, so if -mips16 does occur on the command line, I think
> we should assume the user wants the default architecture.
That sounds reasonable, I've updated my copy:
#define TARGET_HANDLE_DEFAULT_CPU(CPU) do { \
if (! option_present (*argcp, *argvp, "-march=") \
&& (! option_present (*argcp, *argvp, "-mips") \
|| option_present (*argcp, *argvp, "-mips16"))) \
add_option (argcp, argvp, "-march=" XSTRING (CPU)); \
if (! option_present (*argcp, *argvp, "-mtune=")) \
add_option (argcp, argvp, "-mtune=" XSTRING (CPU)); \
} while (0)
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer