[PATCH] Fix -E handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sparse accepts -E[anything] as directive to preprocess only. On some mips
targets -EL slips into command line resulting in 400-800M logs with
preprocessing results :^) Accept '-E' only from now.

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

 lib.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/lib.c
+++ b/lib.c
@@ -252,7 +252,8 @@ static char **handle_switch_D(char *arg, char **next)
 
 static char **handle_switch_E(char *arg, char **next)
 {
-	preprocess_only = 1;
+	if (arg[1] == '\0')
+		preprocess_only = 1;
 	return next;
 }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux