diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-08-09 17:31:52 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-09-02 17:33:51 +0200 |
commit | d90c0838c1011e4a12f594e62a194966f52dd4ee (patch) | |
tree | 9bf44536b2f0e9b46aaac9ed0464ecf71fdf84ee | |
parent | 2b96cd804dc7e4b5f6a0aae62c1962bd6b2caae9 (diff) | |
download | sparse-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-x | cgcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |