shithub: scc

Download patch

ref: 94a509a154147d355d23b9d8ec0df9f523ae0b58
parent: 045135ee7f1ed7f646321a08fed76edeff108eb8
author: Quentin Rameau <quinq@fifth.space>
date: Sat Jun 4 09:21:47 EDT 2016

[driver] add w flag

And keep scc usage under 80 output columns

--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -353,8 +353,8 @@
 static void
 usage(void)
 {
-	die("usage: %s [-E|-kS] [-m arch] [-o binout] [-D macro[=val]]... "
-	    "[-I dir]... file ...", argv0);
+	die("usage: %s [-E|-kS] [-w] [-m arch] [-o binout]\n"
+	    "       [-D macro[=val]]... [-I dir]... file...", argv0);
 }
 
 int
@@ -388,6 +388,9 @@
 		break;
 	case 'o':
 		tools[LD].outfile = EARGF(usage());
+		break;
+	case 'w':
+		addarg(CC1, "-w");
 		break;
 	case '-':
 		fprintf(stderr,
--