From: Joel Rosdahl Date: Sat, 27 Feb 2010 11:28:21 +0000 (+0100) Subject: Bail out on too hard compiler option -save-temps X-Git-Tag: v3.0pre0~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd9f6cd234f20fedda6cb839859a526e5bbdae43;p=thirdparty%2Fccache.git Bail out on too hard compiler option -save-temps --- diff --git a/NEWS b/NEWS index 64f06777b..5ec7caae6 100644 --- 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. diff --git a/ccache.c b/ccache.c index e65a2089c..2c23d342b 100644 --- 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);