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-07-27 14:31:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gcc11 (Old) and /work/SRC/openSUSE:Factory/.gcc11.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gcc11" Tue Jul 27 14:31:51 2021 rev:7 rq:907486 version:11.1.1+git536 Changes: -------- New Changes file: --- /dev/null 2021-07-22 10:06:18.349420535 +0200 +++ /work/SRC/openSUSE:Factory/.gcc11.new.1899/cross-aarch64-gcc11-bootstrap.changes 2021-07-27 14:31:59.575488180 +0200 @@ -0,0 +1,175 @@ +------------------------------------------------------------------- +Wed Jul 21 09:08:04 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (076930b9690ac3564638636f6b), git536 + * Includes GCC 11.2 RC1. +- Refresh gcc10-foffload-default.patch + +------------------------------------------------------------------- +Wed Jul 21 09:06:11 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Properly adjust GPL-3.0 WITH GCC-exception-3.1 to + GPL-3.0-or-later WITH GCC-exception-3.1 + +------------------------------------------------------------------- +Mon Jul 19 14:49:07 UTC 2021 - Andreas Schwab <sch...@suse.de> + +- Remove bits/unistd_ext.h from include-fixed + +------------------------------------------------------------------- +Fri Jul 9 07:34:24 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Add BuildRequires on netcfg for the testsuite when testing Go. + +------------------------------------------------------------------- +Tue Jul 6 15:51:37 UTC 2021 - Michael Matz <m...@suse.com> + +- Provide a libc-bootstrap cross compiler for aarch64 and riscv64 +- More preparation for a full glibc cross compiler (not yet active) + +------------------------------------------------------------------- +Fri Jun 25 11:23:02 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (62bbb113ae68a7e724255e1714), git400 + * Fixes issue with legacy Fortran code. [gcc#101123, boo#1187273] + +------------------------------------------------------------------- +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 + +------------------------------------------------------------------- +Tue May 25 19:21:01 UTC 2021 - Andreas Schwab <sch...@suse.de> + +- Fix value of %slibdir64 for usrmerge + +------------------------------------------------------------------- +Mon May 10 12:08:19 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (23855a176609fe8dda6abaf2b2), git121 +- Disable build-id generation on non-glibc targeting cross compilers. + +------------------------------------------------------------------- +Thu Apr 29 08:39:32 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (cd0a059bd384da58d43674496a7), git67 + * Includes GCC 11.1 release +- Drop upstreamed gcc11-no-offload.patch. + +------------------------------------------------------------------- +Wed Apr 21 12:31:23 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (7a7fc01b9d20afb1a2b805d93cb), git31 + * Includes GCC 11.1 RC2 +- Add gcc11-no-offload.patch and + gcc11-amdgcn-disable-hot-cold-partitioning.patch. +- Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. +- Force using llvm11 for amdgcn offloading since llvm12 doesn't + yet work. Package expanded symlinks so concurrent installs do + not pull in another llvm-mc. +- Add gcc11-gdwarf-4-default.patch to default to DWARF4 generation + in SLES15 and older. + +------------------------------------------------------------------- +Tue Apr 20 14:57:07 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (27350b77a92062667427100afb4), git10 + * Includes GCC 11.1 RC1 + +------------------------------------------------------------------- +Fri Apr 16 19:54:03 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Bump to 49813aad3292f7f2bef69206274da78a9a7116ed. + +------------------------------------------------------------------- +Thu Apr 15 11:22:19 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Disable nvptx offloading on aarch64 since it doesn't work. + +------------------------------------------------------------------- +Wed Apr 14 19:51:08 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Bump to a87d3f964df31d4fbceb822c6d293e85c117d992. + +------------------------------------------------------------------- +Fri Apr 9 12:25:39 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Remove gcc48-remove-mpfr-2.4.0-requirement.patch which does no + longer apply. +- Arrange for a C++ 11 capable host compiler to be available. +- Do not require ISL for cross compiler builds on old distros. + +------------------------------------------------------------------- +Thu Apr 8 19:52:03 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Bump to 123b3e03c911a43054c1f88f5d3110e1d084dd4e. + +------------------------------------------------------------------- +Mon Mar 8 14:10:15 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update embedded newlib version from 3.3.0 to 4.1.0. + +------------------------------------------------------------------- +Mon Feb 22 10:44:40 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Pack %{GCCDIST}-gcc%{binsuffix}. +- Add a new dependency for libgccjit. + +------------------------------------------------------------------- +Fri Feb 5 08:40:22 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- New package, inherits from gcc10 + * gcc-add-defaultsspec.diff, add the ability to provide a specs + file that is read by default + * tls-no-direct.diff, avoid direct %fs references on x86 to not + slow down Xen + * gcc43-no-unwind-tables.diff, do not produce unwind tables for + CRT files + * gcc41-ppc32-retaddr.patch, fix expansion of __builtin_return_addr + for ppc, just a testcase + * gcc44-textdomain.patch, make translation files version specific + and adjust textdomain to find them + * gcc44-rename-info-files.patch, fix cross-references in info files + when renaming them to be version specific + * gcc48-libstdc++-api-reference.patch, fix link in the installed + libstdc++ html documentation + * gcc48-remove-mpfr-2.4.0-requirement.patch, make GCC work with + earlier mpfr versions on old products + * gcc5-no-return-gcc43-workaround.patch, make build work with + host gcc 4.3 + * gcc7-remove-Wexpansion-to-defined-from-Wextra.patch, removes + new warning from -Wextra + * gcc7-avoid-fixinc-error.diff + * gcc9-reproducible-builds-buildid-for-checksum.patch + * gcc9-reproducible-builds.patch + * gcc10-amdgcn-llvm-as.patch + * gcc10-foffload-default.patch +- libgccjit subpackage is added. +- HWASAN is built for aarch64 target. --- /work/SRC/openSUSE:Factory/gcc11/cross-aarch64-gcc11.changes 2021-07-03 20:50:34.544894724 +0200 +++ /work/SRC/openSUSE:Factory/.gcc11.new.1899/cross-aarch64-gcc11.changes 2021-07-27 14:31:59.619488136 +0200 @@ -1,0 +2,29 @@ +Wed Jul 21 09:08:04 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (076930b9690ac3564638636f6b), git536 + * Includes GCC 11.2 RC1. +- Refresh gcc10-foffload-default.patch + +------------------------------------------------------------------- +Wed Jul 21 09:06:11 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Properly adjust GPL-3.0 WITH GCC-exception-3.1 to + GPL-3.0-or-later WITH GCC-exception-3.1 + +------------------------------------------------------------------- +Mon Jul 19 14:49:07 UTC 2021 - Andreas Schwab <sch...@suse.de> + +- Remove bits/unistd_ext.h from include-fixed + +------------------------------------------------------------------- +Fri Jul 9 07:34:24 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Add BuildRequires on netcfg for the testsuite when testing Go. + +------------------------------------------------------------------- +Tue Jul 6 15:51:37 UTC 2021 - Michael Matz <m...@suse.com> + +- Provide a libc-bootstrap cross compiler for aarch64 and riscv64 +- More preparation for a full glibc cross compiler (not yet active) + +------------------------------------------------------------------- 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 New Changes file: --- /dev/null 2021-07-22 10:06:18.349420535 +0200 +++ /work/SRC/openSUSE:Factory/.gcc11.new.1899/cross-riscv64-gcc11-bootstrap.changes 2021-07-27 14:32:01.539486237 +0200 @@ -0,0 +1,175 @@ +------------------------------------------------------------------- +Wed Jul 21 09:08:04 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (076930b9690ac3564638636f6b), git536 + * Includes GCC 11.2 RC1. +- Refresh gcc10-foffload-default.patch + +------------------------------------------------------------------- +Wed Jul 21 09:06:11 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Properly adjust GPL-3.0 WITH GCC-exception-3.1 to + GPL-3.0-or-later WITH GCC-exception-3.1 + +------------------------------------------------------------------- +Mon Jul 19 14:49:07 UTC 2021 - Andreas Schwab <sch...@suse.de> + +- Remove bits/unistd_ext.h from include-fixed + +------------------------------------------------------------------- +Fri Jul 9 07:34:24 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Add BuildRequires on netcfg for the testsuite when testing Go. + +------------------------------------------------------------------- +Tue Jul 6 15:51:37 UTC 2021 - Michael Matz <m...@suse.com> + +- Provide a libc-bootstrap cross compiler for aarch64 and riscv64 +- More preparation for a full glibc cross compiler (not yet active) + +------------------------------------------------------------------- +Fri Jun 25 11:23:02 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (62bbb113ae68a7e724255e1714), git400 + * Fixes issue with legacy Fortran code. [gcc#101123, boo#1187273] + +------------------------------------------------------------------- +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 + +------------------------------------------------------------------- +Tue May 25 19:21:01 UTC 2021 - Andreas Schwab <sch...@suse.de> + +- Fix value of %slibdir64 for usrmerge + +------------------------------------------------------------------- +Mon May 10 12:08:19 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (23855a176609fe8dda6abaf2b2), git121 +- Disable build-id generation on non-glibc targeting cross compilers. + +------------------------------------------------------------------- +Thu Apr 29 08:39:32 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (cd0a059bd384da58d43674496a7), git67 + * Includes GCC 11.1 release +- Drop upstreamed gcc11-no-offload.patch. + +------------------------------------------------------------------- +Wed Apr 21 12:31:23 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (7a7fc01b9d20afb1a2b805d93cb), git31 + * Includes GCC 11.1 RC2 +- Add gcc11-no-offload.patch and + gcc11-amdgcn-disable-hot-cold-partitioning.patch. +- Enable gfortran for offload compilers. +- BuildRequire procps from gcc11-testresults if we test go. +- Force using llvm11 for amdgcn offloading since llvm12 doesn't + yet work. Package expanded symlinks so concurrent installs do + not pull in another llvm-mc. +- Add gcc11-gdwarf-4-default.patch to default to DWARF4 generation + in SLES15 and older. + +------------------------------------------------------------------- +Tue Apr 20 14:57:07 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (27350b77a92062667427100afb4), git10 + * Includes GCC 11.1 RC1 + +------------------------------------------------------------------- +Fri Apr 16 19:54:03 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Bump to 49813aad3292f7f2bef69206274da78a9a7116ed. + +------------------------------------------------------------------- +Thu Apr 15 11:22:19 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Disable nvptx offloading on aarch64 since it doesn't work. + +------------------------------------------------------------------- +Wed Apr 14 19:51:08 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Bump to a87d3f964df31d4fbceb822c6d293e85c117d992. + +------------------------------------------------------------------- +Fri Apr 9 12:25:39 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Remove gcc48-remove-mpfr-2.4.0-requirement.patch which does no + longer apply. +- Arrange for a C++ 11 capable host compiler to be available. +- Do not require ISL for cross compiler builds on old distros. + +------------------------------------------------------------------- +Thu Apr 8 19:52:03 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Bump to 123b3e03c911a43054c1f88f5d3110e1d084dd4e. + +------------------------------------------------------------------- +Mon Mar 8 14:10:15 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update embedded newlib version from 3.3.0 to 4.1.0. + +------------------------------------------------------------------- +Mon Feb 22 10:44:40 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- Pack %{GCCDIST}-gcc%{binsuffix}. +- Add a new dependency for libgccjit. + +------------------------------------------------------------------- +Fri Feb 5 08:40:22 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- New package, inherits from gcc10 + * gcc-add-defaultsspec.diff, add the ability to provide a specs + file that is read by default + * tls-no-direct.diff, avoid direct %fs references on x86 to not + slow down Xen + * gcc43-no-unwind-tables.diff, do not produce unwind tables for + CRT files + * gcc41-ppc32-retaddr.patch, fix expansion of __builtin_return_addr + for ppc, just a testcase + * gcc44-textdomain.patch, make translation files version specific + and adjust textdomain to find them + * gcc44-rename-info-files.patch, fix cross-references in info files + when renaming them to be version specific + * gcc48-libstdc++-api-reference.patch, fix link in the installed + libstdc++ html documentation + * gcc48-remove-mpfr-2.4.0-requirement.patch, make GCC work with + earlier mpfr versions on old products + * gcc5-no-return-gcc43-workaround.patch, make build work with + host gcc 4.3 + * gcc7-remove-Wexpansion-to-defined-from-Wextra.patch, removes + new warning from -Wextra + * gcc7-avoid-fixinc-error.diff + * gcc9-reproducible-builds-buildid-for-checksum.patch + * gcc9-reproducible-builds.patch + * gcc10-amdgcn-llvm-as.patch + * gcc10-foffload-default.patch +- libgccjit subpackage is added. +- HWASAN is built for aarch64 target. --- /work/SRC/openSUSE:Factory/gcc11/cross-riscv64-gcc11.changes 2021-07-03 20:50:36.568879159 +0200 +++ /work/SRC/openSUSE:Factory/.gcc11.new.1899/cross-riscv64-gcc11.changes 2021-07-27 14:32:01.555486221 +0200 @@ -1,0 +2,29 @@ +Wed Jul 21 09:08:04 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Update to gcc-11 branch head (076930b9690ac3564638636f6b), git536 + * Includes GCC 11.2 RC1. +- Refresh gcc10-foffload-default.patch + +------------------------------------------------------------------- +Wed Jul 21 09:06:11 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Properly adjust GPL-3.0 WITH GCC-exception-3.1 to + GPL-3.0-or-later WITH GCC-exception-3.1 + +------------------------------------------------------------------- +Mon Jul 19 14:49:07 UTC 2021 - Andreas Schwab <sch...@suse.de> + +- Remove bits/unistd_ext.h from include-fixed + +------------------------------------------------------------------- +Fri Jul 9 07:34:24 UTC 2021 - Richard Biener <rguent...@suse.com> + +- Add BuildRequires on netcfg for the testsuite when testing Go. + +------------------------------------------------------------------- +Tue Jul 6 15:51:37 UTC 2021 - Michael Matz <m...@suse.com> + +- Provide a libc-bootstrap cross compiler for aarch64 and riscv64 +- More preparation for a full glibc cross compiler (not yet active) + +------------------------------------------------------------------- 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+git400.tar.xz New: ---- cross-aarch64-gcc11-bootstrap.changes cross-aarch64-gcc11-bootstrap.spec cross-riscv64-gcc11-bootstrap.changes cross-riscv64-gcc11-bootstrap.spec gcc-11.1.1+git536.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cross-aarch64-gcc11-bootstrap.spec ++++++ ++++ 979 lines (skipped) ++++++ cross-aarch64-gcc11.spec ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:04.943482868 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:04.947482865 +0200 @@ -31,6 +31,9 @@ %endif %define build_cp 0%{!?gcc_accel:1} +%if 0%{?gcc_libc_bootstrap:1} +%define build_cp 0 +%endif %define build_ada 0 %define build_libjava 0 %define build_java 0 @@ -106,7 +109,7 @@ %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 URL: https://gcc.gnu.org/ -Version: 11.1.1+git400 +Version: 11.1.1+git536 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/+/-/') @@ -210,14 +213,17 @@ BuildRequires: libunwind-devel %endif %if 0%{!?gcc_icecream:1} -%if 0%{?gcc_target_newlib:1} && 0%{!?gcc_libc_bootstrap:1} +%if 0%{!?gcc_libc_bootstrap:1} +%if 0%{?gcc_target_newlib:1} BuildRequires: cross-%cross_arch-newlib-devel %endif -%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" == "avr" +%if "%{cross_arch}" == "avr" BuildRequires: avr-libc %endif %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel +Requires: cross-%cross_arch-glibc-devel +%endif %endif %if "%{cross_arch}" == "nvptx" BuildRequires: nvptx-tools @@ -266,6 +272,13 @@ Conflicts: cross-%{cross_arch}-gcc11 %endif #!BuildIgnore: gcc-PIE +%if 0%{build_cp:1} +# The cross compiler only packages the arch specific c++ headers, so +# we need to depend on the host libstdc++ devel headers (we wouldn't need +# the libs, though) +Requires: libstdc++6-devel-gcc11 +%endif +AutoReqProv: off BuildRequires: update-alternatives Requires(post): update-alternatives Requires(preun): update-alternatives @@ -461,7 +474,11 @@ %endif --with-bugurl="https://bugs.opensuse.org/" \ --with-pkgversion="SUSE Linux" \ +%if 0%{?sysroot:1} + --with-slibdir=%{sysroot}/%{_lib} \ +%else --with-slibdir=/%{_lib} \ +%endif --with-system-zlib \ --enable-libstdcxx-allocator=new \ --disable-libstdcxx-pch \ @@ -517,7 +534,14 @@ %if 0%{?gcc_target_newlib} --with-newlib \ %if 0%{?gcc_libc_bootstrap:1} - --without-headers \ + --disable-gcov \ +%endif +%else +%if 0%{?gcc_libc_bootstrap:1} + --disable-gcov --disable-threads --disable-shared \ + --disable-libmudflap --disable-libssp --disable-libgomp \ + --disable-libquadmath --disable-libatomic \ + --without-headers --with-newlib \ %endif %endif %if "%{TARGET_ARCH}" == "spu" @@ -670,7 +694,7 @@ --build=%{GCCDIST} \ --host=%{GCCDIST} -%if 0%{!?gcc_icecream:1} && 0%{!?gcc_libc_bootstrap:1} +%if 0%{!?gcc_icecream:1} make %{?_smp_mflags} %else make %{?_smp_mflags} all-host @@ -728,7 +752,6 @@ %if 0%{?gcc_icecream:1} # so expect the sysroot to be populated from natively built binaries %else -%if 0%{!?gcc_libc_bootstrap:1} # We want shared libraries to reside in the sysroot but the .so symlinks # on the host. Once we have a cross target that has shared libs we need # to manually fix up things here like we do for non-cross compilers @@ -746,7 +769,6 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/gcc%{binsuffix} %endif %endif -%endif %if 0%{?binutils_os:1} for prog in as ld; do @@ -838,7 +860,11 @@ %if %{build_cp} c++ g++ \ %endif - gcc-ar gcc-nm gcc-ranlib lto-dump gcov gcov-dump gcov-tool; do + gcc-ar gcc-nm gcc-ranlib lto-dump \ +%if 0%{!?gcc_libc_bootstrap:1} + gcov gcov-dump gcov-tool \ +%endif + ; do ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex done @@ -855,9 +881,11 @@ --slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \ +%if 0%{!?gcc_libc_bootstrap:1} --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ - --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} + --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \ +%endif %postun if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then @@ -879,27 +907,31 @@ %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} +%if 0%{!?gcc_libc_bootstrap:1} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%{_prefix}/bin/%{gcc_target_arch}-gcov +%{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%endif %{_prefix}/bin/%{gcc_target_arch}-gcc %{_prefix}/bin/%{gcc_target_arch}-cpp %{_prefix}/bin/%{gcc_target_arch}-gcc-ar %{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-lto-dump -%{_prefix}/bin/%{gcc_target_arch}-gcov -%{_prefix}/bin/%{gcc_target_arch}-gcov-dump -%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-lto-dump +%if 0%{!?gcc_libc_bootstrap:1} %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool +%endif %if %{build_cp} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} cross-amdgcn-gcc11.spec: same change cross-arm-gcc11.spec: same change cross-arm-none-gcc11-bootstrap.spec: same change cross-arm-none-gcc11.spec: same change cross-avr-gcc11-bootstrap.spec: same change cross-avr-gcc11.spec: same change cross-epiphany-gcc11-bootstrap.spec: same change cross-epiphany-gcc11.spec: same change cross-hppa-gcc11.spec: same change cross-i386-gcc11.spec: same change cross-m68k-gcc11.spec: same change cross-mips-gcc11.spec: same change cross-nvptx-gcc11.spec: same change cross-ppc64-gcc11.spec: same change cross-ppc64le-gcc11.spec: same change cross-riscv64-elf-gcc11-bootstrap.spec: same change cross-riscv64-elf-gcc11.spec: same change ++++++ cross-riscv64-gcc11-bootstrap.spec ++++++ ++++ 979 lines (skipped) ++++++ cross-riscv64-gcc11.spec ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:05.579482239 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:05.583482235 +0200 @@ -31,6 +31,9 @@ %endif %define build_cp 0%{!?gcc_accel:1} +%if 0%{?gcc_libc_bootstrap:1} +%define build_cp 0 +%endif %define build_ada 0 %define build_libjava 0 %define build_java 0 @@ -106,7 +109,7 @@ %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 URL: https://gcc.gnu.org/ -Version: 11.1.1+git400 +Version: 11.1.1+git536 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/+/-/') @@ -210,14 +213,17 @@ BuildRequires: libunwind-devel %endif %if 0%{!?gcc_icecream:1} -%if 0%{?gcc_target_newlib:1} && 0%{!?gcc_libc_bootstrap:1} +%if 0%{!?gcc_libc_bootstrap:1} +%if 0%{?gcc_target_newlib:1} BuildRequires: cross-%cross_arch-newlib-devel %endif -%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" == "avr" +%if "%{cross_arch}" == "avr" BuildRequires: avr-libc %endif %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel +Requires: cross-%cross_arch-glibc-devel +%endif %endif %if "%{cross_arch}" == "nvptx" BuildRequires: nvptx-tools @@ -266,6 +272,13 @@ Conflicts: cross-%{cross_arch}-gcc11 %endif #!BuildIgnore: gcc-PIE +%if 0%{build_cp:1} +# The cross compiler only packages the arch specific c++ headers, so +# we need to depend on the host libstdc++ devel headers (we wouldn't need +# the libs, though) +Requires: libstdc++6-devel-gcc11 +%endif +AutoReqProv: off BuildRequires: update-alternatives Requires(post): update-alternatives Requires(preun): update-alternatives @@ -461,7 +474,11 @@ %endif --with-bugurl="https://bugs.opensuse.org/" \ --with-pkgversion="SUSE Linux" \ +%if 0%{?sysroot:1} + --with-slibdir=%{sysroot}/%{_lib} \ +%else --with-slibdir=/%{_lib} \ +%endif --with-system-zlib \ --enable-libstdcxx-allocator=new \ --disable-libstdcxx-pch \ @@ -517,7 +534,14 @@ %if 0%{?gcc_target_newlib} --with-newlib \ %if 0%{?gcc_libc_bootstrap:1} - --without-headers \ + --disable-gcov \ +%endif +%else +%if 0%{?gcc_libc_bootstrap:1} + --disable-gcov --disable-threads --disable-shared \ + --disable-libmudflap --disable-libssp --disable-libgomp \ + --disable-libquadmath --disable-libatomic \ + --without-headers --with-newlib \ %endif %endif %if "%{TARGET_ARCH}" == "spu" @@ -670,7 +694,7 @@ --build=%{GCCDIST} \ --host=%{GCCDIST} -%if 0%{!?gcc_icecream:1} && 0%{!?gcc_libc_bootstrap:1} +%if 0%{!?gcc_icecream:1} make %{?_smp_mflags} %else make %{?_smp_mflags} all-host @@ -728,7 +752,6 @@ %if 0%{?gcc_icecream:1} # so expect the sysroot to be populated from natively built binaries %else -%if 0%{!?gcc_libc_bootstrap:1} # We want shared libraries to reside in the sysroot but the .so symlinks # on the host. Once we have a cross target that has shared libs we need # to manually fix up things here like we do for non-cross compilers @@ -746,7 +769,6 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/gcc%{binsuffix} %endif %endif -%endif %if 0%{?binutils_os:1} for prog in as ld; do @@ -838,7 +860,11 @@ %if %{build_cp} c++ g++ \ %endif - gcc-ar gcc-nm gcc-ranlib lto-dump gcov gcov-dump gcov-tool; do + gcc-ar gcc-nm gcc-ranlib lto-dump \ +%if 0%{!?gcc_libc_bootstrap:1} + gcov gcov-dump gcov-tool \ +%endif + ; do ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex done @@ -855,9 +881,11 @@ --slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \ +%if 0%{!?gcc_libc_bootstrap:1} --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ - --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} + --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \ +%endif %postun if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then @@ -879,27 +907,31 @@ %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} +%if 0%{!?gcc_libc_bootstrap:1} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%{_prefix}/bin/%{gcc_target_arch}-gcov +%{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%endif %{_prefix}/bin/%{gcc_target_arch}-gcc %{_prefix}/bin/%{gcc_target_arch}-cpp %{_prefix}/bin/%{gcc_target_arch}-gcc-ar %{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-lto-dump -%{_prefix}/bin/%{gcc_target_arch}-gcov -%{_prefix}/bin/%{gcc_target_arch}-gcov-dump -%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-lto-dump +%if 0%{!?gcc_libc_bootstrap:1} %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool +%endif %if %{build_cp} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} cross-rx-gcc11-bootstrap.spec: same change cross-rx-gcc11.spec: same change cross-s390x-gcc11.spec: same change cross-sparc-gcc11.spec: same change cross-sparc64-gcc11.spec: same change cross-x86_64-gcc11.spec: same change ++++++ gcc11-testresults.spec ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:05.843481978 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:05.847481974 +0200 @@ -206,7 +206,7 @@ %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 URL: https://gcc.gnu.org/ -Version: 11.1.1+git400 +Version: 11.1.1+git536 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/+/-/') @@ -275,6 +275,7 @@ BuildRequires: expect BuildRequires: gdb %if %{build_go} +BuildRequires: netcfg BuildRequires: procps %endif %if %{build_nvptx} @@ -663,7 +664,11 @@ %endif --with-bugurl="https://bugs.opensuse.org/" \ --with-pkgversion="SUSE Linux" \ +%if 0%{?sysroot:1} + --with-slibdir=%{sysroot}/%{_lib} \ +%else --with-slibdir=/%{_lib} \ +%endif --with-system-zlib \ --enable-libstdcxx-allocator=new \ --disable-libstdcxx-pch \ @@ -719,7 +724,14 @@ %if 0%{?gcc_target_newlib} --with-newlib \ %if 0%{?gcc_libc_bootstrap:1} - --without-headers \ + --disable-gcov \ +%endif +%else +%if 0%{?gcc_libc_bootstrap:1} + --disable-gcov --disable-threads --disable-shared \ + --disable-libmudflap --disable-libssp --disable-libgomp \ + --disable-libquadmath --disable-libatomic \ + --without-headers --with-newlib \ %endif %endif %if "%{TARGET_ARCH}" == "spu" ++++++ gcc11.spec ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:05.875481946 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:05.883481939 +0200 @@ -188,7 +188,7 @@ %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 URL: https://gcc.gnu.org/ -Version: 11.1.1+git400 +Version: 11.1.1+git536 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/+/-/') @@ -257,6 +257,7 @@ BuildRequires: expect BuildRequires: gdb %if %{build_go} +BuildRequires: netcfg BuildRequires: procps %endif %if %{build_nvptx} @@ -502,7 +503,7 @@ %package -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix} Summary: Include Files and Libraries mandatory for Development -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Requires: glibc-devel Requires: libstdc++%{libstdcxx_sover} >= %{version}-%{release} @@ -519,7 +520,7 @@ library. It is needed for compiling C++ code. %package -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-32bit Summary: Include Files and Libraries mandatory for Development -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Requires: glibc-devel-32bit Requires: libstdc++%{libstdcxx_sover}-32bit >= %{version}-%{release} @@ -536,7 +537,7 @@ library. It is needed for compiling C++ code. %package -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}-64bit Summary: Include Files and Libraries mandatory for Development -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Requires: glibc-devel-64bit Requires: libstdc++%{libstdcxx_sover}-64bit >= %{version}-%{release} @@ -610,7 +611,7 @@ %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix} Summary: C compiler runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgcc_s%{libgcc_s} = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -625,7 +626,7 @@ %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix} -p /sbin/ldconfig %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit Summary: C compiler runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgcc_s%{libgcc_s}-32bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -640,7 +641,7 @@ %postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit -p /sbin/ldconfig %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit Summary: C compiler runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgcc_s%{libgcc_s}-64bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -656,7 +657,7 @@ %package -n libgomp%{libgomp_sover}%{libgomp_suffix} Summary: The GNU compiler collection OpenMP runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgomp%{libgomp_sover} = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -675,7 +676,7 @@ %postun -n libgomp%{libgomp_sover}%{libgomp_suffix} -p /sbin/ldconfig %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit Summary: The GNU compiler collection OpenMP runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgomp%{libgomp_sover}-32bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -694,7 +695,7 @@ %postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit -p /sbin/ldconfig %package -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit Summary: The GNU compiler collection OpenMP runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgomp%{libgomp_sover}-64bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -714,7 +715,7 @@ %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix} Summary: The standard C++ shared library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Suggests: libstdc++%{libstdcxx_sover}-locale Provides: libstdc++%{libstdcxx_sover} = %{version}-%{release} @@ -731,7 +732,7 @@ %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix} -p /sbin/ldconfig %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit Summary: The standard C++ shared library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Suggests: libstdc++%{libstdcxx_sover}-locale Provides: libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release} @@ -748,7 +749,7 @@ %postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit -p /sbin/ldconfig %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit Summary: The standard C++ shared library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Suggests: libstdc++%{libstdcxx_sover}-locale Provides: libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release} @@ -766,7 +767,7 @@ %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale Summary: Standard C++ Library Locales -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -830,7 +831,7 @@ %package -n libobjc%{libobjc_sover}%{libobjc_suffix} Summary: Library for the GNU Objective C Compiler -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Libraries/Other Provides: libobjc%{libobjc_sover} = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -845,7 +846,7 @@ %postun -n libobjc%{libobjc_sover}%{libobjc_suffix} -p /sbin/ldconfig %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit Summary: Library for the GNU Objective C Compiler -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Libraries/Other Provides: libobjc%{libobjc_sover}-32bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -860,7 +861,7 @@ %postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit -p /sbin/ldconfig %package -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit Summary: Library for the GNU Objective C Compiler -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Libraries/Other Provides: libobjc%{libobjc_sover}-64bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -958,7 +959,7 @@ %package -n libada11 Summary: GNU Ada Runtime Libraries -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Provides: libgnarl-11 = %{version}-%{release} # FIXME: remove %{after} service-format_spec_file is fixed @@ -980,7 +981,7 @@ %postun -n libada11 -p /sbin/ldconfig %package -n libada11-32bit Summary: GNU Ada Runtime Libraries -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Provides: libgnarl-11-32bit = %{version}-%{release} # FIXME: remove %{after} service-format_spec_file is fixed @@ -1002,7 +1003,7 @@ %postun -n libada11-32bit -p /sbin/ldconfig %package -n libada11-64bit Summary: GNU Ada Runtime Libraries -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Provides: libgnarl-11-64bit = %{version}-%{release} # FIXME: remove %{after} service-format_spec_file is fixed @@ -1065,7 +1066,7 @@ %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix} Summary: The GNU Fortran Compiler Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/Fortran %ifarch %quadmath_arch Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release} @@ -1084,7 +1085,7 @@ %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix} -p /sbin/ldconfig %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit Summary: The GNU Fortran Compiler Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/Fortran %ifarch %quadmath_arch Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release} @@ -1103,7 +1104,7 @@ %postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit -p /sbin/ldconfig %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit Summary: The GNU Fortran Compiler Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/Fortran %ifarch %quadmath_arch Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release} @@ -1371,7 +1372,7 @@ %package -n libatomic%{libatomic_sover}%{libatomic_suffix} Summary: The GNU Compiler Atomic Operations Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Provides: libatomic%{libatomic_sover} = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -1386,7 +1387,7 @@ %postun -n libatomic%{libatomic_sover}%{libatomic_suffix} -p /sbin/ldconfig %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit Summary: The GNU Compiler Atomic Operations Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Provides: libatomic%{libatomic_sover}-32bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -1401,7 +1402,7 @@ %postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit -p /sbin/ldconfig %package -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit Summary: The GNU Compiler Atomic Operations Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Provides: libatomic%{libatomic_sover}-64bit = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -2082,7 +2083,11 @@ %endif --with-bugurl="https://bugs.opensuse.org/" \ --with-pkgversion="SUSE Linux" \ +%if 0%{?sysroot:1} + --with-slibdir=%{sysroot}/%{_lib} \ +%else --with-slibdir=/%{_lib} \ +%endif --with-system-zlib \ --enable-libstdcxx-allocator=new \ --disable-libstdcxx-pch \ @@ -2138,7 +2143,14 @@ %if 0%{?gcc_target_newlib} --with-newlib \ %if 0%{?gcc_libc_bootstrap:1} - --without-headers \ + --disable-gcov \ +%endif +%else +%if 0%{?gcc_libc_bootstrap:1} + --disable-gcov --disable-threads --disable-shared \ + --disable-libmudflap --disable-libssp --disable-libgomp \ + --disable-libquadmath --disable-libatomic \ + --without-headers --with-newlib \ %endif %endif %if "%{TARGET_ARCH}" == "spu" @@ -2577,6 +2589,7 @@ rm -f %{buildroot}/%{libsubdir}/include-fixed/linux/vt.h rm -f %{buildroot}/%{libsubdir}/include-fixed/asm-generic/socket.h rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/mathdef.h +rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/unistd_ext.h rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/ucontext.h rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/statx.h rm -f %{buildroot}/%{libsubdir}/include-fixed/pthread.h ++++++ change_spec ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:05.983481839 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:05.983481839 +0200 @@ -86,6 +86,11 @@ add_cross $1 $2 $3 "%define gcc_target_newlib 1" } +add_glibc_cross() { + add_cross $1-bootstrap $2 $3 "%define gcc_libc_bootstrap 1" + add_cross $1 $2 $3 "%define gcc_target_glibc 1" +} + # We now support "proper" cross-compilers to suse targets via a # cross-glibc package, enable that via for example # @@ -93,6 +98,7 @@ # # For now keep the old way of doing things if test "$do_crosses" = 1 ; then +add_cross cross-aarch64-gcc$base_ver-bootstrap aarch64 aarch64-suse-linux "%define gcc_libc_bootstrap 1" add_cross cross-aarch64-gcc$base_ver aarch64 aarch64-suse-linux %define gcc_icecream 1 add_cross cross-arm-gcc$base_ver arm arm-suse-linux-gnueabi %define gcc_icecream 1 add_cross cross-avr-gcc$base_ver-bootstrap avr avr "%define gcc_libc_bootstrap 1" @@ -107,6 +113,7 @@ add_cross cross-m68k-gcc$base_ver m68k m68k-suse-linux %define gcc_icecream 1 add_cross cross-mips-gcc$base_ver mips mips-suse-linux %define gcc_icecream 1 add_cross cross-hppa-gcc$base_ver hppa hppa-suse-linux %define gcc_icecream 1 +add_cross cross-riscv64-gcc$base_ver-bootstrap riscv64 riscv64-suse-linux "%define gcc_libc_bootstrap 1" add_cross cross-riscv64-gcc$base_ver riscv64 riscv64-suse-linux %define gcc_icecream 1 add_newlib_cross cross-arm-none-gcc$base_ver arm-none arm-none-eabi add_newlib_cross cross-epiphany-gcc$base_ver epiphany epiphany-elf ++++++ cross.spec.in ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:06.119481705 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:06.119481705 +0200 @@ -9,6 +9,9 @@ %endif %define build_cp 0%{!?gcc_accel:1} +%if 0%{?gcc_libc_bootstrap:1} +%define build_cp 0 +%endif %define build_ada 0 %define build_libjava 0 %define build_java 0 @@ -119,14 +122,17 @@ BuildRequires: libunwind-devel %endif %if 0%{!?gcc_icecream:1} -%if 0%{?gcc_target_newlib:1} && 0%{!?gcc_libc_bootstrap:1} +%if 0%{!?gcc_libc_bootstrap:1} +%if 0%{?gcc_target_newlib:1} BuildRequires: cross-%cross_arch-newlib-devel %endif -%if 0%{!?gcc_libc_bootstrap:1} && "%{cross_arch}" == "avr" +%if "%{cross_arch}" == "avr" BuildRequires: avr-libc %endif %if 0%{?gcc_target_glibc:1} BuildRequires: cross-%cross_arch-glibc-devel +Requires: cross-%cross_arch-glibc-devel +%endif %endif %if "%{cross_arch}" == "nvptx" BuildRequires: nvptx-tools @@ -175,10 +181,18 @@ Conflicts: cross-%{cross_arch}-gcc@base_ver@ %endif #!BuildIgnore: gcc-PIE +%if 0%{build_cp:1} +# The cross compiler only packages the arch specific c++ headers, so +# we need to depend on the host libstdc++ devel headers (we wouldn't need +# the libs, though) +Requires: libstdc++6-devel-gcc@base_ver@ +%endif +AutoReqProv: off BuildRequires: update-alternatives Requires(post): update-alternatives Requires(preun): update-alternatives Summary: The GNU Compiler Collection targeting %{cross_arch} +License: GPL-3.0-or-later %description The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}. @@ -194,7 +208,7 @@ # BUILD-COMMON-BEGIN # BUILD-COMMON-END -%if 0%{!?gcc_icecream:1} && 0%{!?gcc_libc_bootstrap:1} +%if 0%{!?gcc_icecream:1} make %{?_smp_mflags} %else make %{?_smp_mflags} all-host @@ -256,7 +270,6 @@ %if 0%{?gcc_icecream:1} # so expect the sysroot to be populated from natively built binaries %else -%if 0%{!?gcc_libc_bootstrap:1} # We want shared libraries to reside in the sysroot but the .so symlinks # on the host. Once we have a cross target that has shared libs we need # to manually fix up things here like we do for non-cross compilers @@ -274,7 +287,6 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/gcc%{binsuffix} %endif %endif -%endif %if 0%{?binutils_os:1} for prog in as ld; do @@ -366,7 +378,11 @@ %if %{build_cp} c++ g++ \ %endif - gcc-ar gcc-nm gcc-ranlib lto-dump gcov gcov-dump gcov-tool; do + gcc-ar gcc-nm gcc-ranlib lto-dump \ +%if 0%{!?gcc_libc_bootstrap:1} + gcov gcov-dump gcov-tool \ +%endif + ; do ln -s %{_sysconfdir}/alternatives/%{gcc_target_arch}-$ex \ %{buildroot}%{_bindir}/%{gcc_target_arch}-$ex done @@ -383,9 +399,11 @@ --slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \ +%if 0%{!?gcc_libc_bootstrap:1} --slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \ --slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \ - --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} + --slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \ +%endif %postun if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then @@ -407,27 +425,31 @@ %{_prefix}/bin/%{gcc_target_arch}-gcc-nm%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-lto-dump%{binsuffix} +%if 0%{!?gcc_libc_bootstrap:1} %{_prefix}/bin/%{gcc_target_arch}-gcov%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-dump%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-gcov-tool%{binsuffix} +%{_prefix}/bin/%{gcc_target_arch}-gcov +%{_prefix}/bin/%{gcc_target_arch}-gcov-dump +%{_prefix}/bin/%{gcc_target_arch}-gcov-tool +%endif %{_prefix}/bin/%{gcc_target_arch}-gcc %{_prefix}/bin/%{gcc_target_arch}-cpp %{_prefix}/bin/%{gcc_target_arch}-gcc-ar %{_prefix}/bin/%{gcc_target_arch}-gcc-nm %{_prefix}/bin/%{gcc_target_arch}-gcc-ranlib %{_prefix}/bin/%{gcc_target_arch}-lto-dump -%{_prefix}/bin/%{gcc_target_arch}-gcov -%{_prefix}/bin/%{gcc_target_arch}-gcov-dump -%{_prefix}/bin/%{gcc_target_arch}-gcov-tool %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-cpp %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ar %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-nm %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcc-ranlib %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-lto-dump +%if 0%{!?gcc_libc_bootstrap:1} %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-dump %ghost %{_sysconfdir}/alternatives/%{gcc_target_arch}-gcov-tool +%endif %if %{build_cp} %{_prefix}/bin/%{gcc_target_arch}-c++%{binsuffix} %{_prefix}/bin/%{gcc_target_arch}-g++%{binsuffix} ++++++ gcc-11.1.1+git400.tar.xz -> gcc-11.1.1+git536.tar.xz ++++++ /work/SRC/openSUSE:Factory/gcc11/gcc-11.1.1+git400.tar.xz /work/SRC/openSUSE:Factory/.gcc11.new.1899/gcc-11.1.1+git536.tar.xz differ: char 15, line 1 ++++++ gcc.spec.in ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:06.183481641 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:06.183481641 +0200 @@ -190,7 +190,7 @@ %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 URL: https://gcc.gnu.org/ -Version: 11.1.1+git400 +Version: 11.1.1+git536 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/+/-/') @@ -261,6 +261,7 @@ BuildRequires: gdb %if %{build_go} BuildRequires: procps +BuildRequires: netcfg %endif %if %{build_nvptx} BuildRequires: cross-nvptx-gcc@base_ver@ @@ -373,8 +374,8 @@ Patch100: newlib-4.1.0-aligned_alloc.patch # GCC-TESTSUITE-DELETE-BEGIN -License: GPL-3.0-or-later # SRC-COMMON-END +License: GPL-3.0-or-later Summary: The GNU C Compiler and Support Files %description @@ -488,7 +489,7 @@ # PACKAGE-BEGIN %package -n libstdc++%{libstdcxx_sover}-devel%{libdevel_suffix}@variant@ Summary: Include Files and Libraries mandatory for Development -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Requires: libstdc++%{libstdcxx_sover}@variant@ >= %{version}-%{release} Requires: glibc-devel@variant@ @@ -530,7 +531,7 @@ # PACKAGE-BEGIN %package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}@variant@ Summary: C compiler runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgcc_s%{libgcc_s}@variant@ = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -548,7 +549,7 @@ # PACKAGE-BEGIN %package -n libgomp%{libgomp_sover}%{libgomp_suffix}@variant@ Summary: The GNU compiler collection OpenMP runtime library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Base Provides: libgomp%{libgomp_sover}@variant@ = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -570,7 +571,7 @@ # PACKAGE-BEGIN %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}@variant@ Summary: The standard C++ shared library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Suggests: libstdc++%{libstdcxx_sover}-locale Provides: libstdc++%{libstdcxx_sover}@variant@ = %{version}-%{release} @@ -589,7 +590,7 @@ %package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale Summary: Standard C++ Library Locales -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -632,7 +633,7 @@ # PACKAGE-BEGIN %package -n libobjc%{libobjc_sover}%{libobjc_suffix}@variant@ Summary: Library for the GNU Objective C Compiler -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Libraries/Other Provides: libobjc%{libobjc_sover}@variant@ = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -690,7 +691,7 @@ # PACKAGE-BEGIN %package -n libada@base_ver@@variant@ Summary: GNU Ada Runtime Libraries -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: System/Libraries Provides: libgnarl-@base_ver@@variant@ = %{version}-%{release} # FIXME: remove %{after} service-format_spec_file is fixed @@ -731,7 +732,7 @@ # PACKAGE-BEGIN %package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}@variant@ Summary: The GNU Fortran Compiler Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/Fortran %ifarch %quadmath_arch Requires: libquadmath%{libquadmath_sover}@variant@ >= %{version}-%{release} @@ -850,7 +851,7 @@ # PACKAGE-BEGIN %package -n libatomic%{libatomic_sover}%{libatomic_suffix}@variant@ Summary: The GNU Compiler Atomic Operations Runtime Library -License: GPL-3.0 WITH GCC-exception-3.1 +License: GPL-3.0-or-later WITH GCC-exception-3.1 Group: Development/Languages/C and C++ Provides: libatomic%{libatomic_sover}@variant@ = %{version}-%{release} # Only one package may provide this - allows multiple gcc versions @@ -1323,7 +1324,11 @@ %endif --with-bugurl="https://bugs.opensuse.org/" \ --with-pkgversion="SUSE Linux" \ +%if 0%{?sysroot:1} + --with-slibdir=%{sysroot}/%{_lib} \ +%else --with-slibdir=/%{_lib} \ +%endif --with-system-zlib \ --enable-libstdcxx-allocator=new \ --disable-libstdcxx-pch \ @@ -1379,7 +1384,14 @@ %if 0%{?gcc_target_newlib} --with-newlib \ %if 0%{?gcc_libc_bootstrap:1} - --without-headers \ + --disable-gcov \ +%endif +%else +%if 0%{?gcc_libc_bootstrap:1} + --disable-gcov --disable-threads --disable-shared \ + --disable-libmudflap --disable-libssp --disable-libgomp \ + --disable-libquadmath --disable-libatomic \ + --without-headers --with-newlib \ %endif %endif %if "%{TARGET_ARCH}" == "spu" @@ -1823,6 +1835,7 @@ rm -f %{buildroot}/%{libsubdir}/include-fixed/linux/vt.h rm -f %{buildroot}/%{libsubdir}/include-fixed/asm-generic/socket.h rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/mathdef.h +rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/unistd_ext.h rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/ucontext.h rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/statx.h rm -f %{buildroot}/%{libsubdir}/include-fixed/pthread.h ++++++ gcc10-foffload-default.patch ++++++ --- /var/tmp/diff_new_pack.Nf8KYD/_old 2021-07-27 14:32:06.207481618 +0200 +++ /var/tmp/diff_new_pack.Nf8KYD/_new 2021-07-27 14:32:06.207481618 +0200 @@ -1,8 +1,8 @@ -diff --git a/gcc/gcc.c b/gcc/gcc.c -index 10bc9881aed..3082a91f9dc 100644 ---- a/gcc/gcc.c -+++ b/gcc/gcc.c -@@ -319,6 +319,10 @@ static const char *spec_host_machine = DEFAULT_REAL_TARGET_MACHINE; +Index: gcc-11.1.1+git536/gcc/gcc.c +=================================================================== +--- gcc-11.1.1+git536.orig/gcc/gcc.c ++++ gcc-11.1.1+git536/gcc/gcc.c +@@ -319,6 +319,10 @@ static const char *spec_host_machine = D static char *offload_targets = NULL; @@ -13,7 +13,7 @@ /* Nonzero if cross-compiling. When -b is used, the value comes from the `specs' file. */ -@@ -4711,7 +4715,10 @@ process_command (unsigned int decoded_options_count, +@@ -4830,7 +4834,10 @@ process_command (unsigned int decoded_op /* If the user didn't specify any, default to all configured offload targets. */ if (ENABLE_OFFLOADING && offload_targets == NULL) @@ -23,9 +23,9 @@ + offload_targets_default = true; + } - if (output_file - && strcmp (output_file, "-") != 0 -@@ -8367,6 +8374,8 @@ driver::maybe_putenv_OFFLOAD_TARGETS () const + /* Handle -gtoggle as it would later in toplev.c:process_options to + make the debug-level-gt spec function work as expected. */ +@@ -8498,6 +8505,8 @@ driver::maybe_putenv_OFFLOAD_TARGETS () obstack_grow (&collect_obstack, offload_targets, strlen (offload_targets) + 1); xputenv (XOBFINISH (&collect_obstack, char *)); @@ -34,11 +34,11 @@ } free (offload_targets); -diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c -index 82cfa6bd67e..f5185f9c69f 100644 ---- a/gcc/lto-wrapper.c -+++ b/gcc/lto-wrapper.c -@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see +Index: gcc-11.1.1+git536/gcc/lto-wrapper.c +=================================================================== +--- gcc-11.1.1+git536.orig/gcc/lto-wrapper.c ++++ gcc-11.1.1+git536/gcc/lto-wrapper.c +@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. /* Environment variable, used for passing the names of offload targets from GCC driver to lto-wrapper. */ #define OFFLOAD_TARGET_NAMES_ENV "OFFLOAD_TARGET_NAMES" @@ -46,7 +46,7 @@ /* By default there is no special suffix for target executables. */ #ifdef TARGET_EXECUTABLE_SUFFIX -@@ -906,6 +907,12 @@ compile_offload_image (const char *target, const char *compiler_path, +@@ -907,6 +908,12 @@ compile_offload_image (const char *targe break; } @@ -59,7 +59,7 @@ if (!compiler) fatal_error (input_location, "could not find %s in %s (consider using %<-B%>)", -@@ -990,8 +997,13 @@ compile_images_for_offload_targets (unsigned in_argc, char *in_argv[], +@@ -991,8 +998,13 @@ compile_images_for_offload_targets (unsi compiler_opts, compiler_opt_count, linker_opts, linker_opt_count); if (!offload_names[i]) @@ -75,11 +75,11 @@ } out: -diff --git a/libgomp/target.c b/libgomp/target.c -index 3e292eb8c62..060758bb826 100644 ---- a/libgomp/target.c -+++ b/libgomp/target.c -@@ -3015,7 +3015,7 @@ gomp_load_plugin_for_device (struct gomp_device_descr *device, +Index: gcc-11.1.1+git536/libgomp/target.c +=================================================================== +--- gcc-11.1.1+git536.orig/libgomp/target.c ++++ gcc-11.1.1+git536/libgomp/target.c +@@ -3173,7 +3173,7 @@ gomp_load_plugin_for_device (struct gomp void *plugin_handle = dlopen (plugin_name, RTLD_LAZY); if (!plugin_handle)