summaryrefslogtreecommitdiff
path: root/lang/pforth/patches/patch-aa
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-06-20 06:53:40 +0000
committerjtb <jtb@pkgsrc.org>2001-06-20 06:53:40 +0000
commitbe19c6c2ef283b78daa7acd94ec21b62161fcf56 (patch)
tree78e337bffa0931de989dc107bd704ec005e384a0 /lang/pforth/patches/patch-aa
parent37dab3592a93d630eb655cc817ee06d19d144745 (diff)
downloadpkgsrc-be19c6c2ef283b78daa7acd94ec21b62161fcf56.tar.gz
Update to pforth-21.
V20 - Expand PAD for ConvertNumberToText so "-1 binary .s" doesn't crash. Thank you Michael Connor of Vancouver for reporting this bug. - Removed FDROP in REPRESENT to fix stack underflow after "0.0 F.". Thank you Jim Rosenow of Minnesota for reporting this bug. - Changed pfCharToLower to function to prevent macro expansion bugs under VXWORKS Thank you Jim Rosenow of Minnesota for reporting this bug. - "0.0 F~" now checks actual binary encoding of floats. Before this it used to just compare value which was incorrect. Now "0.0 -0.0 0.0 F~" returns FALSE. - Fixed definition of INPUT$ in tutorial. Thank you Hampton Miller of California for reporting this bug. - Added support for producing a target dictionary with a different Endian-ness than the host CPU. See PF_BIG_ENDIAN_DIC and PF_LITTLE_ENDIAN_DIC. - PForth kernel now comes up in a mode that uses BASE for numeric input when started with "-i" option. It used to always consider numeric input as HEX. Initial BASE is decimal. V21 - Fixed some compiler warnings.
Diffstat (limited to 'lang/pforth/patches/patch-aa')
-rw-r--r--lang/pforth/patches/patch-aa42
1 files changed, 30 insertions, 12 deletions
diff --git a/lang/pforth/patches/patch-aa b/lang/pforth/patches/patch-aa
index 10bcda41781..94bfcabeb05 100644
--- a/lang/pforth/patches/patch-aa
+++ b/lang/pforth/patches/patch-aa
@@ -1,31 +1,47 @@
-$NetBSD: patch-aa,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $
+$NetBSD: patch-aa,v 1.2 2001/06/20 06:53:41 jtb Exp $
---- makefile.orig Tue Apr 7 00:43:01 1998
+--- makefile.orig Mon Apr 6 17:13:12 1998
+++ makefile
-@@ -27,7 +27,7 @@
+@@ -12,7 +12,7 @@
+ OBJECTDIR = objects
+ EMBOBJECTDIR = embobjects
+
+-FULL_WARNINGS = -O2 \
++FULL_WARNINGS = \
+ -fsigned-char \
+ -fno-builtin \
+ -fno-unroll-loops \
+@@ -26,8 +26,9 @@
+ -Wmissing-prototypes \
-Wmissing-declarations
- CCOPTS = -DPF_SUPPORT_FP $(FULL_WARNINGS)
+-CCOPTS = -DPF_SUPPORT_FP $(FULL_WARNINGS)
-COMPILER = gcc
-+COMPILER = $(CC)
++CFLAGS += -DPF_SUPPORT_FP $(FULL_WARNINGS)
++
++CDEFS = -DPF_DIC=\"${PREFIX}/lib/pforth/pforth.dic\"
EMBCCOPTS = -DPF_NO_INIT -DPF_NO_MALLOC -DPF_NO_FILEIO \
-DPF_NO_CLIB -DPF_STATIC_DIC
-@@ -44,10 +44,10 @@
- COMPILE = $(COMPILER) $(CCOPTS) $(CDEFS)
+@@ -41,13 +42,13 @@
+ PFOBJS = ${PFTEMP:${SOURCEDIR}/%=${OBJECTDIR}/%}
+ PFEMBOBJS = ${PFTEMP:${SOURCEDIR}/%=${EMBOBJECTDIR}/%}
+
+-COMPILE = $(COMPILER) $(CCOPTS) $(CDEFS)
++COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(CDEFS)
${OBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c
- $(COMPILE) -O -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c
-
-+ $(COMPILE) $(CFLAGS) -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c
++ $(COMPILE) -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c
+
${EMBOBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c ${SOURCEDIR}/pfdicdat.h
- $(COMPILE) -O -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS)
-+ $(COMPILE) $(CFLAGS) -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS)
++ $(COMPILE) -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS)
all: pforth pforth.dic
-@@ -62,26 +62,26 @@
+@@ -62,26 +63,26 @@
echo ${PFOBJS}
echo "EMBEDDED OBJECT FILES ------------------"
echo ${PFEMBOBJS}
@@ -33,7 +49,8 @@ $NetBSD: patch-aa,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $
+
# build pforth by compiling 'C' source
pforth: $(PFINCLUDES) $(PFOBJS)
- $(COMPILER) $(PFOBJS) -lm -o pforth
+- $(COMPILER) $(PFOBJS) -lm -o pforth
++ $(CC) $(PFOBJS) -lm -o pforth
# build basic dictionary by running newly built pforth and including system.fth
pforth.dic: pforth
@@ -50,8 +67,9 @@ $NetBSD: patch-aa,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $
pfemb: $(PFINCLUDES) $(PFEMBOBJS)
- $(COMPILER) $(PFEMBOBJS) -lm -o pfemb
+- $(COMPILER) $(PFEMBOBJS) -lm -o pfemb
-
++ $(CC) $(PFEMBOBJS) -lm -o pfemb
+
clean:
rm -f $(PFOBJS) $(PFEMBOBJS) pforth *.dic core ${SOURCEDIR}/pfdicdat.h pfemb