public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/25717]  New: -dM does not list all defined macros (in particular, __STDC__)
@ 2006-01-08 22:51 shaun4477 at gmail dot com
  2006-01-09  0:27 ` [Bug preprocessor/25717] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: shaun4477 at gmail dot com @ 2006-01-08 22:51 UTC (permalink / raw)
  To: gcc-bugs

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-02-03 16:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-08 22:51 [Bug preprocessor/25717] New: -dM does not list all defined macros (in particular, __STDC__) shaun4477 at gmail dot com
2006-01-09  0:27 ` [Bug preprocessor/25717] " pinskia at gcc dot gnu dot org
2006-01-09  1:28 ` pinskia at gcc dot gnu dot org
2006-01-09  1:30 ` pinskia at gcc dot gnu dot org
2006-01-09  1:31 ` [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-01-09 21:57 ` steven at gcc dot gnu dot org
2006-01-09 22:00 ` steven at gcc dot gnu dot org
2006-01-09 22:08 ` [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD " pinskia at gcc dot gnu dot org
2006-01-15 22:30 ` mmitchel at gcc dot gnu dot org
2006-01-16 13:47 ` jakub at gcc dot gnu dot org
2006-01-23 21:50 ` jakub at gcc dot gnu dot org
2006-01-23 21:51 ` jakub at gcc dot gnu dot org
2006-03-11  3:21 ` [Bug preprocessor/25717] [3.4/4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 16:11 ` [Bug preprocessor/25717] [4.0 " gdr at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).