summaryrefslogtreecommitdiff
path: root/devel/sdcc/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/sdcc/files')
-rw-r--r--devel/sdcc/files/asxxxx.diff46
-rw-r--r--devel/sdcc/files/patch-aa51
-rw-r--r--devel/sdcc/files/patch-ab19
-rw-r--r--devel/sdcc/files/patch-ac19
-rw-r--r--devel/sdcc/files/patch-ad65
5 files changed, 200 insertions, 0 deletions
diff --git a/devel/sdcc/files/asxxxx.diff b/devel/sdcc/files/asxxxx.diff
new file mode 100644
index 000000000000..8b5348a98b9b
--- /dev/null
+++ b/devel/sdcc/files/asxxxx.diff
@@ -0,0 +1,46 @@
+--- asxxxx/i51mch.c.orig Mon Jun 28 23:27:59 1999
++++ asxxxx/i51mch.c Mon Jun 28 23:47:41 1999
+@@ -389,8 +389,8 @@
+ v1 = -3;
+ else
+ v1 = e1.e_addr - dot.s_addr - 1;
+- /* if ((v1 < -128) || (v1 > 127))
+- aerr(); */
++ if (((v1 < -128) || (v1 > 127)) && pass > 0)
++ aerr();
+ outab(v1);
+ } else {
+ outrb(&e1, R_PCR);
+@@ -408,8 +408,8 @@
+ v1 = -2;
+ else
+ v1 = e1.e_addr - dot.s_addr - 1;
+- /* if ((v1 < -128) || (v1 > 127))
+- aerr();*/
++ if (((v1 < -128) || (v1 > 127)) && pass > 0)
++ aerr();
+ outab(v1);
+ } else {
+ outrb(&e1, R_PCR);
+@@ -463,8 +463,8 @@
+ v1 = -3;
+ else
+ v1 = e1.e_addr - dot.s_addr - 1;
+- /* if ((v1 < -128) || (v1 > 127))
+- aerr(); */
++ if (((v1 < -128) || (v1 > 127)) && pass > 0)
++ aerr();
+ outab(v1);
+ } else {
+ outrb(&e1, R_PCR);
+@@ -500,8 +500,8 @@
+ v1 = -3;
+ else
+ v1 = e1.e_addr - dot.s_addr - 1;
+- /* if ((v1 < -128) || (v1 > 127))
+- aerr(); */
++ if (((v1 < -128) || (v1 > 127)) && pass > 0)
++ aerr();
+ outab(v1);
+ } else {
+ outrb(&e1, R_PCR);
diff --git a/devel/sdcc/files/patch-aa b/devel/sdcc/files/patch-aa
new file mode 100644
index 000000000000..a6b3b410cf01
--- /dev/null
+++ b/devel/sdcc/files/patch-aa
@@ -0,0 +1,51 @@
+diff -c -r ../sdcc218Ma.orig/cpp/cpplib.c cpp/cpplib.c
+*** ../sdcc218Ma.orig/cpp/cpplib.c Wed May 26 15:06:08 1999
+--- cpp/cpplib.c Wed Aug 25 12:51:57 1999
+***************
+*** 7452,7458 ****
+ #if defined(bsd4_4)
+ extern const char *const sys_errlist[];
+ #else
+! #if !defined(linux)
+ extern char *sys_errlist[];
+ #endif
+ #endif
+--- 7452,7458 ----
+ #if defined(bsd4_4)
+ extern const char *const sys_errlist[];
+ #else
+! #if !defined(linux) && !defined(__FreeBSD__)
+ extern char *sys_errlist[];
+ #endif
+ #endif
+diff -c -r ../sdcc218Ma.orig/gc/mark.c gc/mark.c
+*** ../sdcc218Ma.orig/gc/mark.c Mon Nov 16 04:59:54 1998
+--- gc/mark.c Wed Aug 25 12:44:35 1999
+***************
+*** 653,659 ****
+--- 653,663 ----
+ # ifdef MSWIN32
+ void __cdecl GC_push_one(p)
+ # else
++ # if __FreeBSD__
++ void _GC_push_one(p)
++ # else
+ void GC_push_one(p)
++ # endif
+ # endif
+ word p;
+ {
+diff -c -r ../sdcc218Ma.orig/sdcc.src/SDCCicode.c sdcc.src/SDCCicode.c
+diff -c -r ../sdcc218Ma.orig/sdcc.src/SDCCval.c sdcc.src/SDCCval.c
+*** ../sdcc218Ma.orig/sdcc.src/SDCCval.c Thu Jul 1 13:07:16 1999
+--- sdcc.src/SDCCval.c Wed Aug 25 18:08:18 1999
+***************
+*** 290,296 ****
+
+ /* if hex or octal then set the unsigned flag */
+ if ( hex || octal ) {
+- SPEC_USIGN(val->type) = 1 ;
+ sscanf(s,scanFmt,&sval);
+ } else
+ sval = atol(s);
+--- 290,295 ----
diff --git a/devel/sdcc/files/patch-ab b/devel/sdcc/files/patch-ab
new file mode 100644
index 000000000000..ea74f26293f3
--- /dev/null
+++ b/devel/sdcc/files/patch-ab
@@ -0,0 +1,19 @@
+*** configure.orig Thu May 27 14:51:34 1999
+--- configure Thu Aug 26 18:15:36 1999
+***************
+*** 1075,1081 ****
+ # ./install, which can be erroneously created by make from ./install.sh.
+ echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+ echo "configure:1078: checking for a BSD compatible install" >&5
+! if test -z "$INSTALL"; then
+ if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+--- 1075,1081 ----
+ # ./install, which can be erroneously created by make from ./install.sh.
+ echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+ echo "configure:1078: checking for a BSD compatible install" >&5
+! if true; then
+ if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
diff --git a/devel/sdcc/files/patch-ac b/devel/sdcc/files/patch-ac
new file mode 100644
index 000000000000..bcfd3c1d5d2d
--- /dev/null
+++ b/devel/sdcc/files/patch-ac
@@ -0,0 +1,19 @@
+*** s51.src/configure.orig Thu Aug 26 18:13:19 1999
+--- s51.src/configure Thu Aug 26 18:13:49 1999
+***************
+*** 812,818 ****
+ # ./install, which can be erroneously created by make from ./install.sh.
+ echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+ echo "configure:815: checking for a BSD compatible install" >&5
+! if test -z "$INSTALL"; then
+ if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+--- 812,818 ----
+ # ./install, which can be erroneously created by make from ./install.sh.
+ echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+ echo "configure:815: checking for a BSD compatible install" >&5
+! if true ; then
+ if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
diff --git a/devel/sdcc/files/patch-ad b/devel/sdcc/files/patch-ad
new file mode 100644
index 000000000000..824a1e6ba545
--- /dev/null
+++ b/devel/sdcc/files/patch-ad
@@ -0,0 +1,65 @@
+*** sdcc51lib/Makefile.in.orig Thu Aug 26 18:55:13 1999
+--- sdcc51lib/Makefile.in Thu Aug 26 18:57:01 1999
+***************
+*** 63,69 ****
+
+ models:
+ for model in $(MODELS); do \
+! mkdir $$model; \
+ $(MAKE) CFLAGS="$(CFLAGS) --model-$$model" objects; \
+ mv *.rel $$model; \
+ done
+--- 63,69 ----
+
+ models:
+ for model in $(MODELS); do \
+! $(INSTALL) -d -m 755 $$model; \
+ $(MAKE) CFLAGS="$(CFLAGS) --model-$$model" objects; \
+ mv *.rel $$model; \
+ done
+***************
+*** 71,80 ****
+ # Compiling and installing everything and runing test
+ # ---------------------------------------------------
+ install: installdirs
+! $(CP) *.c $(datadir)/sdcc51lib/
+ for model in $(MODELS); do \
+ [ -d $$model ] || $(MAKE) all; \
+! $(CP) $$model/*.rel *.lib $(datadir)/sdcc51lib/$$model/; \
+ done
+
+
+--- 71,80 ----
+ # Compiling and installing everything and runing test
+ # ---------------------------------------------------
+ install: installdirs
+! $(INSTALL) -c -m 644 *.c $(datadir)/sdcc51lib/
+ for model in $(MODELS); do \
+ [ -d $$model ] || $(MAKE) all; \
+! $(INSTALL) -c -m 644 $$model/*.rel *.lib $(datadir)/sdcc51lib/$$model/; \
+ done
+
+
+***************
+*** 100,109 ****
+ # Creating installation directories
+ # ---------------------------------
+ installdirs:
+! [ -d $(datadir)/sdcc51lib ] || mkdir -p $(datadir)/sdcc51lib
+ for model in $(MODELS); do \
+ [ -d $(datadir)/sdcc51lib/$$model ] || \
+! mkdir -p $(datadir)/sdcc51lib/$$model; \
+ done
+
+
+--- 100,109 ----
+ # Creating installation directories
+ # ---------------------------------
+ installdirs:
+! [ -d $(datadir)/sdcc51lib ] || $(INSTALL) -d -m 755 $(datadir)/sdcc51lib
+ for model in $(MODELS); do \
+ [ -d $(datadir)/sdcc51lib/$$model ] || \
+! $(INSTALL) -d -m 755 $(datadir)/sdcc51lib/$$model; \
+ done
+
+