pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/sdcc
Module Name: pkgsrc
Committed By: ryoon
Date: Thu Dec 18 15:43:42 UTC 2025
Modified Files:
pkgsrc/devel/sdcc: Makefile distinfo
Added Files:
pkgsrc/devel/sdcc/patches: patch-as_asxxsrc_aslex.c
patch-as_hc08_asmain.c patch-as_hc08_asout.c
patch-as_link_hc08_lkihx.c patch-as_link_hc08_lks19.c
patch-as_link_lkeval.c patch-as_link_mcs51_lkihx.c
patch-as_link_mcs51_lks19.c patch-as_link_z80_lkihx.c
patch-as_link_z80_lks19.c patch-as_mcs51_asmain.c
patch-as_mcs51_asout.c patch-debugger_mcs51_cmd.c
patch-debugger_mcs51_sdcdb.c patch-debugger_mcs51_symtab.c
patch-debugger_mcs51_symtab.h
Log Message:
devel/sdcc: Fix GCC 14 build
* Bump PKGREVISION for symbol name change.
To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 pkgsrc/devel/sdcc/Makefile
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/sdcc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/sdcc/patches/patch-as_asxxsrc_aslex.c \
pkgsrc/devel/sdcc/patches/patch-as_hc08_asmain.c \
pkgsrc/devel/sdcc/patches/patch-as_hc08_asout.c \
pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lkihx.c \
pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lks19.c \
pkgsrc/devel/sdcc/patches/patch-as_link_lkeval.c \
pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lkihx.c \
pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lks19.c \
pkgsrc/devel/sdcc/patches/patch-as_link_z80_lkihx.c \
pkgsrc/devel/sdcc/patches/patch-as_link_z80_lks19.c \
pkgsrc/devel/sdcc/patches/patch-as_mcs51_asmain.c \
pkgsrc/devel/sdcc/patches/patch-as_mcs51_asout.c \
pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_cmd.c \
pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_sdcdb.c \
pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.c \
pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/sdcc/Makefile
diff -u pkgsrc/devel/sdcc/Makefile:1.63 pkgsrc/devel/sdcc/Makefile:1.64
--- pkgsrc/devel/sdcc/Makefile:1.63 Mon Nov 17 11:00:40 2025
+++ pkgsrc/devel/sdcc/Makefile Thu Dec 18 15:43:41 2025
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.63 2025/11/17 11:00:40 wiz Exp $
+# $NetBSD: Makefile,v 1.64 2025/12/18 15:43:41 ryoon Exp $
DISTNAME= sdcc-src-2.8.0
PKGNAME= ${DISTNAME:S/-src//}
-PKGREVISION= 14
+PKGREVISION= 15
CATEGORIES= devel lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sdcc/}
EXTRACT_SUFX= .tar.bz2
@@ -46,6 +46,9 @@ CONFIGURE_ENV+= sdcc_cv_CCggdb="no"
# b[i] = strtol(resp,&resp,16);
# Maybe fix this later.
BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
+# error: initialization of 'const unsigned char *' from incompatible pointer type 'unsigned int *'
+BUILDLINK_TRANSFORM+= rm:-Wall
+CFLAGS+= -Wno-incompatible-pointer-types
.include "../../mk/bsd.prefs.mk"
Index: pkgsrc/devel/sdcc/distinfo
diff -u pkgsrc/devel/sdcc/distinfo:1.21 pkgsrc/devel/sdcc/distinfo:1.22
--- pkgsrc/devel/sdcc/distinfo:1.21 Tue Oct 26 10:19:54 2021
+++ pkgsrc/devel/sdcc/distinfo Thu Dec 18 15:43:41 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2021/10/26 10:19:54 nia Exp $
+$NetBSD: distinfo,v 1.22 2025/12/18 15:43:41 ryoon Exp $
BLAKE2s (sdcc-src-2.8.0.tar.bz2) = 854c361fded0251c002e28936f3c00f4c5efee8349be066039fe6b60e40690d1
SHA512 (sdcc-src-2.8.0.tar.bz2) = 91f43ea275f4c27e5c475a9dbfe5e9c7d5804a530151420473cbc65a48ca15c65a6e38628e0bf927d89cd8ddb6b6030d5d65aa9cba7963e23ac18bde42951fd5
@@ -6,7 +6,23 @@ Size (sdcc-src-2.8.0.tar.bz2) = 3460693
SHA1 (patch-Makefile_in) = 024ed627a88c2d17ac3981c59ec186a8a8ef48d3
SHA1 (patch-aa) = 7ef1d2d005340b0e18039ff14334b889df5b8b3f
SHA1 (patch-as_Makefile_in) = 1077722b49028e583f1cc82a2a027d09d59c71ad
+SHA1 (patch-as_asxxsrc_aslex.c) = 28db37480581003a5bfab1547d91c9fdda0bea13
+SHA1 (patch-as_hc08_asmain.c) = 1f7c959f3b53fca5346e2f4137efe5264f6260b6
+SHA1 (patch-as_hc08_asout.c) = 73d0fbd85725246644ec0f6dfff9b2cc88b6e973
SHA1 (patch-as_link_Makefile_in) = 7e7a596ae5f6293669d1c30eab94215d68067670
+SHA1 (patch-as_link_hc08_lkihx.c) = 0b053eccf32dd25ea9d255bd9a3ea9987497b48c
+SHA1 (patch-as_link_hc08_lks19.c) = ec4713961d70d307ef1f1e6d5f914da30521cfa5
+SHA1 (patch-as_link_lkeval.c) = b740e3e260caa59eb44cb0c03fa4c25abc89f25a
+SHA1 (patch-as_link_mcs51_lkihx.c) = d5c162fccc68c26fc96746718d5294e82ef02643
+SHA1 (patch-as_link_mcs51_lks19.c) = 07bba74c2da4823d5434742f3eea9a40130b85d1
+SHA1 (patch-as_link_z80_lkihx.c) = a2d6987cbccebacc645b8ae9522660d07a70d04e
+SHA1 (patch-as_link_z80_lks19.c) = e45720e6f5180b9af84f55a8dc278702505d584d
+SHA1 (patch-as_mcs51_asmain.c) = aa44f210247015eaa566dab2fb42175e85ffd7e2
+SHA1 (patch-as_mcs51_asout.c) = eca38fd059acfa405d37730b2a0317f1e6810ec7
+SHA1 (patch-debugger_mcs51_cmd.c) = bdfc8098de00ed25010b990d05037a0728924331
+SHA1 (patch-debugger_mcs51_sdcdb.c) = e90197c5ac8926605e257efd65e01aee779936f0
+SHA1 (patch-debugger_mcs51_symtab.c) = a736d6dd6701109e4827e5198286a72810eca289
+SHA1 (patch-debugger_mcs51_symtab.h) = b072272a983f234b6b238ab573576cfdcd2da9f0
SHA1 (patch-doc_Makefile_in) = bfb976234319c3623665da30dbfe40714499a6f1
SHA1 (patch-sim_ucsim_cmd.src_Makefile.in) = 469680363f2e5b2d7e1e6384b7da5146dcb133ed
SHA1 (patch-sim_ucsim_cmd.src_cmdlex.cc) = e02bdf0d70d060646f6473bad6477687c4360144
Added files:
Index: pkgsrc/devel/sdcc/patches/patch-as_asxxsrc_aslex.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_asxxsrc_aslex.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_asxxsrc_aslex.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,22 @@
+$NetBSD: patch-as_asxxsrc_aslex.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/asxxsrc/aslex.c.orig 2025-12-18 06:15:35.445443633 +0000
++++ as/asxxsrc/aslex.c
+@@ -265,7 +265,7 @@ get()
+ */
+
+ VOID
+-unget(c)
++unget(int c)
+ {
+ if (c)
+ if (ip != ib)
+@@ -303,7 +303,7 @@ unget(c)
+ */
+
+ int
+-getmap(d)
++getmap(int d)
+ {
+ register int c, n, v;
+
Index: pkgsrc/devel/sdcc/patches/patch-as_hc08_asmain.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_hc08_asmain.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_hc08_asmain.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,14 @@
+$NetBSD: patch-as_hc08_asmain.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/hc08/asmain.c.orig 2025-12-18 06:05:53.579394656 +0000
++++ as/hc08/asmain.c
+@@ -151,8 +151,7 @@ int fatalErrors=0;
+ char relFile[128];
+
+ int
+-main(argc, argv)
+-char *argv[];
++main(int argc, char *argv[])
+ {
+ register char *p;
+ register int c, i;
Index: pkgsrc/devel/sdcc/patches/patch-as_hc08_asout.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_hc08_asout.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_hc08_asout.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,49 @@
+$NetBSD: patch-as_hc08_asout.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/hc08/asout.c.orig 2006-04-22 21:35:27.000000000 +0000
++++ as/hc08/asout.c
+@@ -231,7 +231,7 @@ char *relp = { &rel[0] };
+ */
+
+ VOID
+-outab(b)
++outab(int b)
+ {
+ if (pass == 2) {
+ out_lb(b,0);
+@@ -266,7 +266,7 @@ outab(b)
+ */
+
+ VOID
+-outaw(w)
++outaw(int w)
+ {
+ if (pass == 2) {
+ out_lw(w,0);
+@@ -771,7 +771,7 @@ outdot()
+ */
+
+ VOID
+-outchk(nt, nr)
++outchk(int nt, int nr)
+ {
+ register struct area *ap;
+
+@@ -1327,7 +1327,7 @@ out_t24(int n)
+ */
+
+ int
+-lobyte(n)
++lobyte(int n)
+ {
+ return (n&0377);
+ }
+@@ -1353,7 +1353,7 @@ lobyte(n)
+ */
+
+ int
+-hibyte(n)
++hibyte(int n)
+ {
+ return ((n>>8)&0377);
+ }
Index: pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lkihx.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lkihx.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lkihx.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-as_link_hc08_lkihx.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/link/hc08/lkihx.c.orig 2025-12-18 06:18:02.425076896 +0000
++++ as/link/hc08/lkihx.c
+@@ -197,7 +197,7 @@ hexRecord(unsigned addr, int rtvalIndex)
+ */
+
+ VOID
+-ihx(i)
++ihx(int i)
+ {
+ Addr_T n;
+ if (i) {
Index: pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lks19.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lks19.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_link_hc08_lks19.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-as_link_hc08_lks19.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/link/hc08/lks19.c.orig 2025-12-18 06:20:10.030746453 +0000
++++ as/link/hc08/lks19.c
+@@ -94,7 +94,7 @@
+ */
+
+ VOID
+-s19(i)
++s19(int i)
+ {
+ register Addr_T chksum;
+
Index: pkgsrc/devel/sdcc/patches/patch-as_link_lkeval.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_link_lkeval.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_link_lkeval.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-as_link_lkeval.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/link/lkeval.c.orig 2025-12-18 06:25:40.279670189 +0000
++++ as/link/lkeval.c
+@@ -111,7 +111,7 @@ eval()
+ */
+
+ Addr_T
+-expr (n)
++expr (int n)
+ {
+ register int c, p;
+ register Addr_T v, ve;
Index: pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lkihx.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lkihx.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lkihx.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-as_link_mcs51_lkihx.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/link/mcs51/lkihx.c.orig 2025-12-18 06:36:15.657219464 +0000
++++ as/link/mcs51/lkihx.c
+@@ -195,7 +195,7 @@ hexRecord(unsigned addr, int rtvalIndex)
+ */
+
+ VOID
+-ihx(i)
++ihx(int i)
+ {
+ Addr_T n;
+ if (i) {
Index: pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lks19.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lks19.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_link_mcs51_lks19.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-as_link_mcs51_lks19.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/link/mcs51/lks19.c.orig 2025-12-18 06:39:52.576983009 +0000
++++ as/link/mcs51/lks19.c
+@@ -94,7 +94,7 @@
+ */
+
+ VOID
+-s19(i)
++s19(int i)
+ {
+ register Addr_T chksum;
+
Index: pkgsrc/devel/sdcc/patches/patch-as_link_z80_lkihx.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_link_z80_lkihx.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_link_z80_lkihx.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-as_link_z80_lkihx.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/link/z80/lkihx.c.orig 2025-12-18 06:41:43.980661573 +0000
++++ as/link/z80/lkihx.c
+@@ -102,7 +102,7 @@
+ */
+
+ VOID
+-ihx(i)
++ihx(int i)
+ {
+ register Addr_T chksum;
+
Index: pkgsrc/devel/sdcc/patches/patch-as_link_z80_lks19.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_link_z80_lks19.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_link_z80_lks19.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-as_link_z80_lks19.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/link/z80/lks19.c.orig 2025-12-18 06:41:57.670660005 +0000
++++ as/link/z80/lks19.c
+@@ -94,7 +94,7 @@
+ */
+
+ VOID
+-s19(i)
++s19(int i)
+ {
+ register Addr_T chksum;
+
Index: pkgsrc/devel/sdcc/patches/patch-as_mcs51_asmain.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_mcs51_asmain.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_mcs51_asmain.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,14 @@
+$NetBSD: patch-as_mcs51_asmain.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/mcs51/asmain.c.orig 2025-12-18 06:30:30.802341279 +0000
++++ as/mcs51/asmain.c
+@@ -213,8 +213,7 @@ int fatalErrors=0;
+ char relFile[128];
+
+ int
+-main(argc, argv)
+-char *argv[];
++main(int argc, char *argv[])
+ {
+ register char *p;
+ register int c, i;
Index: pkgsrc/devel/sdcc/patches/patch-as_mcs51_asout.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-as_mcs51_asout.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-as_mcs51_asout.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,49 @@
+$NetBSD: patch-as_mcs51_asout.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- as/mcs51/asout.c.orig 2025-12-18 06:33:12.832919475 +0000
++++ as/mcs51/asout.c
+@@ -231,7 +231,7 @@ char *relp = { &rel[0] };
+ */
+
+ VOID
+-outab(b)
++outab(int b)
+ {
+ if (pass == 2) {
+ out_lb(b,0);
+@@ -266,7 +266,7 @@ outab(b)
+ */
+
+ VOID
+-outaw(w)
++outaw(int w)
+ {
+ if (pass == 2) {
+ out_lw(w,0);
+@@ -744,7 +744,7 @@ outdot()
+ */
+
+ VOID
+-outchk(nt, nr)
++outchk(int nt, int nr)
+ {
+ register struct area *ap;
+
+@@ -1300,7 +1300,7 @@ out_t24(int n)
+ */
+
+ int
+-lobyte(n)
++lobyte(int n)
+ {
+ return (n&0377);
+ }
+@@ -1326,7 +1326,7 @@ lobyte(n)
+ */
+
+ int
+-hibyte(n)
++hibyte(int n)
+ {
+ return ((n>>8)&0377);
+ }
Index: pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_cmd.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_cmd.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_cmd.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,100 @@
+$NetBSD: patch-debugger_mcs51_cmd.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- debugger/mcs51/cmd.c.orig 2025-12-18 05:35:54.317552347 +0000
++++ debugger/mcs51/cmd.c
+@@ -327,8 +327,8 @@ static char *warranty=
+ "POSSIBILITY OF SUCH DAMAGES.\n";
+ #endif
+
+-static void printTypeInfo(link *);
+-static void printValAggregates (symbol *,link *,char,unsigned int,int);
++static void printTypeInfo(linkt_t *);
++static void printValAggregates (symbol *,linkt_t *,char,unsigned int,int);
+ static int printOrSetSymValue (symbol *sym, context *cctxt,
+ int flg, int dnum, int fmt,
+ char *rs, char *val, char cmp);
+@@ -2323,7 +2323,7 @@ int cmdListSrc (char *s, context *cctxt)
+ return 0;
+ }
+
+-static unsigned long getValBasic(symbol *sym, link *type, char *val)
++static unsigned long getValBasic(symbol *sym, linkt_t *type, char *val)
+ {
+ char *s;
+ union
+@@ -2347,7 +2347,7 @@ static unsigned long getValBasic(symbol
+ {
+ if (IS_INTEGRAL(type))
+ {
+- link *etype;
++ linkt_t *etype;
+ if ( type->next )
+ etype = type->next;
+ else
+@@ -2460,7 +2460,7 @@ static void printFmtInteger(char *deffmt
+ /*-----------------------------------------------------------------*/
+ /* printValBasic - print value of basic types */
+ /*-----------------------------------------------------------------*/
+-static void printValBasic(symbol *sym, link *type,
++static void printValBasic(symbol *sym, linkt_t *type,
+ char mem, unsigned addr,int size, int fmt)
+ {
+ union {
+@@ -2484,7 +2484,7 @@ static void printValBasic(symbol *sym, l
+ else
+ if (IS_INTEGRAL(type))
+ {
+- link *etype;
++ linkt_t *etype;
+ if ( type->next )
+ etype = type->next;
+ else
+@@ -2534,10 +2534,10 @@ static void printValFunc (symbol *sym, i
+ /*-----------------------------------------------------------------*/
+ /* printArrayValue - will print the values of array elements */
+ /*-----------------------------------------------------------------*/
+-static void printArrayValue (symbol *sym, link *type,
++static void printArrayValue (symbol *sym, linkt_t *type,
+ char space, unsigned int addr, int fmt)
+ {
+- link *elem_type = type->next;
++ linkt_t *elem_type = type->next;
+ int i;
+
+ fprintf(stdout,"{");
+@@ -2558,7 +2558,7 @@ static void printArrayValue (symbol *sym
+ /*-----------------------------------------------------------------*/
+ /* printStructValue - prints structures elements */
+ /*-----------------------------------------------------------------*/
+-static void printStructValue (symbol *sym, link *type,
++static void printStructValue (symbol *sym, linkt_t *type,
+ char space, unsigned int addr, int fmt)
+ {
+ symbol *fields = SPEC_STRUCT(type)->fields;
+@@ -2581,7 +2581,7 @@ static void printStructValue (symbol *sy
+ /*-----------------------------------------------------------------*/
+ /* printValAggregates - print value of aggregates */
+ /*-----------------------------------------------------------------*/
+-static void printValAggregates (symbol *sym, link *type,
++static void printValAggregates (symbol *sym, linkt_t *type,
+ char space,unsigned int addr, int fmt)
+ {
+
+@@ -2606,7 +2606,7 @@ static int printOrSetSymValue (symbol *s
+ static char fmtChar[] = " todx ";
+ static int stack = 1;
+ symbol *fields;
+- link *type;
++ linkt_t *type;
+ unsigned int addr;
+ int size, n;
+ char *s, *s2;
+@@ -2808,7 +2808,7 @@ static void printStructInfo (structdef *
+ /*-----------------------------------------------------------------*/
+ /* printTypeInfo - print out the type information */
+ /*-----------------------------------------------------------------*/
+-static void printTypeInfo(link *p)
++static void printTypeInfo(linkt_t *p)
+ {
+ if (!p)
+ return ;
Index: pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_sdcdb.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_sdcdb.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_sdcdb.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,30 @@
+$NetBSD: patch-debugger_mcs51_sdcdb.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- debugger/mcs51/sdcdb.c.orig 2007-08-23 20:03:39.000000000 +0000
++++ debugger/mcs51/sdcdb.c
+@@ -21,6 +21,8 @@
+ what you give them. Help stamp out software-hoarding!
+ -------------------------------------------------------------------------*/
+
++#include <unistd.h>
++
+ #include "sdcdb.h"
+ #include "symtab.h"
+ #include "simi.h"
+@@ -1603,7 +1605,7 @@ static void parseCmdLine (int argc, char
+ }
+
+ if (strncmp(argv[i],"-cd=",4) == 0) {
+- chdir(argv[i][4]);
++ chdir(&argv[i][4]);
+ continue;
+ }
+
+@@ -1724,6 +1726,7 @@ sigintr(int sig)
+
+ #ifndef _WIN32
+ /* the only child can be the simulator */
++#include <sys/wait.h>
+ static void sigchld(int sig)
+ {
+ /* the only child can be the simulator */
Index: pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.c
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.c:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.c Thu Dec 18 15:43:42 2025
@@ -0,0 +1,24 @@
+$NetBSD: patch-debugger_mcs51_symtab.c,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- debugger/mcs51/symtab.c.orig 2025-12-18 05:34:38.865493060 +0000
++++ debugger/mcs51/symtab.c
+@@ -31,7 +31,7 @@ DEFSETFUNC(symWithRName);
+ /*------------------------------------------------------------------*/
+ /* getSize - returns size of a type chain in bits */
+ /*------------------------------------------------------------------*/
+-unsigned int getSize ( link *p )
++unsigned int getSize ( linkt_t *p )
+ {
+ /* if nothing return 0 */
+ if ( ! p )
+@@ -127,8 +127,8 @@ static char *parseTypeInfo (symbol *sym
+ /* bp now points to '}' ... go past it */
+ s = ++bp;
+ while (*s != ')') { /* till we reach the end */
+- link *type;
+- type = Safe_calloc(1,sizeof(link));
++ linkt_t *type;
++ type = Safe_calloc(1,sizeof(linkt_t));
+ if (*s == ',') s++;
+
+ /* is a declarator */
Index: pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.h
diff -u /dev/null pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.h:1.1
--- /dev/null Thu Dec 18 15:43:42 2025
+++ pkgsrc/devel/sdcc/patches/patch-debugger_mcs51_symtab.h Thu Dec 18 15:43:42 2025
@@ -0,0 +1,50 @@
+$NetBSD: patch-debugger_mcs51_symtab.h,v 1.1 2025/12/18 15:43:42 ryoon Exp $
+
+--- debugger/mcs51/symtab.h.orig 2025-12-18 05:32:23.483299460 +0000
++++ debugger/mcs51/symtab.h
+@@ -106,13 +106,13 @@ typedef struct declarator {
+ short num_elem; /* # of elems if type==array */
+ short ptr_const :1; /* pointer is constant */
+ short ptr_volatile:1; /* pointer is volatile */
+- struct link *tspec; /* pointer type specifier */
++ struct linkt *tspec; /* pointer type specifier */
+ } declarator ;
+
+ #define DECLARATOR 0
+ #define SPECIFIER 1
+
+-typedef struct link {
++typedef struct linkt {
+ unsigned class : 1 ; /* DECLARATOR or SPECIFIER */
+ unsigned tdef : 1 ; /* current link created by */
+ /* typedef if this flag is set*/
+@@ -121,8 +121,8 @@ typedef struct link {
+ declarator d ; /* if CLASS == DECLARATOR */
+ } select ;
+
+- struct link *next ; /* next element on the chain */
+-} link ;
++ struct linkt *next ; /* next element on the chain */
++} linkt_t ;
+
+ typedef struct symbol {
+ char *name ;
+@@ -136,8 +136,8 @@ typedef struct symbol {
+ unsigned addr ; /* address if the symbol */
+ unsigned eaddr ; /* end address for functions */
+ char addr_type ; /* which address space */
+- link *type ; /* start of type chain */
+- link *etype ; /* end of type chain */
++ linkt_t *type ; /* start of type chain */
++ linkt_t *etype ; /* end of type chain */
+ char scopetype ; /* 'G' global, 'F' - file, 'L' local */
+ char *sname ; /* if 'F' or 'L' then scope name */
+ char *rname ; /* real name i.e. mangled beyond recognition */
+@@ -242,6 +242,6 @@ symbol *symLookup (char *,context *);
+ DEFSETFUNC(moduleWithName);
+ DEFSETFUNC(moduleWithCName);
+ DEFSETFUNC(moduleWithAsmName);
+-unsigned int getSize (link *);
++unsigned int getSize (linkt_t *);
+
+ #endif
Home |
Main Index |
Thread Index |
Old Index