scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 4d5fd1a5c0e592bc7ead90ff8b0e40ef71ab7391
parent a67690e7a6ec3eb6deadc153711b4384db6f2002
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 23 Jun 2016 16:19:23 +0200

[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.

Diffstat:
Mcc2/cc2.h | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

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