linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix -E handling
@ 2007-06-12 10:37 Alexey Dobriyan
  2007-06-14  0:01 ` Josh Triplett
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2007-06-12 10:37 UTC (permalink / raw)
  To: linux-sparse

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@gmail.com>
---

 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;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix -E handling
  2007-06-12 10:37 [PATCH] Fix -E handling Alexey Dobriyan
@ 2007-06-14  0:01 ` Josh Triplett
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Triplett @ 2007-06-14  0:01 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linux-sparse

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

Alexey Dobriyan wrote:
> 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.

Applied, thanks.

- Josh Triplett



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-14  0:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-12 10:37 [PATCH] Fix -E handling Alexey Dobriyan
2007-06-14  0:01 ` Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).