]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Bail out on too hard compiler option -save-temps
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 27 Feb 2010 11:28:21 +0000 (12:28 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 27 Feb 2010 11:36:41 +0000 (12:36 +0100)
NEWS
ccache.c

diff --git a/NEWS b/NEWS
index 64f06777b690a929e3a0486b2ec3ebaac7ee2e7c..5ec7caae6aa48adf4ddd6e53566fa9661ed9b2d4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -67,8 +67,9 @@ Bug fixes:
 
   - Fixed NFS issues.
 
-  - Bail out on profiling options --coverage, -fprofile-arcs,
-    -fprofile-generate, -fprofile-use and -ftest-coverage.
+  - Bail out on too hard compiler options --coverage, -fprofile-arcs,
+    -fprofile-generate, -fprofile-use, -ftest-coverage and -save-temps. Also
+    bail out on "@file" style options.
 
   - -MD/-MMD options without -MT/-MF are now handled correctly.
 
index e65a2089cc849a66f78e453bb755dda0b2f21021..2c23d342b64d3b6653733977dc6ca9e1e0405193 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1192,6 +1192,7 @@ static void process_args(int argc, char **argv)
                    strcmp(argv[i], "-fprofile-generate") == 0 ||
                    strcmp(argv[i], "-fprofile-use") == 0 ||
                    strcmp(argv[i], "-ftest-coverage") == 0 ||
+                   strcmp(argv[i], "-save-temps") == 0 ||
                    strcmp(argv[i], "-x") == 0) {
                        cc_log("Compiler option %s is unsupported", argv[i]);
                        stats_update(STATS_UNSUPPORTED);