From: Neil Booth Date: Sat, 9 Jun 2001 22:55:49 +0000 (+0000) Subject: cppinit.c (print_help): Document -fpreprocessed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bce8a01efc92473c193976352a6c8c7dd3d1f4a;p=gcc.git cppinit.c (print_help): Document -fpreprocessed. * cppinit.c (print_help): Document -fpreprocessed. * invoke.texi: Similarly. From-SVN: r43116 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d38b78a5d0a..b21874bd148 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-06-09 Neil Booth + + * cppinit.c (print_help): Document -fpreprocessed. + * invoke.texi: Similarly. + Sun Jun 10 00:35:37 CEST 2001 Jan Hubicka * predict.def: New file. diff --git a/gcc/cppinit.c b/gcc/cppinit.c index fda406b4d70..0d3d3a0d634 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -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= Distance between tab stops for column reporting\n\ -P Do not generate #line directives\n\ -$ Do not allow '$' in identifiers\n\ diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 842882cb241..8b4eb120e10 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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