re PR driver/16118 (Preprocessed source error with -xf77-cpp-input)
authorRoger Sayle <roger@eyesopen.com>
Tue, 28 Dec 2004 04:24:30 +0000 (04:24 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 28 Dec 2004 04:24:30 +0000 (04:24 +0000)
PR driver/16118
* doc/invoke.texi: Document the interaction between -save-temps
and -x.

From-SVN: r92658

gcc/ChangeLog
gcc/doc/invoke.texi

index 66264fb33a8a83d39921656feca8472890d59471..8cc43d3097329f493a010d99cc006c231255a042 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-27  Roger Sayle  <roger@eyesopen.com>
+
+       PR driver/16118
+       * doc/invoke.texi: Document the interaction between -save-temps
+       and -x.
+
 2004-12-27  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/rs6000.c (rs6000_eliminate_indexed_memrefs):
index 5ba632e7561b9f70c356160dd330981a71270add..e230f45e7893a1e05d2ed130d81485c84297c45a 100644 (file)
@@ -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