This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dM does not list all defined macros (in particular, __STDC__)
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2006 21:57:02 -0000
- Subject: [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dM does not list all defined macros (in particular, __STDC__)
- References: <bug-25717-11985@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from steven at gcc dot gnu dot org 2006-01-09 21:57 -------
Your command line:
touch test.h; gcc -dM test.h
creates a precompiled header.
Also, my documentation for -dM says:
@item -dM
@itemx -fdump-rtl-mach
@opindex dM
@opindex fdump-rtl-mach
Dump after performing the machine dependent reorganization pass, to
@file{@var{file}.35.mach}.
What you want is -dD. But I'm not sure what that is supposed to write out.
GCC 3.3, 4.0, and 4.1 all give no output at all for an empty file, or a file
with a single #define.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25717