From 9f2e74a70d637000bcbcffe6d237ac3e1e058530 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 19 Feb 2025 11:47:13 +0100 Subject: [PATCH 1/8] build for epel 10, trim changelog --- arm-none-eabi-gcc-cs.spec | 230 +------------------------------------- 1 file changed, 3 insertions(+), 227 deletions(-) diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index e00f1f3..e0b6f44 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -10,7 +10,7 @@ Name: %{target}-gcc-cs Epoch: 1 Version: 14.1.0 -Release: 3%{?dist} +Release: 1%{?dist} Summary: GNU GCC for cross-compilation for %{target} target License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-2-Clause URL: https://gcc.gnu.org/ @@ -292,229 +292,5 @@ popd %endif %changelog -* Thu Jan 16 2025 Fedora Release Engineering - 1:14.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Wed Jul 17 2024 Fedora Release Engineering - 1:14.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Wed May 22 2024 Michal Hlavinka - 1:14.1.0-1 -- full build of gcc 14.1 - -* Wed May 22 2024 Michal Hlavinka - 1:14.1.0-0 -- updated to 14.1.0, bootstrap build, do not use - -* Tue Mar 19 2024 Michal Hlavinka - 1:13.2.0-5 -- drop i686 build as not all i686 requirements are available anymore - -* Tue Mar 19 2024 Michal Hlavinka - 1:13.2.0-4 -- rebuild with updated newlib - -* Mon Jan 22 2024 Fedora Release Engineering - 1:13.2.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 1:13.2.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Tue Aug 29 2023 Michal Hlavinka - 1:13.2.0-1 -- updated to 13.2.0 - -* Wed Jul 19 2023 Fedora Release Engineering - 1:13.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jul 12 2023 Michal Hlavinka - 1:13.1.0-1 -- updated to 13.1.0 - -* Wed May 24 2023 Michal Hlavinka - 1:12.3.0-1 -- updated to 12.3.0 - -* Wed May 10 2023 Michal Hlavinka - 1:12.2.0-5 -- update license tag format (SPDX migration) for https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1 - -* Wed Apr 12 2023 Michal Hlavinka - 1:12.2.0-4 -- rebuild for updated newlib package - -* Thu Jan 19 2023 Florian Weimer - 1:12.2.0-3 -- Backport upstream patches for improved C99 compatibility - -* Wed Jan 18 2023 Fedora Release Engineering - 1:12.2.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Tue Aug 23 2022 Michal Hlavinka - 1:12.2.0-1 -- updated to 12.2.0 - -* Tue Aug 02 2022 Michal Hlavinka - 1:12.1.0-2 -- fix FTBFS (#2113112) - -* Wed Jul 27 2022 Michal Hlavinka - 1:12.1.0-1 -- updated to 12.1.0 - -* Wed Jul 20 2022 Fedora Release Engineering - 1:11.3.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Wed Jun 01 2022 Michal Hlavinka - 1:11.3.0-1 -- updated to 11.3.0 - -* Wed Jan 19 2022 Fedora Release Engineering - 1:11.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Jul 21 2021 Fedora Release Engineering - 1:11.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue May 04 2021 Michal Hlavinka - 1:11.1.0-1 -- regular build for 11.1.0 - -* Tue May 04 2021 Michal Hlavinka - 1:11.1.0-0 -- bootstrap build for 11.1.0 - -* Sun Apr 11 2021 Michal Hlavinka - 1:10.2.0-5 -- add explicit requirement for autoconf 2.69 - -* Wed Feb 24 2021 Jeff Law - 1:10.2.0-4 -- Packport fix for libbacktrace's handling of dwarf-5 - -* Tue Jan 26 2021 Fedora Release Engineering - 1:10.2.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Nov 04 2020 Michal Hlavinka - 1:10.2.0-2 -- regular build for 10.2.0 - -* Wed Nov 04 2020 Michal Hlavinka - 1:10.2.0-1 -- bootstrap build for gcc 10.2.0 - -* Mon Aug 10 2020 Jeff Law - 1:9.2.0-8 -- Disable LTO on s390x for now - -* Sat Aug 01 2020 Fedora Release Engineering - 1:9.2.0-7 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Mon Jul 27 2020 Fedora Release Engineering - 1:9.2.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Mon Jul 20 2020 Jeff Law - 1:9.2.0-5 -- Fix broken configured tests compromised by LTO -- Add autoconf to BuildRequires - -* Tue Jan 28 2020 Fedora Release Engineering - 1:9.2.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Sat Dec 14 2019 Jeff Law - 1:9.2.0-3 -- Backport change to libbacktrace testsuite so it works with gcc-10 - -* Wed Oct 9 2019 Jerry James - 1:9.2.0-2 -- Rebuild for mpfr 4 - -* Wed Aug 21 2019 Michal Hlavinka - 1:9.2.0-1 -- updated to 9.2.0 - -* Wed Jul 24 2019 Fedora Release Engineering - 1:7.4.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Wed Feb 27 2019 Michal Hlavinka - 1:7.4.0-1 -- updated to 7.4.0 - -* Thu Jan 31 2019 Fedora Release Engineering - 1:7.3.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Thu Jul 12 2018 Fedora Release Engineering - 1:7.3.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Mon Jul 09 2018 Michal Hlavinka - 1:7.3.0-1 -- updated to 7.3.0 -* Wed Feb 07 2018 Fedora Release Engineering - 1:7.1.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 02 2017 Fedora Release Engineering - 1:7.1.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1:7.1.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Jun 23 2017 Michal Hlavinka - 1:7.1.0-3 -- propper build for 7.1.0, prev one was still bootstrap - -* Fri Jun 23 2017 Michal Hlavinka - 1:7.1.0-2 -- propper build for 7.1.0 - -* Thu Jun 22 2017 Michal Hlavinka - 1:7.1.0-1 -- bootstrap build for 7.1.0 - -* Fri Feb 10 2017 Fedora Release Engineering - 1:6.2.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Sun Nov 13 2016 Michal Hlavinka - 1:6.2.0-2 -- propper build for 6.2.0 - -* Sun Nov 13 2016 Michal Hlavinka - 1:6.2.0-1 -- bootstrap build for 6.2.0 - -* Fri Jul 08 2016 Michal Hlavinka - 1:6.1.0-2 -- proper build of new version - -* Tue Jun 28 2016 Michal Hlavinka - 1:6.1.0-1 -- bootstrap build for gcc 6.1.0 - -* Wed Feb 03 2016 Fedora Release Engineering - 1:5.2.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Nov 12 2015 Michal Hlavinka - 1:5.2.0-3 -- build nano libstdc++ (credits: Andy Green) - -* Thu Sep 03 2015 Michal Hlavinka - 1:5.2.0-2 -- regular build of 5.2.0 - -* Wed Sep 02 2015 Michal Hlavinka - 1:5.2.0-1 -- bootstrap build of 5.2.0 update - -* Wed Jun 17 2015 Fedora Release Engineering - 1:5.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun May 31 2015 Michal Hlavinka - 1:5.1.0-3 -- updated to gcc 5.1.0 - -* Wed Apr 15 2015 Michal Hlavinka - 1:4.9.2-3 -- regular build - -* Wed Apr 15 2015 Michal Hlavinka - 1:4.9.2-2 -- add epoch number - -* Tue Apr 14 2015 Michal Hlavinka - 1:4.9.2-1 -- update to gcc 4.9.2 -- fix library compatiblity -- BOOTSTRAP version, not for regular use - -* Tue Sep 02 2014 Michal Hlavinka - 2014.05.28-2 -- update workaround that prevents stripping of arm libraries - -* Thu Aug 21 2014 Michal Hlavinka - 2014.05.28-1 -- updated to 2014.05-28 - -* Fri Aug 15 2014 Fedora Release Engineering - 2013.11.24-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 2013.11.24-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Thu Jan 16 2014 Michal Hlavinka - 2013.11.24-2 -- complete build with newlib - -* Tue Jan 14 2014 Michal Hlavinka - 2013.11.24-1 -- updated to 2013.11-24 - -* Fri Oct 11 2013 Michal Hlavinka - 2013.05.23-2 -- replace arm*-g++ with explanation script that this is just unsupported - package used for bootstrapping - -* Sun Aug 25 2013 Michal Hlavinka - 2013.05.23-1 -- updated to 2013.05-23 release (gcc 4.7.3) - -* Wed Aug 14 2013 Michal Hlavinka - 2012.09.63-3 -- fix aarch64 support (#925023) - -* Sat Aug 03 2013 Fedora Release Engineering - 2012.09.63-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Tue Feb 19 2013 Michal Hlavinka - 2012.09.63-1 -- initial package - +* Wed Feb 19 2025 Michal Hlavinka - 1:14.1.0-1 +- build for epel 10, trim changelog From 0f867c2ae6d305427c0fc71a9d2cc163da99239a Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 19 Feb 2025 12:16:02 +0100 Subject: [PATCH 2/8] we need bootstrap build first --- arm-none-eabi-gcc-cs.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index e0b6f44..8538b58 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -5,12 +5,12 @@ # we need newlib to compile complete gcc, but we need gcc to compile newlib, # so compile minimal gcc first -%global bootstrap 0 +%global bootstrap 1 Name: %{target}-gcc-cs Epoch: 1 Version: 14.1.0 -Release: 1%{?dist} +Release: 0%{?dist} Summary: GNU GCC for cross-compilation for %{target} target License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-2-Clause URL: https://gcc.gnu.org/ @@ -292,5 +292,5 @@ popd %endif %changelog -* Wed Feb 19 2025 Michal Hlavinka - 1:14.1.0-1 -- build for epel 10, trim changelog +* Wed Feb 19 2025 Michal Hlavinka - 1:14.1.0-0 +- bootstrap build for epel 10, trim changelog From 9e2dcb71e332c8fb6321515bb121b8c0a163b76a Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 19 Feb 2025 12:42:32 +0100 Subject: [PATCH 3/8] autogen is not available --- arm-none-eabi-gcc-cs.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index 8538b58..e783c67 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -23,7 +23,7 @@ Patch1: gcc12-hack.patch #BuildRequires: autoconf = 2.69 BuildRequires: gcc-c++ -BuildRequires: %{target}-binutils >= 2.21, zlib-devel gmp-devel mpfr-devel libmpc-devel flex autogen +BuildRequires: %{target}-binutils >= 2.21, zlib-devel gmp-devel mpfr-devel libmpc-devel flex %if ! %{bootstrap} BuildRequires: %{target}-newlib BuildRequires: make From 7eaea610e31d7ea36b14f293bbdac44e11342ed7 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Mon, 24 Feb 2025 22:50:36 +0100 Subject: [PATCH 4/8] propper build --- arm-none-eabi-gcc-cs.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index e783c67..74cea92 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -5,12 +5,12 @@ # we need newlib to compile complete gcc, but we need gcc to compile newlib, # so compile minimal gcc first -%global bootstrap 1 +%global bootstrap 0 Name: %{target}-gcc-cs Epoch: 1 Version: 14.1.0 -Release: 0%{?dist} +Release: 1%{?dist} Summary: GNU GCC for cross-compilation for %{target} target License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-2-Clause URL: https://gcc.gnu.org/ @@ -292,5 +292,8 @@ popd %endif %changelog +* Mon Feb 24 2025 Michal Hlavinka - 1:14.1.0-1 +- propper build + * Wed Feb 19 2025 Michal Hlavinka - 1:14.1.0-0 - bootstrap build for epel 10, trim changelog From 8a386ff6c648dcff2ea1423d123797fa992ae9aa Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Tue, 15 Apr 2025 21:44:48 +0200 Subject: [PATCH 5/8] rebuild for new arm-none-eabi-newlib --- arm-none-eabi-gcc-cs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index 74cea92..1960f20 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -10,7 +10,7 @@ Name: %{target}-gcc-cs Epoch: 1 Version: 14.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: GNU GCC for cross-compilation for %{target} target License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-2-Clause URL: https://gcc.gnu.org/ @@ -292,6 +292,9 @@ popd %endif %changelog +* Tue Apr 15 2025 Michal Hlavinka - 1:14.1.0-2 +- rebuild for new arm-none-eabi-newlib + * Mon Feb 24 2025 Michal Hlavinka - 1:14.1.0-1 - propper build From 2d38edb727dbe76dd59f9cbab16a952e518386da Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Tue, 20 May 2025 22:34:12 +0200 Subject: [PATCH 6/8] updated to 15.1 release --- .gitignore | 1 + arm-none-eabi-gcc-cs.spec | 16 +++-- gcc12-hack.patch | 126 -------------------------------------- sources | 2 +- 4 files changed, 9 insertions(+), 136 deletions(-) delete mode 100644 gcc12-hack.patch diff --git a/.gitignore b/.gitignore index 4e4be9b..1a46f6a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ /gcc-13.1.0.tar.xz /gcc-13.2.0.tar.xz /gcc-14.1.0.tar.xz +/gcc-15.1.0.tar.xz diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index 1960f20..d8cf71b 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -1,7 +1,7 @@ %global processor_arch arm %global target %{processor_arch}-none-eabi %global gcc_ver %{version} -%global gcc_short_ver 13.1 +%global gcc_short_ver 15.1 # we need newlib to compile complete gcc, but we need gcc to compile newlib, # so compile minimal gcc first @@ -9,8 +9,8 @@ Name: %{target}-gcc-cs Epoch: 1 -Version: 14.1.0 -Release: 2%{?dist} +Version: 15.1.0 +Release: 1%{?dist} Summary: GNU GCC for cross-compilation for %{target} target License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-2-Clause URL: https://gcc.gnu.org/ @@ -19,11 +19,9 @@ Source0: http://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz Source1: README.fedora Source2: bootstrapexplain -Patch1: gcc12-hack.patch - #BuildRequires: autoconf = 2.69 BuildRequires: gcc-c++ -BuildRequires: %{target}-binutils >= 2.21, zlib-devel gmp-devel mpfr-devel libmpc-devel flex +BuildRequires: %{target}-binutils >= 2.21, zlib-devel gmp-devel mpfr-devel libmpc-devel flex autogen %if ! %{bootstrap} BuildRequires: %{target}-newlib BuildRequires: make @@ -54,9 +52,6 @@ compile c++ code for the %{target} platform, instead of for the native %prep %setup -q -c -pushd gcc-%{gcc_ver} -%patch -P1 -p0 -b .hack -popd pushd gcc-%{gcc_ver}/libiberty #autoconf -f popd @@ -292,6 +287,9 @@ popd %endif %changelog +* Tue May 20 2025 Michal Hlavinka - 1:15.1.0-1 +- updated to 15.1 release + * Tue Apr 15 2025 Michal Hlavinka - 1:14.1.0-2 - rebuild for new arm-none-eabi-newlib diff --git a/gcc12-hack.patch b/gcc12-hack.patch deleted file mode 100644 index e98649e..0000000 --- a/gcc12-hack.patch +++ /dev/null @@ -1,126 +0,0 @@ ---- libada/Makefile.in.jj 2019-01-09 13:01:18.015608205 +0100 -+++ libada/Makefile.in 2019-01-11 18:16:23.441726931 +0100 -@@ -71,18 +71,40 @@ version := $(shell @get_gcc_base_ver@ $( - libsubdir := $(libdir)/gcc/$(target_noncanonical)/$(version)$(MULTISUBDIR) - ADA_RTS_DIR=$(GCC_DIR)/ada/rts$(subst /,_,$(MULTISUBDIR)) - -+DEFAULTMULTIFLAGS := -+ifeq ($(MULTISUBDIR),) -+targ:=$(subst -, ,$(target)) -+arch:=$(word 1,$(targ)) -+ifeq ($(words $(targ)),2) -+osys:=$(word 2,$(targ)) -+else -+osys:=$(word 3,$(targ)) -+endif -+ifeq ($(strip $(filter-out i%86 x86_64 powerpc% ppc% s390% sparc% linux%, $(arch) $(osys))),) -+ifeq ($(shell $(CC) $(CFLAGS) -print-multi-os-directory),../lib64) -+DEFAULTMULTIFLAGS := -m64 -+else -+ifeq ($(strip $(filter-out s390%, $(arch))),) -+DEFAULTMULTIFLAGS := -m31 -+else -+DEFAULTMULTIFLAGS := -m32 -+endif -+endif -+endif -+endif -+ - # exeext should not be used because it's the *host* exeext. We're building - # a *target* library, aren't we?!? Likewise for CC. Still, provide bogus - # definitions just in case something slips through the safety net provided - # by recursive make invocations in gcc/ada/Makefile.in - LIBADA_FLAGS_TO_PASS = \ - "MAKEOVERRIDES=" \ -- "LDFLAGS=$(LDFLAGS)" \ -+ "LDFLAGS=$(LDFLAGS) $(DEFAULTMULTIFLAGS)" \ - "LN_S=$(LN_S)" \ - "SHELL=$(SHELL)" \ -- "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS)" \ -- "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS)" \ -- "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS)" \ -+ "GNATLIBFLAGS=$(GNATLIBFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \ -+ "GNATLIBCFLAGS=$(GNATLIBCFLAGS) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \ -+ "GNATLIBCFLAGS_FOR_C=$(GNATLIBCFLAGS_FOR_C) $(MULTIFLAGS) $(DEFAULTMULTIFLAGS)" \ - "PICFLAG_FOR_TARGET=$(PICFLAG)" \ - "THREAD_KIND=$(THREAD_KIND)" \ - "TRACE=$(TRACE)" \ -@@ -93,7 +115,7 @@ LIBADA_FLAGS_TO_PASS = \ - "exeext=.exeext.should.not.be.used " \ - 'CC=the.host.compiler.should.not.be.needed' \ - "GCC_FOR_TARGET=$(CC)" \ -- "CFLAGS=$(CFLAGS)" -+ "CFLAGS=$(CFLAGS) $(DEFAULTMULTIFLAGS)" - - .PHONY: libada gnatlib gnatlib-shared gnatlib-sjlj gnatlib-zcx osconstool - ---- config-ml.in.jj 2019-01-09 12:50:16.646501448 +0100 -+++ config-ml.in 2019-01-11 18:16:23.442726914 +0100 -@@ -511,6 +511,8 @@ multi-do: - ADAFLAGS="$(ADAFLAGS) $${flags}" \ - prefix="$(prefix)" \ - exec_prefix="$(exec_prefix)" \ -+ mandir="$(mandir)" \ -+ infodir="$(infodir)" \ - GOCFLAGS="$(GOCFLAGS) $${flags}" \ - GDCFLAGS="$(GDCFLAGS) $${flags}" \ - CXXFLAGS="$(CXXFLAGS) $${flags}" \ ---- libcpp/macro.cc.jj 2019-01-09 13:01:21.420552123 +0100 -+++ libcpp/macro.cc 2019-01-11 18:18:17.736876285 +0100 -@@ -3256,8 +3256,6 @@ static cpp_macro * - create_iso_definition (cpp_reader *pfile) - { - bool following_paste_op = false; -- const char *paste_op_error_msg = -- N_("'##' cannot appear at either end of a macro expansion"); - unsigned int num_extra_tokens = 0; - unsigned nparms = 0; - cpp_hashnode **params = NULL; -@@ -3382,7 +3380,9 @@ create_iso_definition (cpp_reader *pfile - function-like macros, but not at the end. */ - if (following_paste_op) - { -- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg); -+ cpp_error (pfile, CPP_DL_ERROR, -+ "'##' cannot appear at either end of a macro " -+ "expansion"); - goto out; - } - if (!vaopt_tracker.completed ()) -@@ -3397,7 +3397,9 @@ create_iso_definition (cpp_reader *pfile - function-like macros, but not at the beginning. */ - if (macro->count == 1) - { -- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg); -+ cpp_error (pfile, CPP_DL_ERROR, -+ "'##' cannot appear at either end of a macro " -+ "expansion"); - goto out; - } - ---- libcpp/expr.cc.jj 2019-01-09 13:01:22.415535734 +0100 -+++ libcpp/expr.cc 2019-01-11 18:16:23.444726882 +0100 -@@ -803,16 +803,17 @@ cpp_classify_number (cpp_reader *pfile, - if ((result & CPP_N_WIDTH) == CPP_N_LARGE - && CPP_OPTION (pfile, cpp_warn_long_long)) - { -- const char *message = CPP_OPTION (pfile, cplusplus) -- ? N_("use of C++11 long long integer constant") -- : N_("use of C99 long long integer constant"); -- - if (CPP_OPTION (pfile, c99)) - cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location, -- 0, message); -+ 0, CPP_OPTION (pfile, cplusplus) -+ ? N_("use of C++11 long long integer constant") -+ : N_("use of C99 long long integer constant")); - else - cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG, -- virtual_location, 0, message); -+ virtual_location, 0, -+ CPP_OPTION (pfile, cplusplus) -+ ? N_("use of C++11 long long integer constant") -+ : N_("use of C99 long long integer constant")); - } - - if ((result & CPP_N_SIZE_T) == CPP_N_SIZE_T diff --git a/sources b/sources index fdd984b..4cd8c6e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gcc-14.1.0.tar.xz) = e9e224f2b26646fcf038d28dfa08b94c623bc57941f99894a321d01c600f7c68aff6b8837fd25e73e540de1f8de5606e98694a62cdcdfb525ce768b3ef6879ea +SHA512 (gcc-15.1.0.tar.xz) = ddd35ca6c653dffa88f7c7ef9ee4cd806e156e0f3b30f4d63e75a8363361285cd566ee73127734cde6a934611de815bee3e32e24bfd2e0ab9f7ff35c929821c1 From c298284ad0c934351d093b469b42e3182263db2c Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Tue, 20 May 2025 23:13:13 +0200 Subject: [PATCH 7/8] drop autogen BR as its not available --- arm-none-eabi-gcc-cs.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index d8cf71b..66d6cc5 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -21,7 +21,7 @@ Source2: bootstrapexplain #BuildRequires: autoconf = 2.69 BuildRequires: gcc-c++ -BuildRequires: %{target}-binutils >= 2.21, zlib-devel gmp-devel mpfr-devel libmpc-devel flex autogen +BuildRequires: %{target}-binutils >= 2.21, zlib-devel gmp-devel mpfr-devel libmpc-devel flex %if ! %{bootstrap} BuildRequires: %{target}-newlib BuildRequires: make From 49dd2c22772f863d2db08c04805b7766fa2b1306 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Wed, 21 May 2025 11:59:42 +0200 Subject: [PATCH 8/8] rebuild with refreshed newlib library --- arm-none-eabi-gcc-cs.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arm-none-eabi-gcc-cs.spec b/arm-none-eabi-gcc-cs.spec index 66d6cc5..8ea21a7 100644 --- a/arm-none-eabi-gcc-cs.spec +++ b/arm-none-eabi-gcc-cs.spec @@ -10,7 +10,7 @@ Name: %{target}-gcc-cs Epoch: 1 Version: 15.1.0 -Release: 1%{?dist} +Release: 3%{?dist} Summary: GNU GCC for cross-compilation for %{target} target License: GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.0-or-later AND MIT AND BSD-2-Clause URL: https://gcc.gnu.org/ @@ -287,6 +287,9 @@ popd %endif %changelog +* Wed May 21 2025 Michal Hlavinka - 1:15.1.0-3 +- rebuild with refreshed newlib library + * Tue May 20 2025 Michal Hlavinka - 1:15.1.0-1 - updated to 15.1 release