aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/invoke.texi6
2 files changed, 12 insertions, 0 deletions
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 <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):
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