This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
options for #cpu and other?
- From: Rob Newberry <robnewberry at grouplogic dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 31 Jul 2002 17:05:34 -0400 (EDT)
- Subject: options for #cpu and other?
When compiling with GCC on Linux/X86, the following will produce a
warning:
#if #cpu(i386)
#warning "X86 processor"
#endif
which is exactly what I want.
Unfortunately, I can't find any information on "#cpu" -- I'm looking for
other pre-defined options like this. Are there any others like "#cpu" --
"#system" for example? Is there a mechanism for getting information about
these from GCC? Is this documented somewhere? Sadly, searching google
for "#cpu" generates absolutely nothing useful...
Thanks a ton!
Rob