public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sdcc] f45: update to 4.6.0
@ 2026-09-01  2:50 Roy Rankin
  0 siblings, 0 replies; only message in thread
From: Roy Rankin @ 2026-09-01  2:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/sdcc
Branch : f45
Commit : ffcdb712caa3aa91ac5810f9ba3bb23a25459c58
Author : Roy Rankin <rrankin@ihug.com.au>
Date   : 2026-09-01T12:50:13+10:00
Stats  : +742/-625 in 13 file(s)
URL    : https://src.fedoraproject.org/rpms/sdcc/c/ffcdb712caa3aa91ac5810f9ba3bb23a25459c58?branch=f45

Log:
update to 4.6.0

---
diff --git a/.gitignore b/.gitignore
index 82ac676..8029bc0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@
 /sdcc-src-4.1.0.tar.bz2
 /sdcc-src-4.4.0.tar.bz2
 /sdcc-src-4.5.0.tar.bz2
+/sdcc-src-4.6.0.tar.bz2

diff --git a/sdcc-4.5.0-aslink.patch b/sdcc-4.5.0-aslink.patch
deleted file mode 100644
index 00e1c5b..0000000
--- a/sdcc-4.5.0-aslink.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/sdas/linksrc/aslink.h b/sdas/linksrc/aslink.h
-index 4033cfa..780a52b 100644
---- a/sdas/linksrc/aslink.h
-+++ b/sdas/linksrc/aslink.h
-@@ -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);

diff --git a/sdcc-4.5.0-bool.patch b/sdcc-4.5.0-bool.patch
deleted file mode 100644
index 8d48c9f..0000000
--- a/sdcc-4.5.0-bool.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-diff --git a/debugger/mcs51/sdcdb.c b/debugger/mcs51/sdcdb.c
-index 4eeaf41..beb31a5 100644
---- a/debugger/mcs51/sdcdb.c
-+++ b/debugger/mcs51/sdcdb.c
-@@ -62,8 +62,8 @@ structdef **structs = NULL; /* all structures */
- int nLinkrecs = 0;
- linkrec **linkrecs = NULL; /* all linkage editor records */
- context *currCtxt = NULL;
--short fullname = 0;
--short showfull = 0;
-+bool fullname = false;
-+bool showfull = false;
- char userinterrupt = 0;
- char nointerrupt = 0;
- char contsim = 0;
-@@ -573,7 +573,7 @@ static void loadModules (void)
-         {
-           /* for module records do */
-           case MOD_REC:
--            currMod = parseModule(loop->line, TRUE);
-+            currMod = parseModule(loop->line, true);
-             currModName = currMod->name ;
- 
-             /* search the c source file and load it into buffer */
-@@ -1906,7 +1906,7 @@ static void parseCmdLine (int argc, char **argv)
- 
-           if (strcmp(argv[i], "-fullname") == 0)
-             {
--              fullname = TRUE;
-+              fullname = false;
-               continue;
-             }
- 
-diff --git a/debugger/mcs51/sdcdb.h b/debugger/mcs51/sdcdb.h
-index d9f8b81..d96262b 100644
---- a/debugger/mcs51/sdcdb.h
-+++ b/debugger/mcs51/sdcdb.h
-@@ -24,6 +24,7 @@
- #ifndef  SDCDB_H
- #define  SDCDB_H
- 
-+
- #define SDCDB_VERSION	"0.9"
- 
- #define SDCDB_DEBUG
-@@ -46,6 +47,7 @@ extern int sdcdbDebug;
- #include <stdlib.h>
- #include <string.h>
- #include <ctype.h>
-+#include <stdbool.h>
- #include <limits.h>
- #ifdef HAVE_CONFIG_H
- # include "config.h"
-@@ -57,11 +59,6 @@ extern int sdcdbDebug;
- #include "src/SDCCset.h"
- #include "src/SDCChasht.h"
- 
--#define TRUE 1
--#define FALSE !TRUE
--
--typedef short bool;
--
- #ifndef max
- #define max(a,b) (a > b ? a : b)
- #endif
-@@ -268,7 +265,7 @@ extern set *dispsymbols; /* set of displayable symbols */
- extern char *currModName ;
- extern char userinterrupt ;
- extern char nointerrupt ;
--extern short showfull ;
-+extern bool showfull ;
- extern int nStructs ;
- extern struct structdef **structs ; /* all structures */
- extern char *ssdirl; /* source directory search path */
-@@ -277,7 +274,7 @@ char  *alloccpy(char *,int );
- char *gc_strdup(const char *s);
- srcLine **loadFile (char *name, int *nlines);
- 
--extern short fullname;
-+extern bool fullname;
- extern int srcMode;
- extern char contsim;
- char *searchDirsFname (char *);
-diff --git a/debugger/mcs51/symtab.c b/debugger/mcs51/symtab.c
-index fd4e586..a3391c9 100644
---- a/debugger/mcs51/symtab.c
-+++ b/debugger/mcs51/symtab.c
-@@ -778,7 +778,7 @@ static void lnkCSrc (char *s)
-   mod = NULL;
-   if (!applyToSet(modules,moduleWithCName,mname,&mod))
-     {
--      mod = parseModule(mname, FALSE);
-+      mod = parseModule(mname, false);
-       mod->c_name = alloccpy(mname,strlen(mname));
-       mod->cfullname=searchDirsFname(mod->c_name);
-       mod->cLines = loadFile(mod->c_name,&mod->ncLines);

diff --git a/sdcc-4.5.0-libbacktrace.patch b/sdcc-4.5.0-libbacktrace.patch
deleted file mode 100644
index 4cb1378..0000000
--- a/sdcc-4.5.0-libbacktrace.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- configure~	2022-09-04 19:34:41.000000000 +1000
-+++ configure	2024-06-07 14:38:40.286864534 +1000
-@@ -789,6 +789,7 @@
- oldincludedir
- includedir
- localstatedir
-+runstatedir
- sharedstatedir
- sysconfdir
- datadir
-@@ -944,6 +945,7 @@
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
-+runstatedir='${localstatedir}/run'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- docdir='${datarootdir}/doc/${PACKAGE}'
-@@ -1120,6 +1122,16 @@
-   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
-     localstatedir=$ac_optarg ;;
- 
-+  -runstatedir | --runstatedir | --runstatedi | --runstated \
-+  | --runstate | --runstat | --runsta | --runst | --runs \
-+  | --run | --ru | --r)
-+    ac_prev=runstatedir ;;
-+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
-+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
-+  | --run=* | --ru=* | --r=*)
-+    runstatedir=$ac_optarg ;;
-+
-+
-   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
-     ac_prev=mandir ;;
-   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)

