This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/37820] need command line option that prints all defaults and predefined macros
- From: "brian at dessent dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2008 04:33:31 -0000
- Subject: [Bug driver/37820] need command line option that prints all defaults and predefined macros
- References: <bug-37820-10965@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from brian at dessent dot net 2008-10-14 04:33 -------
Subject: Re: New: need command line option that prints all
defaults and predefined macros
http://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#index-std-98
This is covered in the manual. The default for C is gnu89 and the
default for C++ is gnu++98. The --help output is not supposed to be a
substitute for proper documentation, it's just a brief summary.
To list predefined macros, use -dM with an empty input file, e.g. "gcc
-dM -E - </dev/null".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37820