2 Commits

Author SHA256 Message Date
f69cbca452 Accepting request 1247752 from electronics
OBS-URL: https://build.opensuse.org/request/show/1247752
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sdcc?expand=0&rev=23
2025-02-22 18:04:51 +00:00
2d071ff5fd - Update to version 4.5.0
* New Feature List:
    - Full atomic_flag support for msc51 and ds390 ports
    - Experimental f8 port
    - ISO C2y case range expressions
    - ISO C2y _Generic selection expression with a type operand
    - K&R-style function syntax (preliminarily with the semantics
      of non-K&R ISO-style functions)
    - ISO C23 enums with user-specified underlying type
    - struct / union in initializers
- Workaround for VERBOSE=1 option in %make_build 
- Update to version 4.4.0
  * New Feature List:
    - Optimizations for rotations.
    - struct / union parameters for hc08, s08 and mos6502.
    - Many bug fixes for -ms08 --stack-auto.
    - struct / union return support for hc08 and s08 (caller side only).
    - Generalized constant propagation.
    - New command line option --syntax-only to only parse the input.
    - Added C99 header inttypes.h
    - Added library functions imaxabs, imaxdiv, llabs, strtoimax, strtoll, strtoull, strtoumax, wcsncmp, wcstoimax, wcstol, wcstoll, wcstoul, wcstoull, wcstoumax
    - New r800 port to better support the ASCII Corp R800 and Zilog Z280.
    - Changed the default calling convention for r2k, r2ka, r3ka, tlcs90, ez80-z80 from version 0 to 1 (this is an ABI break, and will require changes to user-written asm functions or their declarations).
    - Improved optimizations for code speed for stm8, pdk, z80 (and related).
    - New mos65c02 port to better support the WDC 65C02.
- Update to version 4.3.0
  * New Feature List:
    - C2X bit-precise integer types and bit-fields thereof for
      (except for pic14, pic16).
    - Added all new general mnemonics from ASxxxx 5.40 except for
      .bank and enabled for all ports
    - sm83: sdasgb now can output cycles in listing and sz80 has
      accurate cycles for this processor except for branching
    - struct / union return (except for ds390, hc08, s08, mos6502,
      pic14, pic16).
    - div standard library function family.
    - struct / union parameters (except for hc08, s08, mos6502,
      pic14, pic16).
    - C2X nullptr.
    - Many fixes for the type system and _Generic.
    - Adopted more of GCC, QuickC and tinycc tests.
    - C2X char8_t.
    - C2X memalignment.
    - C2X unreachable.
    - C2X typeof, typeof_unqual.
    - C2X auto.
    - C2X keywords bool, true, false, alignas, alignof, static_assert.
    - C90-C17 function declarators without prototypes.
    - C99 variably modified types.
    - C2X bit and byte utilities.
    - call_once.
    - _sdcc_external_startup renamed to __sdcc_external_startup
      and supported for all ports.
    - makeshift support for long double as another alias for float.
- Add option to build sdcc with non-free components (disabled now)
- Remove some non-working stuff from specfile
- Do not remove non-free stuff before building (breaks the build)
- Remove patch sdcc-pcode.patch (applied upstream)

OBS-URL: https://build.opensuse.org/package/show/electronics/sdcc?expand=0&rev=54
2025-02-21 20:18:17 +00:00
6 changed files with 91 additions and 32 deletions

View File

