OSDN Git Service

* cppinit.c (print_help): Document -fpreprocessed.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jun 2001 22:55:49 +0000 (22:55 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jun 2001 22:55:49 +0000 (22:55 +0000)
* invoke.texi: Similarly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43116 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cppinit.c
gcc/doc/invoke.texi

index d38b78a..b21874b 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cppinit.c (print_help): Document -fpreprocessed.
+       * invoke.texi: Similarly.
+
 Sun Jun 10 00:35:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
 
        * predict.def: New file.
index fda406b..0d3d3a0 100644 (file)
@@ -1885,6 +1885,7 @@ Switches:\n\
   -dI                       Include #include directives in the output\n\
 "), stdout);
   fputs (_("\
+  -fpreprocessed            Treat the input file as already preprocessed\n\
   -ftabstop=<number>        Distance between tab stops for column reporting\n\
   -P                        Do not generate #line directives\n\
   -$                        Do not allow '$' in identifiers\n\
index 842882c..8b4eb12 100644 (file)
@@ -1023,9 +1023,8 @@ freestanding and hosted environments.
 
 @item -trigraphs
 @opindex trigraphs
-Support ISO C trigraphs.  You don't want to know about this
-brain-damage.  The @option{-ansi} option (and @option{-std} options for
-strict ISO C conformance) implies @option{-trigraphs}.
+Support ISO C trigraphs.  The @option{-ansi} option (and @option{-std}
+options for strict ISO C conformance) implies @option{-trigraphs}.
 
 @cindex traditional C language
 @cindex C language, traditional
@@ -4016,6 +4015,18 @@ Only @samp{#define @var{name}} is included in the output.
 Output @samp{#include} directives in addition to the result of
 preprocessing.
 
+@item -fpreprocessed
+@opindex fpreprocessed
+Indicate to the preprocessor that the input file has already been
+preprocessed.  This suppresses things like macro expansion, trigraph
+conversion, escaped newline splicing, and processing of most directives.
+In this mode the integrated preprocessor is little more than a tokenizer
+for the front ends.
+
+@samp{-fpreprocessed} is implicit if the input file has one of the
+extensions @samp{i}, @samp{ii} or @samp{mi} indicating it has already
+been preprocessed.
+
 @item -trigraphs
 @opindex trigraphs
 Process ISO standard trigraph sequences.  These are three-character