diff --git a/sdcc-4.5.0-libcpp-aclocal.m4 b/sdcc-4.5.0-libcpp-aclocal.m4
deleted file mode 100644
index 8da85ad..0000000
--- a/sdcc-4.5.0-libcpp-aclocal.m4
+++ /dev/null
@@ -1,41 +0,0 @@
-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
-
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
-
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
-m4_include([../libtool.m4])
-m4_include([../ltoptions.m4])
-m4_include([../ltsugar.m4])
-m4_include([../ltversion.m4])
-m4_include([../lt~obsolete.m4])
-m4_include([../config/acx.m4])
-m4_include([../config/ax_lib_socket_nsl.m4])
-m4_include([../config/cet.m4])
-m4_include([../config/codeset.m4])
-m4_include([../config/depstand.m4])
-m4_include([../config/dfp.m4])
-m4_include([../config/enable.m4])
-m4_include([../config/gcc-plugin.m4])
-m4_include([../config/gettext-sister.m4])
-m4_include([../config/iconv.m4])
-m4_include([../config/lcmessage.m4])
-m4_include([../config/lead-dot.m4])
-m4_include([../config/lib-ld.m4])
-m4_include([../config/lib-link.m4])
-m4_include([../config/lib-prefix.m4])
-m4_include([../config/mmap.m4])
-m4_include([../config/override.m4])
-m4_include([../config/picflag.m4])
-m4_include([../config/progtest.m4])
-m4_include([../config/stdint.m4])
-m4_include([../config/warnings.m4])
-m4_include([../config/zlib.m4])