@@ -1,11 +0,0 @@
--- src/pic16/pcodepeep.c.orig
+++ src/pic16/pcodepeep.c
@@ -41,7 +41,7 @@ pCode * pic16_findNextInstruction(pCode
int pic16_getpCode(char *mnem,int dest);
int pic16_getpCodePeepCommand(char *cmd);
void pic16_pBlockMergeLabels(pBlock *pb);
-char *pic16_pCode2str(char *str, int size, pCode *pc);
+char *pic16_pCode2str(char *str, size_t size, pCode *pc);
//char *pic16_get_op(pCodeOp *pcop,char *buf, size_t buf_size);
pCodeOp *pic16_popCombine2(pCodeOp *, pCodeOp *, int);

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b49bae1d23bcd6057a82c4ffe5613f9cd0cbcfd1e940e9d84c4bfe9df0a8c053
size 19662367

3
sdcc-src-4.5.0.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d5030437fb436bb1d93a8dbdbfb46baaa60613318f4fb3f5871d72815d1eed80
size 20298103

View File

@@ -1,3 +1,69 @@
-------------------------------------------------------------------
Wed Feb 12 22:35:06 UTC 2025 - Wojciech Kazubski <wk@ire.pw.edu.pl>
- Update to version 4.5.0
* New Feature List:
- Full atomic_flag support for msc51 and ds390 ports
- Experimental f8 port
- ISO C2y case range expressions
- ISO C2y _Generic selection expression with a type operand
- K&R-style function syntax (preliminarily with the semantics
of non-K&R ISO-style functions)
- ISO C23 enums with user-specified underlying type
- struct / union in initializers
- Workaround for VERBOSE=1 option in %make_build
-------------------------------------------------------------------
Sun Jan 19 22:42:22 UTC 2025 - Wojciech Kazubski <wk@ire.pw.edu.pl>
- Update to version 4.4.0
* New Feature List:
- Optimizations for rotations.
- struct / union parameters for hc08, s08 and mos6502.
- Many bug fixes for -ms08 --stack-auto.
- struct / union return support for hc08 and s08 (caller side only).
- Generalized constant propagation.
- New command line option --syntax-only to only parse the input.
- Added C99 header inttypes.h
- Added library functions imaxabs, imaxdiv, llabs, strtoimax, strtoll, strtoull, strtoumax, wcsncmp, wcstoimax, wcstol, wcstoll, wcstoul, wcstoull, wcstoumax
- New r800 port to better support the ASCII Corp R800 and Zilog Z280.
- Changed the default calling convention for r2k, r2ka, r3ka, tlcs90, ez80-z80 from version 0 to 1 (this is an ABI break, and will require changes to user-written asm functions or their declarations).
- Improved optimizations for code speed for stm8, pdk, z80 (and related).
- New mos65c02 port to better support the WDC 65C02.
- Update to version 4.3.0
* New Feature List:
- C2X bit-precise integer types and bit-fields thereof for
(except for pic14, pic16).
- Added all new general mnemonics from ASxxxx 5.40 except for
.bank and enabled for all ports
- sm83: sdasgb now can output cycles in listing and sz80 has
accurate cycles for this processor except for branching
- struct / union return (except for ds390, hc08, s08, mos6502,
pic14, pic16).
- div standard library function family.
- struct / union parameters (except for hc08, s08, mos6502,
pic14, pic16).
- C2X nullptr.
- Many fixes for the type system and _Generic.
- Adopted more of GCC, QuickC and tinycc tests.
- C2X char8_t.
- C2X memalignment.
- C2X unreachable.
- C2X typeof, typeof_unqual.
- C2X auto.
- C2X keywords bool, true, false, alignas, alignof, static_assert.
- C90-C17 function declarators without prototypes.
- C99 variably modified types.
- C2X bit and byte utilities.
- call_once.
- _sdcc_external_startup renamed to __sdcc_external_startup
and supported for all ports.
- makeshift support for long double as another alias for float.
- Add option to build sdcc with non-free components (disabled now)
- Remove some non-working stuff from specfile
- Do not remove non-free stuff before building (breaks the build)
- Remove patch sdcc-pcode.patch (applied upstream)
-------------------------------------------------------------------
Wed Apr 3 13:49:43 UTC 2024 - Wojciech Kazubski <wk@ire.pw.edu.pl>

View File

@@ -1,7 +1,7 @@
#
# spec file for package sdcc
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,9 +15,10 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define with_non_free 0
Name: sdcc
Version: 4.2.0
Version: 4.5.0
Release: 0
Summary: Small Device C Compiler
License: GPL-2.0-or-later AND GPL-3.0-or-later
@@ -28,7 +29,6 @@ Source1: %{name}-rpmlintrc
Source2: sdccman.pdf
Patch0: 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch
Patch2: sdcc_enable_additional_target_libs.patch
Patch4: sdcc-pcode.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
@@ -55,11 +55,7 @@ BuildRequires: texlive-makeindex-bin
BuildRequires: texlive-ulem
BuildRequires: zlib-devel
BuildRequires: tex(footnote.sty)
%if 0%{?suse_version} >= 1500
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: libboost_headers-devel >= 1.79
%if 0%{?suse_version} >= 1500
BuildRequires: texlive-footnotehyper
%endif
@@ -102,27 +98,26 @@ development.
%setup -q
rm support/regression/tests/bug3304184.c
# remove non-free libraries, see doc/README.txt: Licenses
find device/non-free/ \( -iname \*.h -o -iname \*.c -o -iname \*.S \) -delete
# now breaks build, disabled
# find device/non-free/ \( -iname \*.h -o -iname \*.c -o -iname \*.S \) -delete
# remove spurious x bits from source files to make rpmlint happy.
find -name '*.[ch]' -perm -u=x | xargs chmod a-x
%patch -P 0 -p1
%patch -P 2 -p1
%patch -P 4
sed -i '1 s@.*@#!%{_bindir}/python3@' support/scripts/as2gbmap.py
%build
# Force configure to ignore missing, but unused TeX binaries
export LATEX2HTML=%{_bindir}/true
export DVIPDFM=%{_bindir}/true
export PYTHON=%{_bindir}/python3
%configure \
--docdir=%{_docdir}/sdcc \
--disable-non-free \
--disable-doc
--libexecdir=%{_libdir} \
%if ! 0%{with_non_free}
--disable-non-free
%endif
inkscape --export-area-drawing --export-pdf=doc/MCS51_named.pdf doc/MCS51_named.svg
export LDFLAGS=-s
%make_build
%make_build VERBOSE=
%if 0%{?suse_version} > 1500
%make_build -C doc sdccman.pdf
%else
@@ -175,6 +170,15 @@ mv %{buildroot}%{_datadir}/%{name}/src %{buildroot}%{_datadir}/%{name}/lib/src
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/include
%{_datadir}/%{name}/lib
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/*-suse-linux*
%dir %{_libdir}/%{name}/*-suse-linux*/12.1.0
%{_libdir}/%{name}/*-suse-linux*/12.1.0/cc1
%if 0%{with_non_free}
%dir %{_datadir}/%{name}/non-free
%{_datadir}/%{name}/non-free/include
%{_datadir}/%{name}/non-free/lib
%endif
%exclude %{_datadir}/%{name}/lib/src
%dir %{_datadir}/emacs/site-lisp
%{_datadir}/emacs/site-lisp/*.el

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c358daff97b0309f82ae1a398d0de389099c20f2fe810a5f3c5e5e1bec57b35a
size 1188946
oid sha256:cad9655b9c789bcc88a911bd3b81e0c4b4d559cac9543077b877c60f90fc996c
size 1032130