public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/avr-gcc] f45: updated to 15.3.0
@ 2026-11-04 14:17 Michal Hlavinka
0 siblings, 0 replies; only message in thread
From: Michal Hlavinka @ 2026-11-04 14:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/avr-gcc
Branch : f45
Commit : 461ecc79687cfd93d4a39921f186238ecadec378
Author : Michal Hlavinka <mhlavink@redhat.com>
Date : 2026-11-04T12:10:57+01:00
Stats : +7/-271 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/avr-gcc/c/461ecc79687cfd93d4a39921f186238ecadec378?branch=f45
Log:
updated to 15.3.0
---
diff --git a/.gitignore b/.gitignore
index e13e60e..b762ff7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,3 +41,4 @@ gcc-g++-4.5.1.tar.bz2
/gcc-14.2.0.tar.xz
/gcc-15.1.0.tar.xz
/gcc-15.2.0.tar.xz
+/gcc-15.3.0.tar.xz
diff --git a/avr-gcc-config.patch b/avr-gcc-config.patch
deleted file mode 100644
index 0d71d93..0000000
--- a/avr-gcc-config.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -Nrup a/gcc-9.2.0/libiberty/acinclude.m4 b/libiberty/acinclude.m4
---- a/gcc-9.2.0/libiberty/acinclude.m4 2019-01-19 09:01:34.000000000 -0700
-+++ b/gcc-9.2.0/libiberty/acinclude.m4 2020-01-09 22:00:27.183312982 -0700
-@@ -147,7 +147,7 @@ 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([__attribute__ ((noclone,noinline)) find_stack_direction ()
- {
- static char *addr = 0;
- auto char dummy;
-diff --git a/config/intdiv0.m4 b/gcc-9.2.0/config/intdiv0.m4
-index 55dddcf1..ba906efc 100644
---- a/gcc-9.2.0/config/intdiv0.m4
-+++ b/gcc-9.2.0/config/intdiv0.m4
-@@ -31,10 +31,10 @@ sigfpe_handler (sig) int sig;
- exit (sig != SIGFPE);
- }
-
--int x = 1;
--int y = 0;
--int z;
--int nan;
-+volatile int x = 1;
-+volatile int y = 0;
-+volatile int z;
-+volatile int nan;
-
- int main ()
- {
-diff --git a/gcc-9.2.0/libiberty/configure.ac b/gcc-9.2.0/libiberty/configure.ac
-index f1ce7601..fc20d228 100644
---- a/gcc-9.2.0/libiberty/configure.ac
-+++ b/gcc-9.2.0/libiberty/configure.ac
-@@ -661,7 +661,7 @@ if test -z "${setobjs}"; then
- for v in $vars; do
- AC_MSG_CHECKING([for $v])
- AC_CACHE_VAL(libiberty_cv_var_$v,
-- [AC_LINK_IFELSE([AC_LANG_PROGRAM([[int *p;]],[[extern int $v []; p = $v;]])],
-+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[__attribute__ ((used)) int *p;]],[[extern int $v []; p = $v;]])],
- [eval "libiberty_cv_var_$v=yes"],
- [eval "libiberty_cv_var_$v=no"])])
- if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
diff --git a/avr-gcc.spec b/avr-gcc.spec
index 8be3364..480e20d 100644
--- a/avr-gcc.spec
+++ b/avr-gcc.spec
@@ -3,8 +3,8 @@
Name: %{target}-gcc
#FIXME:11.2 fails with Werror-format-security https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
#revert -Wno-format-security once fix is available
-Version: 15.2.0
-Release: 2%{?dist}
+Version: 15.3.0
+Release: 1%{?dist}
Epoch: 1
Summary: Cross Compiling GNU GCC targeted at %{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
@@ -13,8 +13,6 @@ Source0: http://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
Source2: README.fedora
Patch0: avr-gcc-4.5.3-mint8.patch
-Patch1: avr-gcc-config.patch
-Patch2: gcc-15.2.0-ftbfs01.patch
BuildRequires: gcc-c++
BuildRequires: %{target}-binutils >= 1:2.23, zlib-devel gawk gmp-devel mpfr-devel libmpc-devel, flex
@@ -52,8 +50,6 @@ platform.
pushd gcc-%{version}
%patch -P0 -p2 -b .mint8
-#patch -P1 -p2 -b .config
-%patch -P 2 -p3 -b .ftbfs01
pushd libiberty
#autoconf -f
@@ -147,6 +143,9 @@ rm -r $RPM_BUILD_ROOT%{_libexecdir}/gcc/%{target}/%{version}/install-tools ||:
%changelog
+* Mon Nov 02 2026 Michal Hlavinka <mhlavink@redhat.com> - 1:15.3.0-1
+- updated to 15.3.0
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1:15.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/gcc-15.2.0-ftbfs01.patch b/gcc-15.2.0-ftbfs01.patch
deleted file mode 100644
index b61b261..0000000
--- a/gcc-15.2.0-ftbfs01.patch
+++ /dev/null
@@ -1,220 +0,0 @@
-diff -up avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/client.cc.ftbfs01 avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/client.cc
---- avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/client.cc.ftbfs01 2025-08-08 08:51:44.779982186 +0200
-+++ avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/client.cc 2026-01-22 14:56:32.585454501 +0100
-@@ -97,7 +97,7 @@ int Client::CommunicateWithServer ()
-
- static Packet CommunicationError (int err)
- {
-- std::string e {u8"communication error:"};
-+ std::string e {(const char *) u8"communication error:"};
- e.append (strerror (err));
-
- return Packet (Client::PC_ERROR, std::move (e));
-@@ -110,33 +110,34 @@ Packet Client::ProcessResponse (std::vec
- {
- if (e == EINVAL)
- {
-- std::string msg (u8"malformed string '");
-+ std::string msg ((const char *) u8"malformed string '");
- msg.append (words[0]);
-- msg.append (u8"'");
-+ msg.append ((const char *) u8"'");
- return Packet (Client::PC_ERROR, std::move (msg));
- }
- else
-- return Packet (Client::PC_ERROR, u8"missing response");
-+ return Packet (Client::PC_ERROR, (const char *) u8"missing response");
- }
-
- Assert (!words.empty ());
-- if (words[0] == u8"ERROR")
-+ if (words[0] == (const char *) u8"ERROR")
- return Packet (Client::PC_ERROR,
-- words.size () == 2 ? words[1]: u8"malformed error response");
-+ words.size () == 2 ? words[1]
-+ : (const char *) u8"malformed error response");
-
- if (isLast && !read.IsAtEnd ())
- return Packet (Client::PC_ERROR,
-- std::string (u8"unexpected extra response"));
-+ std::string ((const char *) u8"unexpected extra response"));
-
- Assert (code < Detail::RC_HWM);
- Packet result (responseTable[code] (words));
- result.SetRequest (code);
- if (result.GetCode () == Client::PC_ERROR && result.GetString ().empty ())
- {
-- std::string msg {u8"malformed response '"};
-+ std::string msg {(const char *) u8"malformed response '"};
-
- read.LexedLine (msg);
-- msg.append (u8"'");
-+ msg.append ((const char *) u8"'");
- result.GetString () = std::move (msg);
- }
- else if (result.GetCode () == Client::PC_CONNECT)
-@@ -199,7 +200,7 @@ Packet Client::Connect (char const *agen
- size_t alen, size_t ilen)
- {
- write.BeginLine ();
-- write.AppendWord (u8"HELLO");
-+ write.AppendWord ((const char *) u8"HELLO");
- write.AppendInteger (Version);
- write.AppendWord (agent, true, alen);
- write.AppendWord (ident, true, ilen);
-@@ -211,7 +212,8 @@ Packet Client::Connect (char const *agen
- // HELLO $version $agent [$flags]
- Packet ConnectResponse (std::vector<std::string> &words)
- {
-- if (words[0] == u8"HELLO" && (words.size () == 3 || words.size () == 4))
-+ if (words[0] == (const char *) u8"HELLO"
-+ && (words.size () == 3 || words.size () == 4))
- {
- char *eptr;
- unsigned long val = strtoul (words[1].c_str (), &eptr, 10);
-@@ -247,7 +249,7 @@ Packet Client::ModuleRepo ()
- // PATHNAME $dir | ERROR
- Packet PathnameResponse (std::vector<std::string> &words)
- {
-- if (words[0] == u8"PATHNAME" && words.size () == 2)
-+ if (words[0] == (const char *) u8"PATHNAME" && words.size () == 2)
- return Packet (Client::PC_PATHNAME, std::move (words[1]));
-
- return Packet (Client::PC_ERROR, u8"");
-@@ -256,7 +258,7 @@ Packet PathnameResponse (std::vector<std
- // OK or ERROR
- Packet OKResponse (std::vector<std::string> &words)
- {
-- if (words[0] == u8"OK")
-+ if (words[0] == (const char *) u8"OK")
- return Packet (Client::PC_OK);
- else
- return Packet (Client::PC_ERROR,
-@@ -319,11 +321,11 @@ Packet Client::IncludeTranslate (char co
- // PATHNAME $cmifile
- Packet IncludeTranslateResponse (std::vector<std::string> &words)
- {
-- if (words[0] == u8"BOOL" && words.size () == 2)
-+ if (words[0] == (const char *) u8"BOOL" && words.size () == 2)
- {
-- if (words[1] == u8"FALSE")
-- return Packet (Client::PC_BOOL, 0);
-- else if (words[1] == u8"TRUE")
-+ if (words[1] == (const char *) u8"FALSE")
-+ return Packet (Client::PC_BOOL);
-+ else if (words[1] == (const char *) u8"TRUE")
- return Packet (Client::PC_BOOL, 1);
- else
- return Packet (Client::PC_ERROR, u8"");
-diff -up avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/cody.hh.ftbfs01 avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/cody.hh
---- avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/cody.hh.ftbfs01 2025-08-08 08:51:44.779982186 +0200
-+++ avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/cody.hh 2026-01-22 14:56:32.585666740 +0100
-@@ -47,12 +47,21 @@ namespace Detail {
-
- // C++11 doesn't have utf8 character literals :(
-
-+#if __cpp_char8_t >= 201811
-+template<unsigned I>
-+constexpr char S2C (char8_t const (&s)[I])
-+{
-+ static_assert (I == 2, "only single octet strings may be converted");
-+ return s[0];
-+}
-+#else
- template<unsigned I>
- constexpr char S2C (char const (&s)[I])
- {
- static_assert (I == 2, "only single octet strings may be converted");
- return s[0];
- }
-+#endif
-
- /// Internal buffering class. Used to concatenate outgoing messages
- /// and Lex incoming ones.
-@@ -123,6 +132,13 @@ public:
- Space ();
- Append (str, maybe_quote, len);
- }
-+#if __cpp_char8_t >= 201811
-+ void AppendWord (char8_t const *str, bool maybe_quote = false,
-+ size_t len = ~size_t (0))
-+ {
-+ AppendWord ((const char *) str, maybe_quote, len);
-+ }
-+#endif
- /// Add a word as with AppendWord
- /// @param str the string to append
- /// @param maybe_quote string might need quoting, as for Append
-@@ -264,6 +280,12 @@ public:
- : string (s), cat (STRING), code (c)
- {
- }
-+#if __cpp_char8_t >= 201811
-+ Packet (unsigned c, const char8_t *s)
-+ : string ((const char *) s), cat (STRING), code (c)
-+ {
-+ }
-+#endif
- Packet (unsigned c, std::vector<std::string> &&v)
- : vector (std::move (v)), cat (VECTOR), code (c)
- {
-diff -up avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/server.cc.ftbfs01 avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/server.cc
---- avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/server.cc.ftbfs01 2025-08-08 08:51:44.781419988 +0200
-+++ avr-gcc-15.2.0-build/avr-gcc-15.2.0/gcc-15.2.0/libcody/server.cc 2026-01-22 14:56:32.585868450 +0100
-@@ -36,12 +36,12 @@ static RequestPair
- const requestTable[Detail::RC_HWM] =
- {
- // Same order as enum RequestCode
-- RequestPair {u8"HELLO", nullptr},
-- RequestPair {u8"MODULE-REPO", ModuleRepoRequest},
-- RequestPair {u8"MODULE-EXPORT", ModuleExportRequest},
-- RequestPair {u8"MODULE-IMPORT", ModuleImportRequest},
-- RequestPair {u8"MODULE-COMPILED", ModuleCompiledRequest},
-- RequestPair {u8"INCLUDE-TRANSLATE", IncludeTranslateRequest},
-+ RequestPair {(const char *) u8"HELLO", nullptr},
-+ RequestPair {(const char *) u8"MODULE-REPO", ModuleRepoRequest},
-+ RequestPair {(const char *) u8"MODULE-EXPORT", ModuleExportRequest},
-+ RequestPair {(const char *) u8"MODULE-IMPORT", ModuleImportRequest},
-+ RequestPair {(const char *) u8"MODULE-COMPILED", ModuleCompiledRequest},
-+ RequestPair {(const char *) u8"INCLUDE-TRANSLATE", IncludeTranslateRequest},
- };
- }
-
-@@ -135,21 +135,21 @@ void Server::ProcessRequests (void)
- std::string msg;
-
- if (err > 0)
-- msg = u8"error processing '";
-+ msg = (const char *) u8"error processing '";
- else if (ix >= Detail::RC_HWM)
-- msg = u8"unrecognized '";
-+ msg = (const char *) u8"unrecognized '";
- else if (IsConnected () && ix == Detail::RC_CONNECT)
-- msg = u8"already connected '";
-+ msg = (const char *) u8"already connected '";
- else if (!IsConnected () && ix != Detail::RC_CONNECT)
-- msg = u8"not connected '";
-+ msg = (const char *) u8"not connected '";
- else
-- msg = u8"malformed '";
-+ msg = (const char *) u8"malformed '";
-
- read.LexedLine (msg);
-- msg.append (u8"'");
-+ msg.append ((const char *) u8"'");
- if (err > 0)
- {
-- msg.append (u8" ");
-+ msg.append ((const char *) u8" ");
- msg.append (strerror (err));
- }
- resolver->ErrorResponse (this, std::move (msg));
-@@ -176,7 +176,7 @@ Resolver *ConnectRequest (Server *s, Res
- return nullptr;
-
- if (words.size () == 3)
-- words.emplace_back (u8"");
-+ words.emplace_back ((const char *) u8"");
- unsigned version = ParseUnsigned (words[1]);
- if (version == ~0u)
- return nullptr;
diff --git a/sources b/sources
index d34669e..950c814 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gcc-15.2.0.tar.xz) = 89047a2e07bd9da265b507b516ed3635adb17491c7f4f67cf090f0bd5b3fc7f2ee6e4cc4008beef7ca884b6b71dffe2bb652b21f01a702e17b468cca2d10b2de
+SHA512 (gcc-15.3.0.tar.xz) = 0de9e296153b52c021b1c7e63c9c62151d7a0ac03f23ce6e9f772c1b0eb783f6acdd81cc4567bfe4128a6f64968c2cfc8eff40b36229cba7425349f7d637c654
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 14:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 14:17 [rpms/avr-gcc] f45: updated to 15.3.0 Michal Hlavinka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox