diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-10-08 20:05:36 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-10-08 20:05:36 +0000 |
commit | bbb12d768b29e78d8b59d75be2fc58603ec3a5cb (patch) | |
tree | 806a98f2203cf12ec34e9d9a0011d35b9bb27a4a /gcc/doc | |
parent | 3e96a2fd0c33ebf78db50bf040624b7cbf8f86b6 (diff) | |
download | gcc-bbb12d768b29e78d8b59d75be2fc58603ec3a5cb.zip gcc-bbb12d768b29e78d8b59d75be2fc58603ec3a5cb.tar.gz gcc-bbb12d768b29e78d8b59d75be2fc58603ec3a5cb.tar.bz2 |
cppmacro.c (_cpp_create_definition): Leave comments off.
* cppmacro.c (_cpp_create_definition): Leave comments off.
* doc/cpp.texi: Update.
From-SVN: r46089
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/cpp.texi | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi index e8f7e9e..1d7dfd6 100644 --- a/gcc/doc/cpp.texi +++ b/gcc/doc/cpp.texi @@ -4228,15 +4228,11 @@ linemarkers. @xref{Preprocessor Output}. @item -C Do not discard comments. All comments are passed through to the output file, except for comments in processed directives, which are deleted -along with the directive. Comments appearing in the expansion list of a -macro will be preserved, and appear in place wherever the macro is -invoked. - -You should be prepared for side effects when using @option{-C}; it causes -the preprocessor to treat comments as tokens in their own right. For -example, macro redefinitions that were trivial when comments were -replaced by a single space might become significant when comments are -retained. Also, comments appearing at the start of what would be a +along with the directive. + +You should be prepared for side effects when using @option{-C}; it +causes the preprocessor to treat comments as tokens in their own right. +For example, comments appearing at the start of what would be a directive line have the effect of turning that line into an ordinary source line, since the first token on the line is no longer a @samp{#}. |