shithub: scc

Download patch

ref: 6ce01bc2fccd1846db2699a8c3d45b79212a9809
parent: 408195a30834d7d539d45ffdc62834aec429478a
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Feb 10 15:01:27 EST 2017

[cc1] Add missed extern keyword in globals declaration

--- a/cc1/cc1.h
+++ b/cc1/cc1.h
@@ -477,8 +477,8 @@
 extern unsigned curctx;
 extern Symbol *curfun, *zero, *one;
 extern char *infile, *outfile;
-unsigned lineno;
-char filenam[FILENAME_MAX];
+extern unsigned lineno;
+extern char filenam[FILENAME_MAX];
 
 extern Type *voidtype, *pvoidtype, *booltype,
             *uchartype,   *chartype, *schartype,