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 <[EMAIL PROTECTED]>
---

 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to