summaryrefslogtreecommitdiff
path: root/devel/lcc/patches
diff options
context:
space:
mode:
authorgmcgarry <gmcgarry>2001-07-21 02:51:35 +0000
committergmcgarry <gmcgarry>2001-07-21 02:51:35 +0000
commitc0b07488acd0e00e3cede6f705bbe463c2468386 (patch)
tree597e5c56723b7b0eb1538252b462b7507586eb81 /devel/lcc/patches
parent8e6ce2e0a6aeb46e31f676ff77a99b69f606fc8e (diff)
downloadpkgsrc-c0b07488acd0e00e3cede6f705bbe463c2468386.tar.gz
Import of lcc-4.1: retargetable ANSI C compiler
Diffstat (limited to 'devel/lcc/patches')
-rw-r--r--devel/lcc/patches/patch-aa46
-rw-r--r--devel/lcc/patches/patch-ab21
-rw-r--r--devel/lcc/patches/patch-ac46
3 files changed, 113 insertions, 0 deletions
diff --git a/devel/lcc/patches/patch-aa b/devel/lcc/patches/patch-aa
new file mode 100644
index 00000000000..bc287d65448
--- /dev/null
+++ b/devel/lcc/patches/patch-aa
@@ -0,0 +1,46 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/21 02:51:36 gmcgarry Exp $
+--- makefile.orig Tue Jun 5 19:16:00 2001
++++ makefile Tue Jun 5 19:18:07 2001
+@@ -65,7 +65,8 @@
+ $Bsparc$O \
+ $Bstab$O \
+ $Bx86$O \
+- $Bx86linux$O
++ $Bx86linux$O \
++ $Bx86bsd$O
+
+ $Brcc$E:: $Bmain$O $Blibrcc$A $(EXTRAOBJS)
+ $(LD) $(LDFLAGS) -o $@ $Bmain$O $(EXTRAOBJS) $Blibrcc$A $(EXTRALIBS)
+@@ -111,6 +112,7 @@
+ $Bsparc$O: $Bsparc.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bsparc.c
+ $Bx86$O: $Bx86.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bx86.c
+ $Bx86linux$O: $Bx86linux.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bx86linux.c
++$Bx86bsd$O: $Bx86bsd.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bx86bsd.c
+
+ $Bdagcheck.c: $Blburg$E src/dagcheck.md; $Blburg src/dagcheck.md $@
+ $Balpha.c: $Blburg$E src/alpha.md; $Blburg src/alpha.md $@
+@@ -118,6 +120,7 @@
+ $Bsparc.c: $Blburg$E src/sparc.md; $Blburg src/sparc.md $@
+ $Bx86.c: $Blburg$E src/x86.md; $Blburg src/x86.md $@
+ $Bx86linux.c: $Blburg$E src/x86linux.md; $Blburg src/x86linux.md $@
++$Bx86bsd.c: $Blburg$E src/x86bsd.md; $Blburg src/x86bsd.md $@
+
+ $Brcc.h: src/rcc.asdl; $(ASDL_HOME)/bin/asdlGen --c -d $B src/rcc.asdl
+ $Brcc$O: $Brcc.h; $(CC) $(CFLAGS) -c -Isrc -I$B -I$(ASDL_HOME)/include/asdlGen -o $@ $Brcc.c
+@@ -231,7 +234,7 @@
+
+ clean:: testclean
+ $(RM) $B*$O
+- $(RM) $Bdagcheck.c $Balpha.c $Bmips.c $Bx86.c $Bsparc.c $Bx86linux.c $Bgram.c
++ $(RM) $Bdagcheck.c $Balpha.c $Bmips.c $Bx86.c $Bsparc.c $Bx86linux.c $Bx86bsd.c $Bgram.c
+ $(RM) $Brcc.c $Brcc.h
+ $(RM) $Brcc1$E $Brcc1$E $B1rcc$E $B2rcc$E
+ $(RM) $B*.ilk
+@@ -274,6 +277,7 @@
+ $Bmips.c \
+ $Bsparc.c \
+ $Bx86linux.c \
++ $Bx86bsd.c \
+ $Bx86.c
+
+ C=$Blcc -A -d0.6 -Wo-lccdir=$(BUILDDIR) -Isrc -I$(BUILDDIR)
diff --git a/devel/lcc/patches/patch-ab b/devel/lcc/patches/patch-ab
new file mode 100644
index 00000000000..ce95857c427
--- /dev/null
+++ b/devel/lcc/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/07/21 02:51:36 gmcgarry Exp $
+--- src/bind.c.orig Tue Sep 22 06:34:26 1998
++++ src/bind.c Thu Jun 7 19:41:37 2001
+@@ -2,7 +2,7 @@
+ extern Interface alphaIR;
+ extern Interface mipsebIR, mipselIR;
+ extern Interface sparcIR, solarisIR;
+-extern Interface x86IR, x86linuxIR;
++extern Interface x86IR, x86linuxIR, x86bsdIR, x86bsdelfIR;
+ extern Interface symbolicIR, symbolic64IR;
+ extern Interface nullIR;
+ extern Interface bytecodeIR;
+@@ -14,6 +14,8 @@
+ "sparc/solaris", &solarisIR,
+ "x86/win32", &x86IR,
+ "x86/linux", &x86linuxIR,
++ "x86/netbsd", &x86bsdIR,
++ "x86/netbsdelf", &x86bsdelfIR,
+ "symbolic/osf", &symbolic64IR,
+ "symbolic/irix", &symbolicIR,
+ "symbolic", &symbolicIR,
diff --git a/devel/lcc/patches/patch-ac b/devel/lcc/patches/patch-ac
new file mode 100644
index 00000000000..318664bb0a4
--- /dev/null
+++ b/devel/lcc/patches/patch-ac
@@ -0,0 +1,46 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/07/21 02:51:36 gmcgarry Exp $
+--- etc/lcc.c.orig Tue Aug 22 19:56:56 2000
++++ etc/lcc.c Tue Aug 22 21:24:43 2000
+@@ -552,6 +552,20 @@
+ exit(n = 100);
+ }
+
++/* parse -W[alp] argument, splitting at commas, a la gcc */
++static List wappend (char *warg, List lst) {
++ if (*warg != ',') return append (warg, lst);
++ warg++;
++ do {
++ char *s = warg;
++ for (; *warg && *warg != ','; warg++)
++ ;
++ if (*warg) *warg++= '\0';
++ if (*s) lst = append (s, lst);
++ } while (*warg);
++ return lst;
++}
++
+ /* opt - process option in arg */
+ static void opt(char *arg) {
+ switch (arg[1]) { /* multi-character options */
+@@ -563,7 +577,7 @@
+ return;
+ break;
+ case 'p':
+- plist = append(&arg[3], plist);
++ plist = wappend(&arg[3], plist);
+ return;
+ case 'f':
+ if (strcmp(&arg[3], "-C") || option("-b")) {
+@@ -572,10 +586,10 @@
+ }
+ break; /* and fall thru */
+ case 'a':
+- alist = append(&arg[3], alist);
++ alist = wappend(&arg[3], alist);
+ return;
+ case 'l':
+- llist[0] = append(&arg[3], llist[0]);
++ llist[0] = wappend(&arg[3], llist[0]);
+ return;
+ }
+ fprintf(stderr, "%s: %s ignored\n", progname, arg);