This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Automatic architecture optimization
Eric Christopher wrote:
On Thu, 2003-09-04 at 11:32, Matt Fago wrote:
Hopefully not a FAQ: I'm curious about why gcc does not support the
"-march" optimization flag, without an architecture given, to
automatically set the appropriate optimization flags for the processor
type the compiler is running on. This would require methods to determine
the processor type on all platforms that gcc runs on -- perhaps a
non-trivial task.
Appropriate could often depend on the code you are compiling.
Are there cases when for example -march=pentium3 would not be
appropriate (on this processor)?
- Matt