public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/24916]  New: option -O undocumented in cpp docs
@ 2005-11-17 17:52 debian-gcc at lists dot debian dot org
  2005-11-17 18:02 ` [Bug c/24916] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2005-11-17 17:52 UTC (permalink / raw)
  To: gcc-bugs

[forwarded from http://bugs.debian.org/339495]

you can see[1] that cpp supports -O, -O[1-9], -Os options, and these options
are meaningful (defining macros). but this is not documented in man page[2] and
info[3].

[1]
$ cpp -dM /dev/null | grep OPT
$ cpp -dM -O /dev/null | grep OPT
#define __OPTIMIZE__ 1
$ cpp -dM -Os /dev/null | grep OPT
#define __OPTIMIZE__ 1
#define __OPTIMIZE_SIZE__ 1
$ cpp -dM -O2 /dev/null | grep OPT
#define __OPTIMIZE__ 1

[2] /usr/share/man/man1/cpp-4.0.1.gz
[3] /usr/share/info/cpp-4.0.info.gz


-- 
           Summary: option -O undocumented in cpp docs
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


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

end of thread, other threads:[~2005-11-17 18:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-17 17:52 [Bug preprocessor/24916] New: option -O undocumented in cpp docs debian-gcc at lists dot debian dot org
2005-11-17 18:02 ` [Bug c/24916] " pinskia at gcc dot gnu dot org
2005-11-17 18:03 ` pinskia at gcc dot gnu dot org
2005-11-17 18:04 ` pinskia at gcc dot gnu dot org
2005-11-17 18:05 ` pinskia at gcc dot gnu dot org
2005-11-17 18:26 ` debian-gcc at lists dot debian dot org
2005-11-17 18:33 ` pinskia at gcc dot gnu dot org
2005-11-17 18:34 ` pinskia 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).