Hi ports -- Attached is an update to SDCC. I don't much use it any more, so testing appreciated.
Relevant changelog is here: http://sdcc.sourceforge.net/index.php#News ~Brian
Index: Makefile =================================================================== RCS file: /cvs/ports/devel/sdcc/Makefile,v retrieving revision 1.25 diff -u -p -r1.25 Makefile --- Makefile 14 Nov 2018 20:48:21 -0000 1.25 +++ Makefile 9 Dec 2018 20:16:26 -0000 @@ -5,9 +5,8 @@ BROKEN-sparc64= illegal operands buildin BROKEN-alpha= sdcc segfaults when building the device library BROKEN-aarch64= *** BFD does not support target aarch64-unknown-openbsd6.2. -DISTNAME= sdcc-src-3.7.0 +DISTNAME= sdcc-src-3.8.0 PKGNAME= ${DISTNAME:S/-src//} -REVISION= 1 EXTRACT_SUFX= .tar.bz2 CATEGORIES= devel @@ -16,7 +15,8 @@ MAINTAINER= Brian Callahan <bcallah@open # GPLv2+ PERMIT_PACKAGE_CDROM= Yes -WANTLIB= c curses m ${COMPILER_LIBCXX} readline z + +WANTLIB += ${COMPILER_LIBCXX} c m readline z MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sdcc/} @@ -48,6 +48,6 @@ MAKE_ENV= AUTOCONF_VERSION="${AUTOCONF_ AUTOCONF_VERSION= 2.69 AUTOMAKE_VERSION= 1.11 -WRKDIST= ${WRKDIR}/sdcc +WRKDIST= ${WRKDIR}/${PKGNAME} .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/sdcc/distinfo,v retrieving revision 1.7 diff -u -p -r1.7 distinfo --- distinfo 7 Mar 2018 21:34:43 -0000 1.7 +++ distinfo 9 Dec 2018 20:16:26 -0000 @@ -1,2 +1,2 @@ -SHA256 (sdcc-src-3.7.0.tar.bz2) = hU1HCUaYsGFC3z1fxka7VA1JerQHOtLwUbjsIUHflI4= -SIZE (sdcc-src-3.7.0.tar.bz2) = 17944920 +SHA256 (sdcc-src-3.8.0.tar.bz2) = szFmjet72DLv0RIFLlsO0jE9tkGpIr05KAum1HrbuyE= +SIZE (sdcc-src-3.8.0.tar.bz2) = 18987862 Index: patches/patch-sim_ucsim_cmd_src_Makefile_in =================================================================== RCS file: /cvs/ports/devel/sdcc/patches/patch-sim_ucsim_cmd_src_Makefile_in,v retrieving revision 1.1 diff -u -p -r1.1 patch-sim_ucsim_cmd_src_Makefile_in --- patches/patch-sim_ucsim_cmd_src_Makefile_in 7 Mar 2018 21:34:43 -0000 1.1 +++ patches/patch-sim_ucsim_cmd_src_Makefile_in 9 Dec 2018 20:16:26 -0000 @@ -21,7 +21,7 @@ Index: sim/ucsim/cmd.src/Makefile.in # My rules # -------- -@@ -116,7 +116,7 @@ $(top_builddir)/libcmd.a: $(OBJECTS) $(LOCAL_OBJECTS) +@@ -116,12 +116,12 @@ $(top_builddir)/libcmd.a: $(OBJECTS) $(LOCAL_OBJECTS) .cc.o: $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@ @@ -29,4 +29,10 @@ Index: sim/ucsim/cmd.src/Makefile.in +cmdpars.h: cmdpars.cc cmdpars.cc: cmdpars.y - $(YACC) -d -o $@ $< + $(YACC) -d $< + mv y.tab.c $*.cc +- mv y.tab.h $*.hh ++ mv y.tab.h $*.h + + .l.cc: + rm -f $@ Index: patches/patch-sim_ucsim_cmd_src_cmdlex_cc =================================================================== RCS file: patches/patch-sim_ucsim_cmd_src_cmdlex_cc diff -N patches/patch-sim_ucsim_cmd_src_cmdlex_cc --- patches/patch-sim_ucsim_cmd_src_cmdlex_cc 7 Mar 2018 21:34:43 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ -$OpenBSD: patch-sim_ucsim_cmd_src_cmdlex_cc,v 1.1 2018/03/07 21:34:43 bcallah Exp $ - -Allow use of in-base yacc. - -Index: sim/ucsim/cmd.src/cmdlex.cc ---- sim/ucsim/cmd.src/cmdlex.cc.orig -+++ sim/ucsim/cmd.src/cmdlex.cc -@@ -490,7 +490,7 @@ char *yytext; - #include <stdio.h> - //#include <stdint.h> - #include "cmdlexcl.h" --#include "cmdpars.hh" -+#include "cmdpars.h" - - static int uc_yy_check_id(char *token); - static int uc_yy_input(char *buf, int max_size); Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/sdcc/pkg/PLIST,v retrieving revision 1.6 diff -u -p -r1.6 PLIST --- pkg/PLIST 16 Apr 2018 21:09:25 -0000 1.6 +++ pkg/PLIST 9 Dec 2018 20:16:27 -0000 @@ -158,6 +158,11 @@ share/sdcc/include/mcs51/at89s8253.h share/sdcc/include/mcs51/at89x051.h share/sdcc/include/mcs51/at89x51.h share/sdcc/include/mcs51/at89x52.h +share/sdcc/include/mcs51/ax8052.h +share/sdcc/include/mcs51/ax8052f131.h +share/sdcc/include/mcs51/ax8052f142.h +share/sdcc/include/mcs51/ax8052f143.h +share/sdcc/include/mcs51/ax8052f151.h share/sdcc/include/mcs51/cc1110.h share/sdcc/include/mcs51/cc2430.h share/sdcc/include/mcs51/cc2510fx.h @@ -719,6 +724,7 @@ share/sdcc/lib/small/liblonglong.lib share/sdcc/lib/small/libsdcc.lib share/sdcc/lib/small/mcs51.lib share/sdcc/lib/src/ +share/sdcc/lib/src/__assert.c share/sdcc/lib/src/_atof.c share/sdcc/lib/src/_autobaud.c share/sdcc/lib/src/_bp.c @@ -809,15 +815,16 @@ share/sdcc/lib/src/acosf.c share/sdcc/lib/src/aligned_alloc.c share/sdcc/lib/src/asincosf.c share/sdcc/lib/src/asinf.c -share/sdcc/lib/src/assert.c share/sdcc/lib/src/atan2f.c share/sdcc/lib/src/atanf.c share/sdcc/lib/src/atoi.c share/sdcc/lib/src/atol.c share/sdcc/lib/src/atoll.c share/sdcc/lib/src/bpx.c +share/sdcc/lib/src/bsearch.c share/sdcc/lib/src/btowc.c share/sdcc/lib/src/c16rtomb.c +share/sdcc/lib/src/c16stombs.c share/sdcc/lib/src/c32rtomb.c share/sdcc/lib/src/calloc.c share/sdcc/lib/src/ceilf.c @@ -886,6 +893,7 @@ share/sdcc/lib/src/mbrtoc16.c share/sdcc/lib/src/mbrtoc32.c share/sdcc/lib/src/mbrtowc.c share/sdcc/lib/src/mbsinit.c +share/sdcc/lib/src/mbstoc16s.c share/sdcc/lib/src/mbstowcs.c share/sdcc/lib/src/mbtowc.c share/sdcc/lib/src/mcs51/ @@ -7810,6 +7818,8 @@ share/sdcc/lib/src/z80/setjmp.s share/sdcc/lib/src/z80/strcpy.s share/sdcc/lib/src/z80/strlen.s share/sdcc/lib/stm8/ +share/sdcc/lib/stm8-large/ +share/sdcc/lib/stm8-large/stm8.lib share/sdcc/lib/stm8/stm8.lib share/sdcc/lib/tlcs90/ share/sdcc/lib/tlcs90/crt0.rel