From f105cb5bbd87361c1b3ffc10bf10549bf9533578 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Thu, 1 May 2014 10:41:41 -0700 Subject: [PATCH] /bin/cc command modified to use SmallerC compiler by default (not LCC). For LCC, please use /bin/lcc instead. I believe SmallerC is mature enough to try to use it as a primary compiler. System include files might need some changes (ifdefs) to adapt. --- src/cmd/cc/Makefile | 2 +- src/cmd/cc/cc.c | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/cmd/cc/Makefile b/src/cmd/cc/Makefile index ded7034..b54ffcf 100644 --- a/src/cmd/cc/Makefile +++ b/src/cmd/cc/Makefile @@ -26,4 +26,4 @@ clean: install: all install cc $(DESTDIR)/bin/ install cc $(DESTDIR)/bin/scc - install cc $(DESTDIR)/bin/srcc + install cc $(DESTDIR)/bin/lcc diff --git a/src/cmd/cc/cc.c b/src/cmd/cc/cc.c index b008e09..1c30ede 100644 --- a/src/cmd/cc/cc.c +++ b/src/cmd/cc/cc.c @@ -449,17 +449,16 @@ main(int argc, char *argv[]) pass0 = LIBEXECDIR "/smallc"; incdir = STDINC "/smallc"; - } else if (strcmp ("srcc", progname) == 0) { - /* Smaller C. */ - mode = MODE_SMALLERC; - cppadd[0] = "-D__SMALLER_C__"; - pass0 = LIBEXECDIR "/smlrc"; - incdir = STDINC "/smallerc"; - } else { + } else if (strcmp ("lcc", progname) == 0) { /* LCC: retargetable C compiler. */ mode = MODE_LCC; cppadd[0] = "-D__LCC__"; pass0 = LIBEXECDIR "/lccom"; + } else { + /* Smaller C. */ + mode = MODE_SMALLERC; + cppadd[0] = "-D__SMALLER_C__"; + pass0 = LIBEXECDIR "/smlrc"; } if (argc == 1)