This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question on Tuning and Preprocessor Definitions
- From: Ian Lance Taylor <iant at google dot com>
- To: noloader at gmail dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 24 May 2011 07:25:48 -0700
- Subject: Re: Question on Tuning and Preprocessor Definitions
- References: <BANLkTimRvYxJcp_tu1xsDHPk7WXFyZZ4DQ@mail.gmail.com>
Jeffrey Walton <noloader@gmail.com> writes:
> I just noticed __tune_core2__ from `cpp -dM < /dev/null` on a Mac.
>
> Can we presume an mtune options [1] (ie, -mtune=XXX) have a
> corresponding __tune_XXX__ preprocessor definition which GCC
> recognizes?
For the x86 backend only, yes, you pretty much can. The default is
-mtune=generic, and there is no __tune_XXX preprocessor macro for that.
Ian