summaryrefslogtreecommitdiff
path: root/sys/src/cmd/qc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-30 19:11:16 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-30 19:11:16 +0200
commit4f33c88a51587681b7be1ae57cfbc43b627c6bc4 (patch)
tree25560404dc80007e5dc268811242c9071f6a1017 /sys/src/cmd/qc
parentfcc5e75d07e5bc6cb3ddac6d9a437e7ec62d0d95 (diff)
import updated compilers from sources
Diffstat (limited to 'sys/src/cmd/qc')
-rw-r--r--sys/src/cmd/qc/gc.h4
-rw-r--r--sys/src/cmd/qc/txt.c3
2 files changed, 5 insertions, 2 deletions
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;