From 1f7edb8b3d65da166df57999ae6053bfdbf939de Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Tue, 28 Dec 2004 04:24:30 +0000 Subject: re PR driver/16118 (Preprocessed source error with -xf77-cpp-input) PR driver/16118 * doc/invoke.texi: Document the interaction between -save-temps and -x. From-SVN: r92658 --- gcc/ChangeLog | 6 ++++++ gcc/doc/invoke.texi | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 66264fb..8cc43d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-12-27 Roger Sayle + + PR driver/16118 + * doc/invoke.texi: Document the interaction between -save-temps + and -x. + 2004-12-27 David Edelsohn * config/rs6000/rs6000.c (rs6000_eliminate_indexed_memrefs): diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5ba632e..e230f45 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3891,6 +3891,12 @@ compiling @file{foo.c} with @samp{-c -save-temps} would produce files preprocessed @file{foo.i} output file even though the compiler now normally uses an integrated preprocessor. +When used in combination with the @option{-x} command line option, +@option{-save-temps} is sensible enough to avoid over writing an +input source file with the same extension as an intermediate file. +The corresponding intermediate file may be obtained by renaming the +source file before using @option{-save-temps}. + @item -time @opindex time Report the CPU time taken by each subprocess in the compilation -- cgit v1.1