Macros automatically defined by GCC?

Alex J. Dam
Wed Jan 25 15:19:00 GMT 2006

On 1/25/06, Jim Stapleton <> wrote:
> I was looking through the GCC documentation trying to see what macros
> I could find that were automatically defined, but I couldn't find an
> comprehensive list of all of them, I could only find some to fit some
> situations.

Not sure whether this will help you, but the following command dumps
all macros predefined by GCC:

$ gcc -E -dM -xc /dev/null

You might also want to check this website:


More information about the Gcc-help mailing list