shithub: scc

Download patch

ref: c466d3870558bbc5f37062e290c316c7095b0ed2
parent: f70a993718ec6158927411dc400ec8138d45ceda
author: FRIGN <dev@frign.de>
date: Wed May 25 10:24:20 EDT 2016

[cc1] Write usage according to POSIX

In general, the notation for flags is:
   -f arg
POSIX explicitly allows
   -farg
so we update the notation accordingly (to the base-notation).
We also indicate that there can be multiple calls to -D.

--- a/cc1/main.c
+++ b/cc1/main.c
@@ -30,8 +30,8 @@
 static void
 usage(void)
 {
-	die("usage: %s [-E] [-Dmacro[=value]] [-Idir] [-w] [-d] [-o output]"
-	    "          [input]\n", argv0);
+	die("usage: %s [-E] [-D macro[=value]] ... [-I dir] [-w] [-d]"
+	    "[-o output] [input]", argv0);
 }
 
 int