shithub: scc

Download patch

ref: 9693dff4e5f4bf7d6da68dd1a26f71f6d5550640
parent: e1ff5918e33b69a9d16929e59014db4ffe9a1f7d
author: Quentin Rameau <quinq@fifth.space>
date: Thu Feb 16 05:24:51 EST 2017

[cc1] Fix debug declaration

--- a/cc1/fold.c
+++ b/cc1/fold.c
@@ -643,7 +643,6 @@
 simplify(Node *np)
 {
 	Node *p, *l, *r;
-	extern int debug;
 
 	if (!np)
 		return NULL;
--- a/inc/cc.h
+++ b/inc/cc.h
@@ -1,8 +1,9 @@
 /* See LICENSE file for copyright and license details. */
 #include <stddef.h>
 
-#ifndef NDEBUG
 extern int debug;
+
+#ifndef NDEBUG
 #define DBG(...) dbg(__VA_ARGS__)
 #define DBGON() (debug = 1)
 #else