This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
wishlist: -mcpu=host or -mcpu=native
- From: Steven G Johnson <stevenj at MIT dot EDU>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 25 Oct 2004 18:20:08 -0400
- Subject: wishlist: -mcpu=host or -mcpu=native
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