This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/25717] New: -dM does not list all defined macros (in particular, __STDC__)
- From: "shaun4477 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2006 22:51:39 -0000
- Subject: [Bug preprocessor/25717] New: -dM does not list all defined macros (in particular, __STDC__)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The -dM option is documented to provide a complete list of all defined macros,
including all predefined macros, however the list is incomplete. In particular,
the following will not list __STDC__ even though it is defined:
touch test.h; gcc -dM test.h
If you modify test.h to include:
#ifdef __STDC__
#error __STDC__ is defined
#endif
The compilation will result in an error
--
Summary: -dM does not list all defined macros (in particular,
__STDC__)
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: shaun4477 at gmail dot com
GCC build triplet: ia64-hp-hpux11.23
GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25717
- Follow-Ups:
- [Bug preprocessor/25717] -dM does not list all defined macros (in particular, __STDC__)
- From: pinskia at gcc dot gnu dot org
- [Bug preprocessor/25717] -dM does not list all defined macros (in particular, __STDC__)
- From: pinskia at gcc dot gnu dot org
- [Bug preprocessor/25717] -dM does not list all defined macros (in particular, __STDC__)
- From: pinskia at gcc dot gnu dot org
- [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dM does not list all defined macros (in particular, __STDC__)
- From: pinskia at gcc dot gnu dot org
- [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
- [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
- [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD does not list all defined macros (in particular, __STDC__)
- From: pinskia at gcc dot gnu dot org
- [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD does not list all defined macros (in particular, __STDC__)
- From: mmitchel at gcc dot gnu dot org
- [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD does not list all defined macros (in particular, __STDC__)
- From: jakub at gcc dot gnu dot org
- [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD does not list all defined macros (in particular, __STDC__)
- From: jakub at gcc dot gnu dot org
- [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD does not list all defined macros (in particular, __STDC__)
- From: jakub at gcc dot gnu dot org