GCC’s internal defines displayed

While converting some tools to the Solaris platform, I stumbled across this little trick: In case you want to know what internal variables gcc defines on the current platform, just do

touch empty.c
gcc -c -E -dM empty.c

This will print a list of all the defines. Also works with g++.