diff --git a/sdcc-4.5.0-libierty-acinclude.m4 b/sdcc-4.5.0-libierty-acinclude.m4
deleted file mode 100644
index bfd1495..0000000
--- a/sdcc-4.5.0-libierty-acinclude.m4
+++ /dev/null
@@ -1,173 +0,0 @@
-dnl See whether strncmp reads past the end of its string parameters.
-dnl On some versions of SunOS4 at least, strncmp reads a word at a time
-dnl but erroneously reads past the end of strings.  This can cause
-dnl a SEGV in some cases.
-AC_DEFUN(libiberty_AC_FUNC_STRNCMP,
-[AC_REQUIRE([AC_FUNC_MMAP])
-AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_works,
-[AC_TRY_RUN([
-/* Test by Jim Wilson and Kaveh Ghazi.
-   Check whether strncmp reads past the end of its string parameters. */
-#include <sys/types.h>
-#include <string.h>
-
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
-#ifdef HAVE_SYS_MMAN_H
-#include <sys/mman.h>
-#endif
-
-#ifndef MAP_ANON
-#ifdef MAP_ANONYMOUS
-#define MAP_ANON MAP_ANONYMOUS
-#else
-#define MAP_ANON MAP_FILE
-#endif
-#endif
-
-#ifndef MAP_FILE
-#define MAP_FILE 0
-#endif
-#ifndef O_RDONLY
-#define O_RDONLY 0
-#endif
-
-#define MAP_LEN 0x10000
-
-int
-main (void)
-{
-#if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
-  char *p;
-  int dev_zero;
-
-  dev_zero = open ("/dev/zero", O_RDONLY);
-  if (dev_zero < 0)
-    return 1;
-  
-  p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
-		     MAP_ANON|MAP_PRIVATE, dev_zero, 0);
-  if (p == (char *)-1)
-    p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
-		       MAP_ANON|MAP_PRIVATE, -1, 0);
-  if (p == (char *)-1)
-    return 2;
-  else
-    {
-      char *string = "__si_type_info";
-      char *q = (char *) p + MAP_LEN - strlen (string) - 2;
-      char *r = (char *) p + 0xe;
-
-      strcpy (q, string);
-      strcpy (r, string);
-      strncmp (r, q, 14);
-    }
-#endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
-  return 0;
-}
-], ac_cv_func_strncmp_works=yes, ac_cv_func_strncmp_works=no,
-  ac_cv_func_strncmp_works=yes)
-rm -f core core.* *.core])
-if test $ac_cv_func_strncmp_works = no ; then
-  AC_LIBOBJ([strncmp])
-fi
-])
-
-dnl See if errno must be declared even when <errno.h> is included.
-AC_DEFUN(libiberty_AC_DECLARE_ERRNO,
-[AC_CACHE_CHECK(whether errno must be declared, libiberty_cv_declare_errno,
-[AC_TRY_COMPILE(
-[#include <errno.h>],
-[int x = errno;],
-libiberty_cv_declare_errno=no,
-libiberty_cv_declare_errno=yes)])
-if test $libiberty_cv_declare_errno = yes
-then AC_DEFINE(NEED_DECLARATION_ERRNO, 1,
-  [Define if errno must be declared even when <errno.h> is included.])
-fi
-])
-
-dnl See whether we need a declaration for a function.
-AC_DEFUN(libiberty_NEED_DECLARATION,
-[AC_MSG_CHECKING([whether $1 must be declared])
-AC_CACHE_VAL(libiberty_cv_decl_needed_$1,
-[AC_TRY_COMPILE([
-#include "confdefs.h"
-#include <stdio.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif],
-[char *(*pfn) = (char *(*)) $1],
-libiberty_cv_decl_needed_$1=no, libiberty_cv_decl_needed_$1=yes)])
-AC_MSG_RESULT($libiberty_cv_decl_needed_$1)
-if test $libiberty_cv_decl_needed_$1 = yes; then
-  AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]), 1,
-            [Define if $1 is not declared in system header files.])
-fi
-])dnl
-
-# We always want a C version of alloca() compiled into libiberty,
-# because native-compiler support for the real alloca is so !@#$%
-# unreliable that GCC has decided to use it only when being compiled
-# by GCC.  This is the part of AC_FUNC_ALLOCA that calculates the
-# information alloca.c needs.
-AC_DEFUN(libiberty_AC_FUNC_C_ALLOCA,
-[AC_CACHE_CHECK(whether alloca needs Cray hooks, ac_cv_os_cray,
-[AC_EGREP_CPP(webecray,
-[#if defined(CRAY) && ! defined(CRAY2)
-webecray
-#else
-wenotbecray
-#endif
-], ac_cv_os_cray=yes, ac_cv_os_cray=no)])
-if test $ac_cv_os_cray = yes; then
-  for ac_func in _getb67 GETB67 getb67; do
-    AC_CHECK_FUNC($ac_func, 
-      [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func, 
-  [Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP
-   systems. This function is required for alloca.c support on those
-   systems.])  break])
-  done
-fi
-
-AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
-[AC_TRY_RUN([int
-find_stack_direction (void)
-{
-  static char *addr = 0;
-  auto char dummy;
-  if (addr == 0)
-    {
-      addr = &dummy;
-      return find_stack_direction ();
-    }
-  else
-    return (&dummy > addr) ? 1 : -1;
-}
-int
-main (void)
-{
-  return find_stack_direction() < 0;
-}], 
-  ac_cv_c_stack_direction=1,
-  ac_cv_c_stack_direction=-1,
-  ac_cv_c_stack_direction=0)])
-AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction,
-  [Define if you know the direction of stack growth for your system;
-   otherwise it will be automatically deduced at run-time.
-        STACK_DIRECTION > 0 => grows toward higher addresses
-        STACK_DIRECTION < 0 => grows toward lower addresses
-        STACK_DIRECTION = 0 => direction of growth unknown])
-])

