shithub: scc

Download patch

ref: 6234ca1a96d4ff39e0e236337008886684af6237
parent: 8fd6d549ca3d5dc3072327e31f85e2ef9b8de088
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Jan 7 16:22:52 EST 2016

Convert pcompare() to use new fields of type

--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -7,6 +7,8 @@
 #include "../inc/sizes.h"
 #include "cc1.h"
 
+#define XCHG(lp, rp, np) (np = lp, lp = rp, rp = np)
+
 Node *expr(void);
 
 bool
@@ -287,8 +289,6 @@
 	}
 	return castcode(np, newtp);
 }
-
-#define XCHG(lp, rp, np) (np = lp, lp = rp, rp = np)
 
 static Node *
 parithmetic(char op, Node *lp, Node *rp)