shithub: scc

Download patch

ref: 2d6e3a3b4fd4aa72d7de54633f737c532405f1ae
parent: e829d4f84d0f89ebd8b1626ad50e5168d9e8a216
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Jun 23 12:19:23 EDT 2016

[cc2] Add float point value holder to node

This is going to be needed if we want to do operations
with the values in the nodes. This is needed in qbe
because some operators are implemented using another
operators, for example unary minus is implemented by
substraction.

--- a/cc2/cc2.h
+++ b/cc2/cc2.h
@@ -165,6 +165,7 @@
 	unsigned char flags;
 	union {
 		TUINT i;
+		TFLOAT f;
 		char reg;
 		char *s;
 		Symbol *sym;