[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
The C front-end defines these.
They are documented: http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
Since they are documented, I am going to close this as invalid.
And have been since 3.1: http://gcc.gnu.org/onlinedocs/gcc-3.1/cpp/Common-Predefined-Macros.html
(In reply to comment #2) > They are documented: > http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html the point of the bug submitter was to have them documented in cpp(1). Matthias
(In reply to comment #5) > the point of the bug submitter was to have them documented in cpp(1). But they are documented in the info page: Predefined Macros * Standard Predefined Macros:: * Common Predefined Macros:: * System-specific Predefined Macros:: * C++ Named Operators:: Which is not what the submitted said.
(In reply to comment #6) > (In reply to comment #5) > > the point of the bug submitter was to have them documented in cpp(1). > But they are documented in the info page: I should point out the web page is generated via the same document that the info page is generated from.