From 4f33c88a51587681b7be1ae57cfbc43b627c6bc4 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 30 Jul 2012 19:11:16 +0200 Subject: import updated compilers from sources --- sys/src/cmd/qc/gc.h | 4 ++-- sys/src/cmd/qc/txt.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/src/cmd/qc') diff --git a/sys/src/cmd/qc/gc.h b/sys/src/cmd/qc/gc.h index c130a6139..0ba612311 100644 --- a/sys/src/cmd/qc/gc.h +++ b/sys/src/cmd/qc/gc.h @@ -57,7 +57,7 @@ struct Prog struct Case { Case* link; - long val; + vlong val; long label; char def; char isv; @@ -66,7 +66,7 @@ struct Case struct C1 { - long val; + vlong val; long label; }; diff --git a/sys/src/cmd/qc/txt.c b/sys/src/cmd/qc/txt.c index 1c6f4d7f8..e5f96fb42 100644 --- a/sys/src/cmd/qc/txt.c +++ b/sys/src/cmd/qc/txt.c @@ -15,6 +15,7 @@ ginit(void) thestring = "power"; exregoffset = REGEXT; exfregoffset = FREGEXT; + newvlongcode = 1; listinit(); nstring = 0; mnstring = 0; @@ -27,6 +28,8 @@ ginit(void) lastp = P; tfield = types[TLONG]; + typeswitch = typechlv; + zprog.link = P; zprog.as = AGOK; zprog.reg = NREG; -- cgit v1.2.3