public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/37820]  New: need command line option that prints all defaults and predefined macros
@ 2008-10-13 22:59 Dave at Yost dot com
  2008-10-14  4:34 ` [Bug driver/37820] " brian at dessent dot net
  0 siblings, 1 reply; 2+ messages in thread
From: Dave at Yost dot com @ 2008-10-13 22:59 UTC (permalink / raw)
  To: gcc-bugs

For example, g++ --help says
  -std=<standard>          Assume that the input sources are for <standard>
but it doesn't say what the default is.


-- 
           Summary: need command line option that prints all defaults and
                    predefined macros
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Dave at Yost dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37820


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

* [Bug driver/37820] need command line option that prints all defaults and predefined macros
  2008-10-13 22:59 [Bug driver/37820] New: need command line option that prints all defaults and predefined macros Dave at Yost dot com
@ 2008-10-14  4:34 ` brian at dessent dot net
  0 siblings, 0 replies; 2+ messages in thread
From: brian at dessent dot net @ 2008-10-14  4:34 UTC (permalink / raw)
  To: gcc-bugs



------- 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


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

end of thread, other threads:[~2008-10-14  4:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-13 22:59 [Bug driver/37820] New: need command line option that prints all defaults and predefined macros Dave at Yost dot com
2008-10-14  4:34 ` [Bug driver/37820] " brian at dessent dot net

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).