wishlist: -mcpu=host or -mcpu=native

Steven G Johnson stevenj@MIT.EDU
Tue Oct 26 13:26:00 GMT 2004


It would be awfully nice to be able to pass "host" or "native" to -mcpu and
-mtune and have it be equivalent to specifying the host architecture (or no-op
and a warning for a cross-compiler or if the architecture is otherwise
unknown).

A number of proprietary compilers have this feature (Compaq cc for Alpha,
Solaris cc, IBM xlc...).  It is extremely convenient in order to make portable
Makefiles and build scripts for high-performance scientific code.

Is there any interest in this sort of feature from the gcc folks?

Cordially,
Steven G. Johnson



More information about the Gcc mailing list