diff --git a/sdcc-4.5.0-lyx-preferences b/sdcc-4.5.0-lyx-preferences
deleted file mode 100644
index 6858c6e..0000000
--- a/sdcc-4.5.0-lyx-preferences
+++ /dev/null
@@ -1,81 +0,0 @@
-# LyX 2.3.4.2 generated this file. If you want to make your own
-# modifications you should do them from inside LyX and save.
-
-Format 24
-
-
-#
-# MISC SECTION ######################################
-#
-
-
-#
-# SCREEN & FONTS SECTION ############################
-#
-
-
-#
-# COLOR SECTION ###################################
-#
-
-
-#
-# PRINTER SECTION ###################################
-#
-
-
-#
-# TEX SECTION #######################################
-#
-
-
-#
-# FILE SECTION ######################################
-#
-
-
-#
-# PLAIN TEXT EXPORT SECTION ##############################
-#
-
-
-#
-# SPELLCHECKER SECTION ##############################
-#
-
-
-#
-# LANGUAGE SUPPORT SECTION ##########################
-#
-
-
-#
-# 2nd MISC SUPPORT SECTION ##########################
-#
-
-
-#
-# FORMATS SECTION ##########################
-#
-
-
-#
-# CONVERTERS SECTION ##########################
-#
-
-\converter svg  pstex  "inkscape $$i --export-area-drawing -export-latex  -o $$o"	""
-\converter svg  pdftex  "inkscape $$i --export-area-drawing -export-latex  -o $$o"	""
-\converter emf  eps  "inkscape $$i --export-area-drawing  -o $$o"	""
-\converter wmf  pdf6  "inkscape $$i --export-area-drawing  -o $$o"	""
-\converter emf  pdf6  "inkscape $$i --export-area-drawing  -o $$o"	""
-\converter svg  pdf6 "inkscape $$i --export-area-drawing  -o $$o" ""
-\converter svgz pdf6 "inkscape $$i --export-area-drawing  -o $$o" ""
-\converter svg  eps  "inkscape $$i --export-area-drawing  -o $$o" ""
-\converter svgz eps  "inkscape $$i --export-area-drawing  -o $$o" ""
-\converter svg  png  "inkscape  $$i -o $$o" ""
-\converter svgz png  "inkscape  $$i -o $$o" ""
-
-#
-# COPIERS SECTION ##########################
-#
-

