Notification time stamped 2023-01-31 23:32:12 UTC
From 32110a83c5cf2424bc42c9c0ac501416be401507 Mon Sep 17 00:00:00 2001
From: Michal Hlavinka <mhlavink(a)redhat.com>
Date: Jan 31 2023 23:32:04 +0000
Subject: updated to 2.40
---
diff --git a/.gitignore b/.gitignore
index 567dd35..af94d2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@ binutils-2.20.tar.bz2
/binutils-2.37.tar.xz
/binutils-2.38.tar.xz
/binutils-2.39.tar.xz
+/binutils-2.40.tar.xz
diff --git a/30-binutils-2.20.1-avr-size.patch b/30-binutils-2.20.1-avr-size.patch
index d0c0d60..8cd5f33 100644
--- a/30-binutils-2.20.1-avr-size.patch
+++ b/30-binutils-2.20.1-avr-size.patch
@@ -267,7 +267,7 @@ diff -up avr-binutils-2.35/binutils-2.35/binutils/size.c.avr-size
avr-binutils-2
+ --mcu=<avrmcu> MCU name for AVR format only\n\
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex\n\
-t --totals Display the total sizes (Berkeley only)\n\
- --common Display total size for *COM* syms\n\
+ -f Ignored.\n\
@@ -113,6 +355,7 @@ usage (FILE *stream, int status)
#define OPTION_FORMAT (200)
#define OPTION_RADIX (OPTION_FORMAT + 1)
diff --git a/avr-binutils-config.patch b/avr-binutils-config.patch
index 68e760c..74058a7 100644
--- a/avr-binutils-config.patch
+++ b/avr-binutils-config.patch
@@ -1,6 +1,6 @@
-diff -up binutils-2.37/config/intdiv0.m4.bucfg binutils-2.37/config/intdiv0.m4
---- binutils-2.37/config/intdiv0.m4.bucfg 2021-07-08 13:37:19.000000000 +0200
-+++ binutils-2.37/config/intdiv0.m4 2021-07-20 23:32:54.614329820 +0200
+diff -up binutils-2.40/config/intdiv0.m4.config binutils-2.40/config/intdiv0.m4
+--- binutils-2.40/config/intdiv0.m4.config 2023-01-14 01:00:00.000000000 +0100
++++ binutils-2.40/config/intdiv0.m4 2023-02-01 00:18:41.739848290 +0100
@@ -31,10 +31,10 @@ sigfpe_handler (sig) int sig;
exit (sig != SIGFPE);
}
@@ -16,17 +16,15 @@ diff -up binutils-2.37/config/intdiv0.m4.bucfg
binutils-2.37/config/intdiv0.m4
int main ()
{
-diff -up binutils-2.37/libiberty/acinclude.m4.bucfg binutils-2.37/libiberty/acinclude.m4
---- binutils-2.37/libiberty/acinclude.m4.bucfg 2021-07-20 23:33:34.232852534 +0200
-+++ binutils-2.37/libiberty/acinclude.m4 2021-07-20 23:33:50.456657087 +0200
-@@ -157,7 +157,7 @@ if test $ac_cv_os_cray = yes; then
- fi
+diff -up binutils-2.40/libiberty/acinclude.m4.config
binutils-2.40/libiberty/acinclude.m4
+--- binutils-2.40/libiberty/acinclude.m4.config 2023-02-01 00:18:41.739848290 +0100
++++ binutils-2.40/libiberty/acinclude.m4 2023-02-01 00:21:33.305019866 +0100
+@@ -163,7 +163,7 @@ AC_CACHE_CHECK(stack direction for C all
+ [AC_TRY_RUN([#include <stdlib.h>
- 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 ()
+ int
+-find_stack_direction (void)
++__attribute__ ((noclone,noinline)) find_stack_direction (void)
{
static char *addr = 0;
auto char dummy;
-diff -up binutils-2.37/libiberty/aclocal.m4.bucfg binutils-2.37/libiberty/aclocal.m4
-diff -up binutils-2.37/libiberty/configure.ac.bucfg binutils-2.37/libiberty/configure.ac
diff --git a/avr-binutils.spec b/avr-binutils.spec
index d219772..743f750 100644
--- a/avr-binutils.spec
+++ b/avr-binutils.spec
@@ -1,8 +1,8 @@
%define target avr
Name: %{target}-binutils
-Version: 2.39
-Release: 3%{?dist}
+Version: 2.40
+Release: 1%{?dist}
Epoch: 1
Summary: Cross Compiling GNU binutils targeted at %{target}
License: GPLv2+
@@ -12,7 +12,6 @@ Source1: README.fedora
#add widespread options to avr-size: --format=avr -mcu=XX
Patch1:
http://distribute.atmel.no/tools/opensource/avr-gcc/binutils-2.20.1/30-bi...
Patch2: avr-binutils-config.patch
-Patch3: binutils-libiberty-configure-compile-warnings.patch
BuildRequires: gawk texinfo gcc
#for autoreconf:
@@ -32,7 +31,6 @@ native %{_arch} platform.
pushd binutils-%{version}
%patch1 -p2 -b .avr-size
%patch2 -p1 -b .config
-%patch3 -p1 -b .configure-c99
# We call configure directly rather than via macros, thus if
# we are using LTO, we have to manually fix the broken configure
@@ -86,6 +84,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
$RPM_BUILD_ROOT%{_libdir}/bfd-plugins/lib
%changelog
+* Wed Feb 01 2023 Michal Hlavinka <mhlavink(a)redhat.com> - 1:2.40-1
+- updated to 2.40
+
* Wed Jan 18 2023 Fedora Release Engineering <releng(a)fedoraproject.org> - 1:2.39-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
diff --git a/binutils-libiberty-configure-compile-warnings.patch
b/binutils-libiberty-configure-compile-warnings.patch
deleted file mode 100644
index 063f523..0000000
--- a/binutils-libiberty-configure-compile-warnings.patch
+++ /dev/null
@@ -1,285 +0,0 @@
-Taken from binutils-2.39-6.fc38 and tweaked to avoid patch conflict.
-
-diff -rup binutils.orig/libiberty/acinclude.m4 binutils-2.39/libiberty/acinclude.m4
---- binutils.orig/libiberty/acinclude.m4 2022-11-23 14:41:57.639262100 +0000
-+++ binutils-2.39/libiberty/acinclude.m4 2022-11-23 14:43:07.139042148 +0000
-@@ -24,6 +24,8 @@ AC_CACHE_CHECK([for working strncmp], ac
- [AC_TRY_RUN([
- /* Test by Jim Wilson and Kaveh Ghazi.
- Check whether strncmp reads past the end of its string parameters. */
-+#include <stdlib.h>
-+#include <string.h>
- #include <sys/types.h>
-
- #ifdef HAVE_FCNTL_H
-@@ -51,7 +53,8 @@ AC_CACHE_CHECK([for working strncmp], ac
-
- #define MAP_LEN 0x10000
-
--main ()
-+int
-+main (void)
- {
- #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
- char *p;
-@@ -157,7 +160,10 @@ 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([__attribute__ ((noclone,noinline)) find_stack_direction ()
-+[AC_TRY_RUN([#include <stdlib.h>
-+
-+int __attribute__ ((noclone,noinline))
-+find_stack_direction (void)
- {
- static char *addr = 0;
- auto char dummy;
-@@ -169,7 +175,9 @@ AC_CACHE_CHECK(stack direction for C all
- else
- return (&dummy > addr) ? 1 : -1;
- }
--main ()
-+
-+int
-+main (void)
- {
- exit (find_stack_direction() < 0);
- }],
-diff -rup binutils.orig/libiberty/configure binutils-2.39/libiberty/configure
---- binutils.orig/libiberty/configure 2022-11-23 14:41:57.652262059 +0000
-+++ binutils-2.39/libiberty/configure 2022-11-23 14:46:31.556395168 +0000
-@@ -1766,7 +1766,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- static int test_array [1 - 2 * !(($2) >= 0)];
- test_array [0] = 0;
-@@ -1783,7 +1783,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
- test_array [0] = 0;
-@@ -1810,7 +1810,7 @@ else
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- static int test_array [1 - 2 * !(($2) < 0)];
- test_array [0] = 0;
-@@ -1827,7 +1827,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- static int test_array [1 - 2 * !(($2) >= $ac_mid)];
- test_array [0] = 0;
-@@ -1862,7 +1862,7 @@ while test "x$ac_lo" != "x$ac_hi"; do
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
- test_array [0] = 0;
-@@ -1892,7 +1892,7 @@ static unsigned long int ulongval () { r
- #include <stdio.h>
- #include <stdlib.h>
- int
--main ()
-+main (void)
- {
-
- FILE *f = fopen ("conftest.val", "w");
-@@ -1952,7 +1952,7 @@ else
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- if (sizeof ($2))
- return 0;
-@@ -1965,7 +1965,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- if (sizeof (($2)))
- return 0;
-@@ -2037,7 +2037,7 @@ choke me
- #endif
-
- int
--main ()
-+main (void)
- {
- return $2 ();
- ;
-@@ -2077,7 +2077,7 @@ else
- /* end confdefs.h. */
- $4
- int
--main ()
-+main (void)
- {
- #ifndef $as_decl_name
- #ifdef __cplusplus
-@@ -3459,7 +3459,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
- /* end confdefs.h. */
- #include <stdio.h>
- int
--main ()
-+main (void)
- {
- printf ("hello world\n");
- ;
-@@ -3487,7 +3487,7 @@ else
- /* end confdefs.h. */
-
- int
--main ()
-+main (void)
- {
-
- ;
-@@ -3627,7 +3627,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
- /* end confdefs.h. */
- #include <stdio.h>
- int
--main ()
-+main (void)
- {
- FILE *f = fopen ("conftest.out", "w");
- return ferror (f) || fclose (f) != 0;
-@@ -3692,7 +3692,7 @@ else
- /* end confdefs.h. */
-
- int
--main ()
-+main (void)
- {
-
- ;
-@@ -3743,7 +3743,7 @@ else
- /* end confdefs.h. */
-
- int
--main ()
-+main (void)
- {
- #ifndef __GNUC__
- choke me
-@@ -3784,7 +3784,7 @@ else
- /* end confdefs.h. */
-
- int
--main ()
-+main (void)
- {
-
- ;
-@@ -3799,7 +3799,7 @@ else
- /* end confdefs.h. */
-
- int
--main ()
-+main (void)
- {
-
- ;
-@@ -3815,7 +3815,7 @@ else
- /* end confdefs.h. */
-
- int
--main ()
-+main (void)
- {
-
- ;
-@@ -3901,7 +3901,7 @@ int pairnames (int, char **, FILE *(*)(s
- int argc;
- char **argv;
- int
--main ()
-+main (void)
- {
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
-@@ -6919,7 +6919,10 @@ else
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--find_stack_direction ()
-+#include <stdlib.h>
-+
-+int
-+find_stack_direction (void)
- {
- static char *addr = 0;
- auto char dummy;
-@@ -6931,7 +6934,9 @@ find_stack_direction ()
- else
- return (&dummy > addr) ? 1 : -1;
- }
--main ()
-+
-+int
-+main (int)
- {
- exit (find_stack_direction() < 0);
- }
-@@ -7756,6 +7761,8 @@ else
-
- /* Test by Jim Wilson and Kaveh Ghazi.
- Check whether strncmp reads past the end of its string parameters. */
-+#include <stdlib.h>
-+#include <string.h>
- #include <sys/types.h>
-
- #ifdef HAVE_FCNTL_H
-@@ -7783,7 +7790,8 @@ else
-
- #define MAP_LEN 0x10000
-
--main ()
-+int
-+main (void)
- {
- #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
- char *p;
-diff -rup binutils.orig/gas/acinclude.m4 binutils-2.39/gas/acinclude.m4
---- binutils.orig/gas/acinclude.m4 2022-11-23 14:56:11.793442492 +0000
-+++ binutils-2.39/gas/acinclude.m4 2022-11-23 14:59:17.778057190 +0000
-@@ -23,6 +23,7 @@ AC_DEFUN([GAS_WORKING_ASSERT],
- [AC_MSG_CHECKING([for working assert macro])
- AC_CACHE_VAL(gas_cv_assert_ok,
- AC_TRY_LINK([#include <assert.h>
-+#include <string.h>
- #include <stdio.h>], [
- /* check for requoting problems */
- static int a, b, c, d;
-diff -rup binutils.orig/gas/configure binutils-2.39/gas/configure
---- binutils.orig/gas/configure 2022-11-23 14:56:12.402441231 +0000
-+++ binutils-2.39/gas/configure 2022-11-23 14:59:37.266016817 +0000
-@@ -13758,6 +13758,7 @@ else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <assert.h>
-+#include <string.h>
- #include <stdio.h>
- int
- main ()
diff --git a/sources b/sources
index 8c46b8b..d283e3e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (binutils-2.39.tar.xz) =
68e038f339a8c21faa19a57bbc447a51c817f47c2e06d740847c6e9cc3396c025d35d5369fa8c3f8b70414757c89f0e577939ddc0d70f283182504920f53b0a3
+SHA512 (binutils-2.40.tar.xz) =
a37e042523bc46494d99d5637c3f3d8f9956d9477b748b3b1f6d7dfbb8d968ed52c932e88a4e946c6f77b8f48f1e1b360ca54c3d298f17193f3b4963472f6925
https://src.fedoraproject.org/rpms/avr-binutils/c/32110a83c5cf2424bc42c9c...