aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-08-09 17:31:52 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-09-02 17:33:51 +0200
commitd90c0838c1011e4a12f594e62a194966f52dd4ee (patch)
tree9bf44536b2f0e9b46aaac9ed0464ecf71fdf84ee
parent2b96cd804dc7e4b5f6a0aae62c1962bd6b2caae9 (diff)
downloadsparse-d90c0838c1011e4a12f594e62a194966f52dd4ee.tar.gz
cgcc: fix wrong processing of -MD & -MMD
In commit bb1bf7485 ("cgcc: gendeps for -MM, -MD & -MMD too"), the flags -MD & -MMD were treated as -M (and -MM): inhibit calling the checker/sparse because the command is only used to generate dependencies. But while this behaviour is correct for -MM, it's not for -MD & -MMD since these flags are only used to generate the dependencies *in addition* to the normal processing. Fixes: bb1bf748580d1794f8da7200ba83ccfc2f2f3a8a Reported-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rwxr-xr-xcgcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgcc b/cgcc
index add35cba..122f6e27 100755
--- a/cgcc
+++ b/cgcc
@@ -52,7 +52,7 @@ while (@ARGV) {
$m32 = 1 if /^-m32$/;
$m64 = 1 if /^-m64$/;
- $gendeps = 1 if /^-(M|MM|MD|MMD)$/;
+ $gendeps = 1 if /^-(M|MM)$/;
if (/^-target=(.*)$/) {
$check .= &add_specs ($1);