diff --git a/sdcc-configure-c99.patch b/sdcc-configure-c99.patch
deleted file mode 100644
index bef254b..0000000
--- a/sdcc-configure-c99.patch
+++ /dev/null
@@ -1,136 +0,0 @@
-Fix implicit function declarations and implicit ints, for
-compatibility with future compilers.
-
-Submitted upstream: <https://sourceforge.net/p/sdcc/patches/458/>
-
-Part of the issues are in a bundled copy of GNU binutils; these have
-already been fixed in binutils/GCC upstream.
-
-diff --git a/support/cpp/aclocal.m4 b/support/cpp/aclocal.m4
-index b30c780296875596..be352e4820823eeb 100644
---- a/support/cpp/aclocal.m4
-+++ b/support/cpp/aclocal.m4
-@@ -351,17 +351,18 @@ changequote({{{,}}})dnl
- #include <signal.h>
- #include <setjmp.h>
- #include <stdio.h>
-+#include <stdlib.h>
- 
- #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
- # define MAP_ANONYMOUS MAP_ANON
- #endif
- 
-+#ifdef HAVE_UNISTD_H
-+# include <unistd.h>
-+#endif
-+
- /* This mess was copied from the GNU getpagesize.h.  */
- #ifndef HAVE_GETPAGESIZE
--# ifdef HAVE_UNISTD_H
--#  include <unistd.h>
--# endif
--
- /* Assume that all systems that can run configure have sys/param.h.  */
- # ifndef HAVE_SYS_PARAM_H
- #  define HAVE_SYS_PARAM_H 1
-@@ -661,22 +662,22 @@ int main()
- 
-   fd = open("conftestdata$$", O_RDONLY);
-   if (fd < 0)
--    exit(1);
-+    return 1;
- 
-   if (fstat (fd, &st))
--    exit(2);
-+    return 2;
- 
-   x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
-   if (x == (char *) -1)
--    exit(3);
-+    return 3;
- 
-   if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
--    exit(4);
-+    return 4;
- 
-   if (munmap(x, st.st_size) < 0)
--    exit(5);
-+    return 5;
- 
--  exit(0);
-+  return 0;
- }], ac_cv_func_mmap_file=yes, ac_cv_func_mmap_file=no,
- ac_cv_func_mmap_file=no)])
- if test $ac_cv_func_mmap_file = yes; then
-diff --git a/support/sdbinutils/libiberty/aclocal.m4 b/support/sdbinutils/libiberty/aclocal.m4
-index bf8a907100f9d210..1c1a399bdd0b769d 100644
---- a/support/sdbinutils/libiberty/aclocal.m4
-+++ b/support/sdbinutils/libiberty/aclocal.m4
-@@ -15,6 +15,7 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_works,
- /* Test by Jim Wilson and Kaveh Ghazi.
-    Check whether strncmp reads past the end of its string parameters. */
- #include <sys/types.h>
-+#include <string.h>
- 
- #ifdef HAVE_FCNTL_H
- #include <fcntl.h>
-@@ -41,7 +42,8 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_works,
- 
- #define MAP_LEN 0x10000
- 
--main ()
-+int
-+main (void)
- {
- #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
-   char *p;
-@@ -49,7 +51,7 @@ main ()
- 
-   dev_zero = open ("/dev/zero", O_RDONLY);
-   if (dev_zero < 0)
--    exit (1);
-+    return 1;
-   
-   p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
- 		     MAP_ANON|MAP_PRIVATE, dev_zero, 0);
-@@ -57,7 +59,7 @@ main ()
-     p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
- 		       MAP_ANON|MAP_PRIVATE, -1, 0);
-   if (p == (char *)-1)
--    exit (2);
-+    return 2;
-   else
-     {
-       char *string = "__si_type_info";
-@@ -69,7 +71,7 @@ main ()
-       strncmp (r, q, 14);
-     }
- #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
--  exit (0);
-+  return 0;
- }
- ], ac_cv_func_strncmp_works=yes, ac_cv_func_strncmp_works=no,
-   ac_cv_func_strncmp_works=yes)
-@@ -147,7 +149,8 @@ if test $ac_cv_os_cray = yes; then
- fi
- 
- AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
--[AC_TRY_RUN([find_stack_direction ()
-+[AC_TRY_RUN([int
-+find_stack_direction (void)
- {
-   static char *addr = 0;
-   auto char dummy;
-@@ -159,9 +162,10 @@ AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
-   else
-     return (&dummy > addr) ? 1 : -1;
- }
--main ()
-+int
-+main (void)
- {
--  exit (find_stack_direction() < 0);
-+  return find_stack_direction() < 0;
- }], 
-   ac_cv_c_stack_direction=1,
-   ac_cv_c_stack_direction=-1,

diff --git a/sdcc-diagnostic.patch b/sdcc-diagnostic.patch
new file mode 100644
index 0000000..3888fcb
--- /dev/null
+++ b/sdcc-diagnostic.patch
@@ -0,0 +1,26 @@
+Index: src/SDCCmain.c
+===================================================================
+--- src/SDCCmain.c	(revision 16672)
++++ src/SDCCmain.c	(working copy)
+@@ -2924,7 +2924,7 @@
+ #endif
+           preamble = fdopen (p[1], "w");
+           wassert (preamble);
+-          fprintf (preamble, port->c_preamble);
++          fprintf (preamble, "%s", port->c_preamble);
+           fclose (preamble);
+           yyin = fdopen (p[0], "r");
+           wassert (yyin);
+Index: support/cpp/gcc/diagnostic.cc
+===================================================================
+--- support/cpp/gcc/diagnostic.cc	(revision 16672)
++++ support/cpp/gcc/diagnostic.cc	(working copy)
+@@ -2254,7 +2254,7 @@
+   if (global_dc->printer == NULL)
+     {
+       /* Print the error message.  */
+-      fnotice (stderr, diagnostic_kind_text[DK_ICE]);
++      fnotice (stderr, "%s", diagnostic_kind_text[DK_ICE]);
+       fnotice (stderr, "in %s, at %s:%d", function, trim_filename (file), line);
+       fputc ('\n', stderr);
+ 

diff --git a/sdcc-lyx-preferences b/sdcc-lyx-preferences
new file mode 100644
index 0000000..6858c6e
--- /dev/null
+++ b/sdcc-lyx-preferences
@@ -0,0 +1,81 @@
+# LyX 2.3.4.2 generated this file. If you want to make your own
+# modifications you should do them from inside LyX and save.
+
+Format 24
+
+
+#
+# MISC SECTION ######################################
+#
+
+
+#
+# SCREEN & FONTS SECTION ############################
+#
+
+
+#
+# COLOR SECTION ###################################
+#
+
+
+#
+# PRINTER SECTION ###################################
+#
+
+
+#
+# TEX SECTION #######################################
+#
+
+
+#
+# FILE SECTION ######################################
+#
+
+
+#
+# PLAIN TEXT EXPORT SECTION ##############################
+#
+
+
+#
+# SPELLCHECKER SECTION ##############################
+#
+
+
+#
+# LANGUAGE SUPPORT SECTION ##########################
+#
+
+
+#
+# 2nd MISC SUPPORT SECTION ##########################
+#
+
+
+#
+# FORMATS SECTION ##########################
+#
+
+
+#
+# CONVERTERS SECTION ##########################
+#
+
+\converter svg  pstex  "inkscape $$i --export-area-drawing -export-latex  -o $$o"	""
+\converter svg  pdftex  "inkscape $$i --export-area-drawing -export-latex  -o $$o"	""
+\converter emf  eps  "inkscape $$i --export-area-drawing  -o $$o"	""
+\converter wmf  pdf6  "inkscape $$i --export-area-drawing  -o $$o"	""
+\converter emf  pdf6  "inkscape $$i --export-area-drawing  -o $$o"	""
+\converter svg  pdf6 "inkscape $$i --export-area-drawing  -o $$o" ""
+\converter svgz pdf6 "inkscape $$i --export-area-drawing  -o $$o" ""
+\converter svg  eps  "inkscape $$i --export-area-drawing  -o $$o" ""
+\converter svgz eps  "inkscape $$i --export-area-drawing  -o $$o" ""
+\converter svg  png  "inkscape  $$i -o $$o" ""
+\converter svgz png  "inkscape  $$i -o $$o" ""
+
+#
+# COPIERS SECTION ##########################
+#
+

diff --git a/sdcc-runstatedir.patch b/sdcc-runstatedir.patch
new file mode 100644
index 0000000..498fd60
--- /dev/null
+++ b/sdcc-runstatedir.patch
@@ -0,0 +1,615 @@
+diff --git a/support/cpp/configure b/support/cpp/configure
+index 5f966e0..190f408 100755
+--- a/support/cpp/configure
++++ b/support/cpp/configure
+@@ -788,6 +788,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -944,6 +945,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE}'
+@@ -1196,6 +1198,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1333,7 +1345,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1493,6 +1505,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/cpp/gcc/configure b/support/cpp/gcc/configure
+index c1dbf50..d77a878 100755
+--- a/support/cpp/gcc/configure
++++ b/support/cpp/gcc/configure
+@@ -910,6 +910,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -1077,6 +1078,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE}'
+@@ -1329,6 +1331,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1466,7 +1478,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1619,6 +1631,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/cpp/libbacktrace/configure b/support/cpp/libbacktrace/configure
+index 17f470a..3c22811 100755
+--- a/support/cpp/libbacktrace/configure
++++ b/support/cpp/libbacktrace/configure
+@@ -767,6 +767,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -855,6 +856,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+@@ -1107,6 +1109,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1244,7 +1256,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1397,6 +1409,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/cpp/libcpp/configure b/support/cpp/libcpp/configure
+index e9937cd..d5bddd5 100755
+--- a/support/cpp/libcpp/configure
++++ b/support/cpp/libcpp/configure
+@@ -706,6 +706,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -791,6 +792,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+@@ -1043,6 +1045,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1180,7 +1192,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1333,6 +1345,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/packihx/configure b/support/packihx/configure
+index 11eb458..ce8d1ec 100755
+--- a/support/packihx/configure
++++ b/support/packihx/configure
+@@ -983,6 +983,16 @@ do
+   | --run=* | --ru=* | --r=*)
+     runstatedir=$ac_optarg ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+diff --git a/support/sdbinutils/bfd/configure b/support/sdbinutils/bfd/configure
+index 838fe33..5888f4c 100755
+--- a/support/sdbinutils/bfd/configure
++++ b/support/sdbinutils/bfd/configure
+@@ -804,6 +804,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -913,6 +914,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+@@ -1165,6 +1167,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1302,7 +1314,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1455,6 +1467,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/sdbinutils/binutils/configure b/support/sdbinutils/binutils/configure
+index d68508e..7e56234 100755
+--- a/support/sdbinutils/binutils/configure
++++ b/support/sdbinutils/binutils/configure
+@@ -798,6 +798,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -911,6 +912,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+@@ -1163,6 +1165,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1300,7 +1312,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1453,6 +1465,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/sdbinutils/configure b/support/sdbinutils/configure
+index b594110..0f2a969 100755
+--- a/support/sdbinutils/configure
++++ b/support/sdbinutils/configure
+@@ -787,6 +787,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -963,6 +964,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE}'
+@@ -1215,6 +1217,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1352,7 +1364,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1512,6 +1524,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/sdbinutils/libctf/configure b/support/sdbinutils/libctf/configure
+index 1b02c39..1506c75 100755
+--- a/support/sdbinutils/libctf/configure
++++ b/support/sdbinutils/libctf/configure
+@@ -780,6 +780,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -870,6 +871,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+@@ -1122,6 +1124,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1259,7 +1271,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1412,6 +1424,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/sdbinutils/libiberty/configure b/support/sdbinutils/libiberty/configure
+index 4c72b5a..65df275 100755
+--- a/support/sdbinutils/libiberty/configure
++++ b/support/sdbinutils/libiberty/configure
+@@ -690,6 +690,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -769,6 +770,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE}'
+@@ -1021,6 +1023,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1158,7 +1170,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1311,6 +1323,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/sdbinutils/libsframe/configure b/support/sdbinutils/libsframe/configure
+index 5f7604e..868a37f 100755
+--- a/support/sdbinutils/libsframe/configure
++++ b/support/sdbinutils/libsframe/configure
+@@ -749,6 +749,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -830,6 +831,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+@@ -1082,6 +1084,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1219,7 +1231,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1372,6 +1384,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+diff --git a/support/sdbinutils/opcodes/configure b/support/sdbinutils/opcodes/configure
+index 57020fa..dbca576 100755
+--- a/support/sdbinutils/opcodes/configure
++++ b/support/sdbinutils/opcodes/configure
+@@ -776,6 +776,7 @@ infodir
+ docdir
+ oldincludedir
+ includedir
++runstatedir
+ localstatedir
+ sharedstatedir
+ sysconfdir
+@@ -867,6 +868,7 @@ datadir='${datarootdir}'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
++runstatedir='${localstatedir}/run'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+@@ -1119,6 +1121,16 @@ do
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
++  -runstatedir | --runstatedir | --runstatedi | --runstated \
++  | --runstate | --runstat | --runsta | --runst | --runs \
++  | --run | --ru | --r)
++    ac_prev=runstatedir ;;
++  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
++  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
++  | --run=* | --ru=* | --r=*)
++    runstatedir=$ac_optarg ;;
++
++
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+@@ -1256,7 +1268,7 @@ fi
+ for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ 		datadir sysconfdir sharedstatedir localstatedir includedir \
+ 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+-		libdir localedir mandir
++		libdir localedir mandir runstatedir
+ do
+   eval ac_val=\$$ac_var
+   # Remove trailing slashes.
+@@ -1409,6 +1421,7 @@ Fine tuning of the installation directories:
+   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
++  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
+   --libdir=DIR            object code libraries [EPREFIX/lib]
+   --includedir=DIR        C header files [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc [/usr/include]

diff --git a/sdcc.spec b/sdcc.spec
index c68f446..86a3d4d 100644
--- a/sdcc.spec
+++ b/sdcc.spec
@@ -1,18 +1,16 @@
 Name:           sdcc
-Version:        4.5.0
-Release:        2%{?dist}
+Version:        4.6.0
+Release:        1%{?dist}
 Summary:        Small Device C Compiler
 # Automatically converted from old format: GPLv2+ - review is highly recommended.
 License:        GPL-2.0-or-later
 URL:            http://sdcc.sourceforge.net/
 Source0:        http://downloads.sourceforge.net/sdcc/sdcc-src-%{version}.tar.bz2
 Source1:        README.fedora
-Source2:        sdcc-%{version}-lyx-preferences
-Source3:        sdcc-%{version}-libierty-acinclude.m4
-Source4:	sdcc-%{version}-libcpp-aclocal.m4
-Source5:        sdcc-%{version}-libbacktrace.patch
-Patch1:		sdcc-%{version}-aslink.patch
-Patch2:		sdcc-%{version}-bool.patch
+Source2:        sdcc-lyx-preferences
+Patch1:		sdcc-diagnostic.patch
+Patch2:		sdcc-runstatedir.patch
+
 
 BuildRequires: make
 BuildRequires:  bison, gcc-c++, automake, libtool
@@ -51,8 +49,10 @@ if you want to modify the C library or as reference of how it works.
 %prep
 %setup -q -n sdcc-%{version}
 find . -regex '.*.\.[ch]*$' -executable -a -exec chmod a-x '{}' \;
-%patch 1 -p1
+%patch 1 -p0
 %patch 2 -p1
+
+
 # Disable brp-strip-static-archive for now because it errors trying to
 # strip foreign binaries.
 echo '%{__os_install_post}'
@@ -65,46 +65,8 @@ echo '%{__os_install_post}'
 # Preset PDFOPT to /bin/cp
 OPTS='PDFOPT="/bin/cp"'
 
-# The following is to get configure.ac files to work with current autoconf
-AUTO_VER=`autoconf -V | sed -n "s/.[^0-9]*\(2\.[0-9]*\)$/\1/"p`
-TAR_VER=2.69
-cd support/cpp
-sed -i -e /${TAR_VER}/s/${TAR_VER}/${AUTO_VER}/ config/override.m4 
-autoconf
-cd ../sdbinutils
-sed -i -e /${TAR_VER}/s/${TAR_VER}/${AUTO_VER}/ config/override.m4 
-autoconf
-cd libiberty
-# autoupdate does not properly convert configure.ac
-#this is a fudge as $libiberty_topdir not now defined when AC_CONFIG_AUX_DIR is used
-cp %SOURCE3  ./acinclude.m4
-sed -i -e '/AC_CONFIG_AUX_DIR/s/$libiberty_topdir/"..\/"/' configure.ac
-autoconf
-cd ../bfd
-sed -i -e /${TAR_VER}/s/${TAR_VER}/${AUTO_VER}/ aclocal.m4
-sed -i -e /bfd64.m4/d aclocal.m4
-sed -i -e /jobserver.m4/d aclocal.m4
-sed -i -e /GNU_MAKE_JOBSERVER/d configure.ac
-autoconf
-cd ../binutils
-sed -i -e /${TAR_VER}/s/${TAR_VER}/${AUTO_VER}/ aclocal.m4
-sed -i -e '/jobserver.m4\|pkg.m4/d' aclocal.m4
-sed -i -e '/GNU_MAKE_JOBSERVER\|jobserver.m4\|debuginfod.m4\|AC_DEBUGINFOD/d' configure.ac
-autoconf
-cd ../..
-cd cpp/gcc
-autoconf
-cd ../libcpp
-cp %SOURCE4  ./aclocal.m4
-autoconf
-cd ../libbacktrace
-cp %SOURCE4  ./aclocal.m4
-patch  -p0 <%SOURCE5
-#autoconf
-cd ../../..
-
-
-%configure --enable-doc --disable-non-free  STRIP=: ${OPTS} PYTHON=python3
+%configure --enable-doc --disable-non-free  STRIP=: ${OPTS} PYTHON=python3 
+
 mkdir -p ~/.lyx
 cp %SOURCE2  ~/.lyx/preferences
 %{__make} Q= QUIET=
@@ -119,6 +81,9 @@ mv $RPM_BUILD_ROOT%{_bindir}/*.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{n
 find $RPM_BUILD_ROOT -type f -name \*.c -exec chmod a-x '{}' \;
 mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/sdcc
 mv $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_libexecdir}/sdcc
+rm -rf $RPM_BUILD_ROOT/%{_datadir}/locale
+rm -rf $RPM_BUILD_ROOT/%{_prefix}/%{_host}
+
 
 
 # Create launch scripts in _bindir
@@ -143,6 +108,7 @@ pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/src/pic16
 find . -type f -name '*.a' -exec chmod 664 '{}' \;
 popd
 
+%check
 
 %files
 %doc installed-docs/*
@@ -164,6 +130,9 @@ popd
 
 
 %changelog
+* Sun Aug 30 2026 Roy Rankin <rrankin@ihug.com.au> - 4.6.0-1
+- upgrade to sdcc 4.6.0
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index 028491b..900cba6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (sdcc-src-4.5.0.tar.bz2) = 46edd0456d82ebeacc6e7b2ecf5038aac38ce161dc938662c438cca9c41f73b2004589788c18a0f1dd295033c9c35c202c052b463ec7bd8c605065d440d617f4
+SHA512 (sdcc-src-4.6.0.tar.bz2) = 5beac86cfb26ec00e2ddc21b5e0dae985da57865785aae6129202d480a95b5e4db1c7ccf90c28ddcc24e2654ca73bcb6a686c88ba09ad03af15077d32997541b

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-01  2:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-01  2:50 [rpms/sdcc] f45: update to 4.6.0 Roy Rankin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox