From 58f9abf656936c96b46f227581d398e85dec52ff Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Thu, 9 Jul 2015 13:42:23 -0700 Subject: [PATCH] Bail out on --save-temps, an alias for -save-temps --- NEWS.txt | 2 ++ compopt.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS.txt b/NEWS.txt index 193c52b65..47ba7839a 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -20,6 +20,8 @@ Bug fixes - Let exit handler terminate properly. +- Bail out on compiler option `--save-temps` in addition to `-save-temps`. + - Only log "Disabling direct mode" once when failing to read potential include files. diff --git a/compopt.c b/compopt.c index f774fc16f..e5b3e0a39 100644 --- a/compopt.c +++ b/compopt.c @@ -33,6 +33,7 @@ struct compopt { static const struct compopt compopts[] = { {"--param", TAKES_ARG}, + {"--save-temps", TOO_HARD}, {"--serialize-diagnostics", TAKES_ARG | TAKES_PATH}, {"-A", TAKES_ARG}, {"-D", AFFECTS_CPP | TAKES_ARG | TAKES_CONCAT_ARG}, -- 2.47.2