ref: 3bd6fb1ee5670440da8932a75dfe2ad114c30967
parent: c89ff5601ede9a73fb328ae0aa8bfdfa8cfe7965
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Aug 17 03:44:49 EDT 2018
Remove USEQBE and MKQBE MKQBE was not used anymore and USEQBE is not needed. Driver/posix still has support for enabling/disabling qbe, but it should be removed and use target names for this purpouse.
--- a/config.mk.def
+++ b/config.mk.def
@@ -2,12 +2,6 @@
VERSION = 0.1
## Customize below to fit your system
-# USEQBE selects QBE by default in the targets that support it
-USEQBE = 1
-
-#MKQBE enable build of qbe backends
-MKQBE = 1
-
DRIVER = posix
# Can be c89 or c99
--- a/driver/posix/Makefile
+++ b/driver/posix/Makefile
@@ -32,7 +32,7 @@
mv $$$$.sh $@
config.h:
- PREFIX=$(PREFIX) USEQBE=$(USEQBE) ./config.sh $(SYSLST)
+ PREFIX=$(PREFIX) ./config.sh $(SYSLST)
dep:
$(PROJECTDIR)/mkdep.sh
@@ -40,8 +40,6 @@
clean:
rm -f scc scpp *.o
rm -f $(TARGETS)
-
-distclean:
rm -f config.h
include deps.mk
--- a/driver/posix/config.sh
+++ b/driver/posix/config.sh
@@ -6,12 +6,10 @@
trap "rm -f $$.h" 0 2 3
PREFIX=${PREFIX-$HOME}
-USEQBE=${USEQBE:-1}
echo $@ |
(IFS='- ' read arch abi sys format r
echo \#define PREFIX \"$PREFIX\"
-echo \#define USEQBE $USEQBE
echo \#define ARCH \"$arch\"
echo \#define SYS \"$sys\"
echo \#define ABI \"$abi\"
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -60,7 +60,7 @@
static char *tmpdir;
static size_t tmpdirln;
static struct items objtmp, objout;
-static int Mflag, Eflag, Sflag, cflag, dflag, kflag, sflag, Qflag = USEQBE;
+static int Mflag, Eflag, Sflag, cflag, dflag, kflag, sflag, Qflag = 1; /* TODO: Remove Qflag */
static int devnullfd = -1;
extern int failure;