C-precompiler's predefined symbols
For the use with a lint tool I need a complete list with all predefined precompiler variables (such like __STDC__). With a GNU C compiler I can use the option -dM and the compiler generates such a long list. Is there something similar with the Sun Studio11 C Compiler? What can I do alternatively?
[304 byte] By [
Fridolina] at [2007-11-26 15:13:51]

# 2
Use the -### (or -xdryrun) options to see a detailed list of the -D options
passed to the C compiler front-end. These are the predefined
macros. The only other macros predefined that are not passed
to the C compiler front-end are those required by the ISO C standard:
__STDC__ Linux: always expands to 1
......................Solaris: expands to 1 with -Xc
.....................................expands to 0 with -Xa, -Xt
.....................................not defined with -Xs
__STDC_VERSION__ Expands to 199901L with -xc99=all
.....................Expands to 199409L with -xc99=none
.....................Not defined with -Xs option
__STDC_IEC_559__ Expands to 1
__STDC_IEC_559_COMPLEX__ Expands to 1
__STDC_HOSTED__Expands to 1