Added sdcc-4.5.0

This commit is contained in:
Torsten Kurbad
2025-08-05 16:07:00 +02:00
parent d29d448d5c
commit 6b7b3c248d
7 changed files with 334 additions and 83 deletions
@@ -0,0 +1,15 @@
Most implicit function declarations left come from the included libiberty.
Add it to eautoreconf to regenerate its tests.
https://bugs.gentoo.org/898594
--- a/configure.ac
+++ b/configure.ac
@@ -874,7 +874,7 @@
test $OPT_DISABLE_PACKIHX = 0 && AC_CONFIG_SUBDIRS(support/packihx)
test $OPT_DISABLE_UCSIM = 0 && AC_CONFIG_SUBDIRS(sim/ucsim)
test $OPT_DISABLE_SDCDB = 0 && AC_CONFIG_SUBDIRS(debugger/mcs51)
-test $OPT_DISABLE_SDBINUTILS = 0 && AC_CONFIG_SUBDIRS(support/sdbinutils)
+test $OPT_DISABLE_SDBINUTILS = 0 && AC_CONFIG_SUBDIRS(support/sdbinutils support/sdbinutils/libiberty)
AC_CONFIG_FILES([doc/Makefile])
####test $OPT_DISABLE_AVR = 0 && AC_CONFIG_FILES([src/avr/Makefile])
@@ -0,0 +1,12 @@
diff '--color=auto' -uprNb sdcc-4.3.0.orig/sdas/linksrc/aslink.h sdcc-4.3.0/sdas/linksrc/aslink.h
--- sdcc-4.3.0.orig/sdas/linksrc/aslink.h 2025-05-07 15:07:20.854046196 +0300
+++ sdcc-4.3.0/sdas/linksrc/aslink.h 2025-05-07 15:08:22.095963883 +0300
@@ -1312,7 +1312,7 @@ extern VOID s19(int i);
extern VOID sflush(void);
/* EEP: lkelf.c */
-extern VOID elf();
+extern VOID elf(int i);
/* JCF: lkmem.c */
extern int summary(struct area * xp);
@@ -0,0 +1,22 @@
https://bugs.gentoo.org/917114
https://sourceforge.net/p/sdcc/support-requests/193/
--- sdcc/Makefile.in
+++ sdcc/Makefile.in
@@ -98,7 +98,6 @@
ifeq ($(OPT_DISABLE_SDBINUTILS), 0)
TARGETS += sdcc-sdbinutils
PKGS += $(SDCC_SDBINUTILS)
-SDBINUTILS_BINS = sdar$(EXEEXT) sdranlib$(EXEEXT) sdnm$(EXEEXT) sdobjcopy$(EXEEXT)
SDCC_BINUTILS = sdcc-sdbinutils
endif
@@ -142,7 +141,7 @@
tini: checkconf sdcc-tini
-sdcc-libs: ${SDCC_SDBINUTILS}
+sdcc-libs: ${SDCC_BINUTILS}
for lib in $(SDCC_LIBS); do $(MAKE) -C $$lib; done
sdcc-cc: sdcc-libs
@@ -0,0 +1,13 @@
Fix implicit function declaration in configure logs: mkdir
https://bugs.gentoo.org/898594
--- a/support/cpp/configure.ac
+++ b/support/cpp/configure.ac
@@ -2317,6 +2317,7 @@
################################################################################
# mkdir takes a single argument on some systems.
+AC_CHECK_HEADERS([sys/stat.h])
gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
# File extensions