This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: RFC: New approach to --with-cpu


Daniel Jacobowitz <drow@mvista.com> writes:
> if the user configures --with-cpu=<blah>, and then runs the compiler
> with -mips3, what _should_ happen and what _will_ happen?  The result
> will be both -march= and -mips3 being specified on the command line;
> will the -mips3 be ignored or have some effect?

Well, -march overrides -mipsN (N != 16).  gcc will accept -mipsN
alongside a MIPS N -march (e.g. -march=r4000 -mips3) otherwise you'll
get an error.

I guess what should happen depends on what you want --with-cpu to mean.
If it gives a default argument for -march, then the original patch is
OK, and an incompatible -mipsN would be an error.  If (more generally)
you want --with-cpu to specify a default architecture, then I guess
-mips3 should override the default.

Richard


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