Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gcc11 for openSUSE:Factory checked 
in at 2021-06-20 19:37:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gcc11 (Old)
 and      /work/SRC/openSUSE:Factory/.gcc11.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gcc11"

Sun Jun 20 19:37:48 2021 rev:5 rq:900519 version:11.1.1+git340

Changes:
--------
--- /work/SRC/openSUSE:Factory/gcc11/cross-aarch64-gcc11.changes        
2021-06-02 22:10:33.812127370 +0200
+++ /work/SRC/openSUSE:Factory/.gcc11.new.2625/cross-aarch64-gcc11.changes      
2021-06-20 19:37:55.273508506 +0200
@@ -1,0 +2,31 @@
+Thu Jun 17 06:28:18 UTC 2021 - Richard Biener <rguent...@suse.com>
+
+- Update to gcc-11 branch head (79c1185de4a05fdea13b6b0207), git340
+  * Fixes ceph build failure.  [gcc#101078]
+
+-------------------------------------------------------------------
+Tue Jun 15 09:16:11 UTC 2021 - Richard Biener <rguent...@suse.com>
+
+- Change disable_32bit to only disable multilibs for arhcs subject
+  to 32bit/64bit handling and make it effective on x86_64.
+- Remove the duplicate spec header from cross.spec.in
+
+-------------------------------------------------------------------
+Thu Jun 10 10:03:37 UTC 2021 - Richard Biener <rguent...@suse.com>
+
+- Add newlib-4.1.0-aligned_alloc.patch to fix nvptx cross build
+  fail.  [bsc#1187153]
+
+-------------------------------------------------------------------
+Wed Jun  9 08:50:44 UTC 2021 - Richard Biener <rguent...@suse.com>
+
+- Update to gcc-11 branch head (c6d2487098f9dde4f9ac59e5be), git273
+
+-------------------------------------------------------------------
+Tue Jun  8 08:22:22 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- tune armv7 to generic-armv7-a
+- enable build for arm-none cross builders in rings,
+   needed by arm-trusted-firmware
+
+-------------------------------------------------------------------
cross-amdgcn-gcc11.changes: same change
cross-arm-gcc11.changes: same change
cross-arm-none-gcc11-bootstrap.changes: same change
cross-arm-none-gcc11.changes: same change
cross-avr-gcc11-bootstrap.changes: same change
cross-avr-gcc11.changes: same change
cross-epiphany-gcc11-bootstrap.changes: same change
cross-epiphany-gcc11.changes: same change
cross-hppa-gcc11.changes: same change
cross-i386-gcc11.changes: same change
cross-m68k-gcc11.changes: same change
cross-mips-gcc11.changes: same change
cross-nvptx-gcc11.changes: same change
cross-ppc64-gcc11.changes: same change
cross-ppc64le-gcc11.changes: same change
cross-riscv64-elf-gcc11-bootstrap.changes: same change
cross-riscv64-elf-gcc11.changes: same change
cross-riscv64-gcc11.changes: same change
cross-rx-gcc11-bootstrap.changes: same change
cross-rx-gcc11.changes: same change
cross-s390x-gcc11.changes: same change
cross-sparc-gcc11.changes: same change
cross-sparc64-gcc11.changes: same change
cross-x86_64-gcc11.changes: same change
gcc11-testresults.changes: same change
gcc11.changes: same change

Old:
----
  gcc-11.1.1+git121.tar.xz

New:
----
  gcc-11.1.1+git340.tar.xz
  newlib-4.1.0-aligned_alloc.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cross-aarch64-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.045512192 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.049512197 +0200
@@ -20,21 +20,13 @@
 %define cross_arch aarch64
 %define gcc_target_arch aarch64-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-amdgcn-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.069512224 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.069512224 +0200
@@ -20,21 +20,13 @@
 %define cross_arch amdgcn
 %define gcc_target_arch amdgcn-amdhsa
 %define gcc_accel 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-arm-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.089512251 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.093512256 +0200
@@ -20,21 +20,13 @@
 %define cross_arch arm
 %define gcc_target_arch arm-suse-linux-gnueabi
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-arm-none-gcc11-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.113512282 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.117512288 +0200
@@ -21,21 +21,13 @@
 %define gcc_target_arch arm-none-eabi
 %define gcc_target_newlib 1
 %define gcc_libc_bootstrap 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -115,7 +107,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -146,6 +138,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -295,6 +289,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -491,7 +488,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -580,7 +577,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -634,8 +631,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-arm-none-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.133512309 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.137512314 +0200
@@ -20,21 +20,13 @@
 %define cross_arch arm-none
 %define gcc_target_arch arm-none-eabi
 %define gcc_target_newlib 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-avr-gcc11-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.157512341 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.157512341 +0200
@@ -20,21 +20,13 @@
 %define cross_arch avr
 %define gcc_target_arch avr
 %define gcc_libc_bootstrap 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-avr-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.181512373 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.185512378 +0200
@@ -20,21 +20,13 @@
 %define cross_arch avr
 %define gcc_target_arch avr
 
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-epiphany-gcc11-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.201512400 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.205512405 +0200
@@ -21,21 +21,13 @@
 %define gcc_target_arch epiphany-elf
 %define gcc_target_newlib 1
 %define gcc_libc_bootstrap 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -115,7 +107,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -146,6 +138,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -295,6 +289,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -491,7 +488,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -580,7 +577,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -634,8 +631,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-epiphany-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.225512432 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.225512432 +0200
@@ -20,21 +20,13 @@
 %define cross_arch epiphany
 %define gcc_target_arch epiphany-elf
 %define gcc_target_newlib 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-hppa-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.245512458 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.249512464 +0200
@@ -20,21 +20,13 @@
 %define cross_arch hppa
 %define gcc_target_arch hppa-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-i386-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.265512485 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.269512489 +0200
@@ -20,21 +20,13 @@
 %define cross_arch i386
 %define gcc_target_arch i586-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-m68k-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.289512516 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.293512521 +0200
@@ -20,21 +20,13 @@
 %define cross_arch m68k
 %define gcc_target_arch m68k-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-mips-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.309512543 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.313512548 +0200
@@ -20,21 +20,13 @@
 %define cross_arch mips
 %define gcc_target_arch mips-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-nvptx-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.329512570 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.333512575 +0200
@@ -20,21 +20,13 @@
 %define cross_arch nvptx
 %define gcc_target_arch nvptx-none
 %define gcc_accel 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-ppc64-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.349512597 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.353512602 +0200
@@ -20,21 +20,13 @@
 %define cross_arch ppc64
 %define gcc_target_arch powerpc64-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-ppc64le-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.373512628 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.373512628 +0200
@@ -20,21 +20,13 @@
 %define cross_arch ppc64le
 %define gcc_target_arch powerpc64le-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-riscv64-elf-gcc11-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.393512655 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.393512655 +0200
@@ -21,21 +21,13 @@
 %define gcc_target_arch riscv64-elf
 %define gcc_target_newlib 1
 %define gcc_libc_bootstrap 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -115,7 +107,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -146,6 +138,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -295,6 +289,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -491,7 +488,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -580,7 +577,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -634,8 +631,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-riscv64-elf-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.413512681 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.417512687 +0200
@@ -20,21 +20,13 @@
 %define cross_arch riscv64
 %define gcc_target_arch riscv64-elf
 %define gcc_target_newlib 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-riscv64-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.433512708 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.437512713 +0200
@@ -20,21 +20,13 @@
 %define cross_arch riscv64
 %define gcc_target_arch riscv64-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-rx-gcc11-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.453512735 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.457512740 +0200
@@ -21,21 +21,13 @@
 %define gcc_target_arch rx-elf
 %define gcc_target_newlib 1
 %define gcc_libc_bootstrap 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -115,7 +107,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -146,6 +138,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -295,6 +289,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -491,7 +488,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -580,7 +577,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -634,8 +631,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-rx-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.477512766 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.477512766 +0200
@@ -20,21 +20,13 @@
 %define cross_arch rx
 %define gcc_target_arch rx-elf
 %define gcc_target_newlib 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-s390x-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.497512793 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.501512798 +0200
@@ -20,21 +20,13 @@
 %define cross_arch s390x
 %define gcc_target_arch s390x-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-sparc-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.517512820 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.521512825 +0200
@@ -20,21 +20,13 @@
 %define cross_arch sparcv9
 %define gcc_target_arch sparc-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-sparc64-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.537512846 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.537512846 +0200
@@ -20,21 +20,13 @@
 %define cross_arch sparc64
 %define gcc_target_arch sparc64-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross-x86_64-gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.557512872 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.557512872 +0200
@@ -20,21 +20,13 @@
 %define cross_arch x86_64
 %define gcc_target_arch x86_64-suse-linux
 %define gcc_icecream 1
-#
-# spec file template for cross packages of gcc${version}
-#
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch:  do-not-build
 %endif
 
@@ -114,7 +106,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -145,6 +137,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 # Define the canonical target and host architecture
 #   %%gcc_target_arch  is supposed to be the full target triple
@@ -294,6 +288,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -490,7 +487,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -579,7 +576,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -633,8 +630,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ gcc11-testresults.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.585512910 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.589512916 +0200
@@ -206,7 +206,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -297,6 +297,9 @@
 %ifarch x86_64 s390x ppc64 sparc64
 %define separate_bi32 1
 %endif
+%define disable_multilib_arch %{nil}
+%else
+%define disable_multilib_arch ppc sparcv9 x86_64 s390x ppc64 sparc64
 %endif
 
 # Define two macros to trigger -32bit or -64bit package variants
@@ -380,6 +383,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 Summary:        Testsuite results
 License:        SUSE-Public-Domain
@@ -485,6 +490,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -681,7 +689,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -770,7 +778,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -824,8 +832,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ gcc11.spec ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.609512941 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.613512948 +0200
@@ -188,7 +188,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:            https://gcc.gnu.org/
-Version:        11.1.1+git121
+Version:        11.1.1+git340
 Release:        0
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -279,6 +279,9 @@
 %ifarch x86_64 s390x ppc64 sparc64
 %define separate_bi32 1
 %endif
+%define disable_multilib_arch %{nil}
+%else
+%define disable_multilib_arch ppc sparcv9 x86_64 s390x ppc64 sparc64
 %endif
 
 # Define two macros to trigger -32bit or -64bit package variants
@@ -362,6 +365,8 @@
 # Some patches taken from Debian
 Patch60:        gcc44-textdomain.patch
 Patch61:        gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:       newlib-4.1.0-aligned_alloc.patch
 
 Summary:        The GNU C Compiler and Support Files
 License:        GPL-3.0-or-later
@@ -1904,6 +1909,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -2100,7 +2108,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -2189,7 +2197,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -2243,8 +2251,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ cross.spec.in ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.737513112 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.741513118 +0200
@@ -1,19 +1,10 @@
-#
-# spec file template for cross packages of gcc${version}
-#
-# Copyright (c) 2021 SUSE LLC
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
-
 # nospeccleaner
 
-# In the staging/ring projects, we don't want to build the cross-* packages, 
but by default, we do:
+# In the staging/ring projects, we don't want to build the unneeded
+#  cross-* packages, but by default, we do:
 %bcond_with ringdisabled
 
-%if %{with ringdisabled}
+%if "%{cross_arch}" != "arm-none" && "%{cross_arch}" != "arm" && %{with 
ringdisabled}
 ExclusiveArch: do-not-build
 %endif
 

++++++ gcc-11.1.1+git121.tar.xz -> gcc-11.1.1+git340.tar.xz ++++++
/work/SRC/openSUSE:Factory/gcc11/gcc-11.1.1+git121.tar.xz 
/work/SRC/openSUSE:Factory/.gcc11.new.2625/gcc-11.1.1+git340.tar.xz differ: 
char 15, line 1

++++++ gcc.spec.in ++++++
--- /var/tmp/diff_new_pack.UjYYld/_old  2021-06-20 19:37:58.793513187 +0200
+++ /var/tmp/diff_new_pack.UjYYld/_new  2021-06-20 19:37:58.793513187 +0200
@@ -190,7 +190,7 @@
 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
 
 URL:          https://gcc.gnu.org/
-Version: 11.1.1+git121
+Version: 11.1.1+git340
 Release:      1
 %define gcc_dir_version %(echo %version |  sed 's/+.*//' | cut -d '.' -f 1)
 %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' 
| sed 's/+/-/')
@@ -282,6 +282,9 @@
 %ifarch x86_64 s390x ppc64 sparc64
 %define separate_bi32 1
 %endif
+%define disable_multilib_arch %{nil}
+%else
+%define disable_multilib_arch ppc sparcv9 x86_64 s390x ppc64 sparc64
 %endif
 
 # Define two macros to trigger -32bit or -64bit package variants
@@ -366,6 +369,8 @@
 # Some patches taken from Debian
 Patch60:       gcc44-textdomain.patch
 Patch61:       gcc44-rename-info-files.patch
+# Patches for embedded newlib
+Patch100:      newlib-4.1.0-aligned_alloc.patch
 
 # GCC-TESTSUITE-DELETE-BEGIN
 License:        GPL-3.0-or-later
@@ -1145,6 +1150,9 @@
 %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
 %setup -q -n gcc-%{version} -a 5
 ln -s newlib-4.1.0/newlib .
+cd newlib
+%patch100 -p1
+cd ..
 %else
 %setup -q -n gcc-%{version}
 %endif
@@ -1341,7 +1349,7 @@
 %endif
 %endif
        --program-suffix=%{binsuffix} \
-%if 0%{?disable_32bit:1}
+%ifarch %{disable_multilib_arch}
        --disable-multilib \
 %endif
 %if 0%{!?gcc_target_arch:1}
@@ -1430,7 +1438,7 @@
 %endif
 %if "%{TARGET_ARCH}" == "armv7hl"
        --with-arch=armv7-a \
-       --with-tune=cortex-a15 \
+       --with-tune=generic-armv7-a \
        --with-float=hard \
        --with-abi=aapcs-linux \
        --with-fpu=vfpv3-d16 \
@@ -1484,8 +1492,10 @@
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "x86_64"
+%ifnarch %{disable_multilib_arch}
        --enable-multilib \
        --with-arch-32=x86-64 \
+%endif
        --with-tune=generic \
 %endif
 %if "%{TARGET_ARCH}" == "s390"

++++++ newlib-4.1.0-aligned_alloc.patch ++++++
--- newlib/libc/stdlib/aligned_alloc.c.orig     2021-06-10 12:01:10.692582985 
+0200
+++ newlib/libc/stdlib/aligned_alloc.c  2021-06-10 12:01:20.960708060 +0200
@@ -28,6 +28,7 @@
 
 #include <reent.h>
 #include <stdlib.h>
+#include <malloc.h>
 
 void *
 aligned_alloc (size_t align, size_t size)

Reply via email to