This is the mail archive of the gcc@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]

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


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