Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gcc7 for openSUSE:Factory checked in at 2022-09-01 22:12:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gcc7 (Old) and /work/SRC/openSUSE:Factory/.gcc7.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gcc7" Thu Sep 1 22:12:27 2022 rev:37 rq:1000697 version:7.5.0+r278197 Changes: -------- --- /work/SRC/openSUSE:Factory/gcc7/cross-aarch64-gcc7.changes 2022-02-28 19:44:22.669959479 +0100 +++ /work/SRC/openSUSE:Factory/.gcc7.new.2083/cross-aarch64-gcc7.changes 2022-09-01 22:13:02.476545829 +0200 @@ -1,0 +2,23 @@ +Thu Sep 1 10:15:12 UTC 2022 - Martin Li??ka <mli...@suse.cz> + +- Add gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch + and gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch + in order to support glibc 2.36. +- Enable format_spec_file otherwise one gets huge diff after + running change_spec. +- Remove fixed sys/mount.h. + +------------------------------------------------------------------- +Fri Apr 29 04:47:58 UTC 2022 - Antonio Larrosa <alarr...@suse.com> + +- Add patch from upstream to fix altivec.h redefining bool in C++ + which makes bool unusable (boo#1195517): + * gcc7-pr78263.patch + +------------------------------------------------------------------- +Fri Mar 11 07:10:31 UTC 2022 - Richard Biener <rguent...@suse.com> + +- Add gcc7-ada-Target_Name.patch to adjust gnats idea of the + target, fixing the build of gprbuild. [bsc#1196861] + +------------------------------------------------------------------- cross-arm-gcc7.changes: same change cross-arm-none-gcc7-bootstrap.changes: same change cross-arm-none-gcc7.changes: same change cross-avr-gcc7-bootstrap.changes: same change cross-avr-gcc7.changes: same change cross-epiphany-gcc7-bootstrap.changes: same change cross-epiphany-gcc7.changes: same change cross-hppa-gcc7.changes: same change cross-i386-gcc7.changes: same change cross-m68k-gcc7.changes: same change cross-mips-gcc7.changes: same change cross-nvptx-gcc7.changes: same change cross-ppc64-gcc7.changes: same change cross-ppc64le-gcc7.changes: same change cross-rx-gcc7-bootstrap.changes: same change cross-rx-gcc7.changes: same change cross-s390x-gcc7.changes: same change cross-sparc-gcc7.changes: same change cross-sparc64-gcc7.changes: same change cross-x86_64-gcc7.changes: same change gcc7-testresults.changes: same change gcc7.changes: same change New: ---- gcc7-ada-Target_Name.patch gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch gcc7-pr78263.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cross-aarch64-gcc7.spec ++++++ --- /var/tmp/diff_new_pack.6LiS4j/_old 2022-09-01 22:13:06.448555695 +0200 +++ /var/tmp/diff_new_pack.6LiS4j/_new 2022-09-01 22:13:06.452555706 +0200 @@ -143,6 +143,10 @@ Patch33: gcc7-sanitizer-cyclades.patch Patch34: gcc7-ada-MINSTKSZ.patch Patch35: gcc7-pr55917.patch +Patch36: gcc7-ada-Target_Name.patch +Patch37: gcc7-pr78263.patch +Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch +Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch # Some patches taken from Debian @@ -331,6 +335,10 @@ %patch33 -p1 %patch34 -p1 %patch35 -p1 +%patch36 -p1 +%patch37 -p1 +%patch38 -p1 +%patch39 -p1 %patch51 %patch60 %patch61 cross-arm-gcc7.spec: same change cross-arm-none-gcc7-bootstrap.spec: same change cross-arm-none-gcc7.spec: same change cross-avr-gcc7-bootstrap.spec: same change cross-avr-gcc7.spec: same change cross-epiphany-gcc7-bootstrap.spec: same change cross-epiphany-gcc7.spec: same change cross-hppa-gcc7.spec: same change cross-i386-gcc7.spec: same change cross-m68k-gcc7.spec: same change cross-mips-gcc7.spec: same change cross-nvptx-gcc7.spec: same change cross-ppc64-gcc7.spec: same change cross-ppc64le-gcc7.spec: same change cross-rx-gcc7-bootstrap.spec: same change cross-rx-gcc7.spec: same change cross-s390x-gcc7.spec: same change cross-sparc-gcc7.spec: same change cross-sparc64-gcc7.spec: same change cross-x86_64-gcc7.spec: same change gcc7-testresults.spec: same change ++++++ gcc7.spec ++++++ --- /var/tmp/diff_new_pack.6LiS4j/_old 2022-09-01 22:13:07.204557574 +0200 +++ /var/tmp/diff_new_pack.6LiS4j/_new 2022-09-01 22:13:07.212557594 +0200 @@ -319,6 +319,10 @@ Patch33: gcc7-sanitizer-cyclades.patch Patch34: gcc7-ada-MINSTKSZ.patch Patch35: gcc7-pr55917.patch +Patch36: gcc7-ada-Target_Name.patch +Patch37: gcc7-pr78263.patch +Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch +Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch # Some patches taken from Debian @@ -1850,6 +1854,10 @@ %patch33 -p1 %patch34 -p1 %patch35 -p1 +%patch36 -p1 +%patch37 -p1 +%patch38 -p1 +%patch39 -p1 %patch51 %patch60 %patch61 @@ -2457,6 +2465,7 @@ rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/pthread.h rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits/unistd_ext.h rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys/rseq.h +rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys/mount.h %if !%{enable_plugins} # no plugins rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin ++++++ change_spec ++++++ --- /var/tmp/diff_new_pack.6LiS4j/_old 2022-09-01 22:13:07.280557763 +0200 +++ /var/tmp/diff_new_pack.6LiS4j/_new 2022-09-01 22:13:07.288557783 +0200 @@ -120,7 +120,7 @@ sed -i -e '/^# .*-\(BEGIN\|END\)$/d' $f done -#osc service localrun format_spec_file +osc service localrun format_spec_file #exit 0 ++++++ gcc.spec.in ++++++ --- /var/tmp/diff_new_pack.6LiS4j/_old 2022-09-01 22:13:07.412558091 +0200 +++ /var/tmp/diff_new_pack.6LiS4j/_new 2022-09-01 22:13:07.420558110 +0200 @@ -326,6 +326,10 @@ Patch33: gcc7-sanitizer-cyclades.patch Patch34: gcc7-ada-MINSTKSZ.patch Patch35: gcc7-pr55917.patch +Patch36: gcc7-ada-Target_Name.patch +Patch37: gcc7-pr78263.patch +Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch +Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch # A set of patches from the RH srpm Patch51: gcc41-ppc32-retaddr.patch # Some patches taken from Debian @@ -1124,6 +1128,10 @@ %patch33 -p1 %patch34 -p1 %patch35 -p1 +%patch36 -p1 +%patch37 -p1 +%patch38 -p1 +%patch39 -p1 %patch51 %patch60 %patch61 @@ -1736,6 +1744,7 @@ rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/pthread.h rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/bits/unistd_ext.h rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys/rseq.h +rm -f $RPM_BUILD_ROOT%{libsubdir}/include-fixed/sys/mount.h %if !%{enable_plugins} # no plugins rm -rf $RPM_BUILD_ROOT%{libsubdir}/plugin ++++++ gcc7-ada-Target_Name.patch ++++++ >From 9467e7331188705ec16c086b77e1809c5b0aab7d Mon Sep 17 00:00:00 2001 From: Richard Biener <rguent...@suse.de> Date: Thu, 10 Mar 2022 13:35:46 +0100 Subject: [PATCH] ada/104861 - use target_noncanonial for Target_Name To: gcc-patc...@gcc.gnu.org The following arranges for s-oscons.ads to record target_noncanonical for Target_Name, matching the install directory layout and what gcc -dumpmachine says. This fixes build issues with gprbuild. 2022-03-10 Richard Biener <rguent...@suse.de> PR ada/104861 gcc/ada/ * gcc-interface/Makefile.in (target_noncanonical): Substitute. (OSCONS_CPP): Pass target_noncanonical as TARGET. --- gcc/ada/gcc-interface/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index b8a24708280..1e9801a8b96 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -138,6 +138,7 @@ objdir = . target_alias=@target_alias@ target=@target@ +target_noncanonical=@target_noncanonical@ target_cpu=@target_cpu@ target_vendor=@target_vendor@ target_os=@target_os@ @@ -598,7 +599,7 @@ OSCONS_CC=$(subst ./xgcc,../../xgcc,$(subst -B./, -B../../,$(GCC_FOR_TARGET))) # has a <types.h> header). OSCONS_CPP=$(OSCONS_CC) $(GNATLIBCFLAGS_FOR_C) -E -C \ - -DTARGET=\"$(target)\" -iquote $(fsrcpfx)ada $(fsrcpfx)ada/s-oscons-tmplt.c > s-oscons-tmplt.i + -DTARGET=\"$(target_noncanonical)\" -iquote $(fsrcpfx)ada $(fsrcpfx)ada/s-oscons-tmplt.c > s-oscons-tmplt.i OSCONS_EXTRACT=$(OSCONS_CC) $(GNATLIBCFLAGS_FOR_C) -S s-oscons-tmplt.i # Note: if you need to build with a non-GNU compiler, you could adapt the -- 2.34.1 ++++++ gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch ++++++ >From f35d65517a59565758107c5b1a51a5fa382f8d1a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor <i...@golang.org> Date: Tue, 12 Jul 2022 19:42:43 -0700 Subject: [PATCH] libgo: don't include <linux/fs.h> when building gen-sysinfo.go Removing this doesn't change anything at least with glibc 2.33. The include was added in https://go.dev/cl/6100049 but it's not clear why. Fixes PR go/106266 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294 --- gcc/go/gofrontend/MERGE | 2 +- libgo/sysinfo.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c index a4259c02ded..fc0210992fa 100644 --- a/libgo/sysinfo.c +++ b/libgo/sysinfo.c @@ -158,9 +158,6 @@ #if defined(HAVE_LINUX_ETHER_H) #include <linux/ether.h> #endif -#if defined(HAVE_LINUX_FS_H) -#include <linux/fs.h> -#endif #if defined(HAVE_LINUX_REBOOT_H) #include <linux/reboot.h> #endif -- 2.37.2 ++++++ gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch ++++++ >From 2701442d0cf6292f6624443c15813d6d1a3562fe Mon Sep 17 00:00:00 2001 From: Martin Liska <mli...@suse.cz> Date: Mon, 11 Jul 2022 22:03:14 +0200 Subject: [PATCH] libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream 9cf13067cb5088626ba7ee1ec4c42ec59c7995a0 [sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36 --- .../sanitizer_platform_limits_posix.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc index 97eae3f..dcedf75 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -62,7 +62,9 @@ #include <sys/vt.h> #include <linux/cdrom.h> #include <linux/fd.h> +#if SANITIZER_ANDROID #include <linux/fs.h> +#endif #include <linux/hdreg.h> #include <linux/input.h> #include <linux/ioctl.h> @@ -845,10 +847,10 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); unsigned IOCTL_EVIOCGPROP = IOCTL_NOT_PRESENT; unsigned IOCTL_EVIOCSKEYCODE_V2 = IOCTL_NOT_PRESENT; #endif - unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS; - unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION; - unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS; - unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION; + unsigned IOCTL_FS_IOC_GETFLAGS = _IOR('f', 1, long); + unsigned IOCTL_FS_IOC_GETVERSION = _IOR('v', 1, long); + unsigned IOCTL_FS_IOC_SETFLAGS = _IOW('f', 2, long); + unsigned IOCTL_FS_IOC_SETVERSION = _IOW('v', 2, long); unsigned IOCTL_GIO_CMAP = GIO_CMAP; unsigned IOCTL_GIO_FONT = GIO_FONT; unsigned IOCTL_GIO_UNIMAP = GIO_UNIMAP; ++++++ gcc7-pr78263.patch ++++++ >From e756e900e911fdbc57cd76d6c12d20a9b1892e55 Mon Sep 17 00:00:00 2001 From: Bill Schmidt <wschm...@linux.ibm.com> Date: Tue, 4 Jun 2019 21:52:32 +0000 Subject: [PATCH] re PR target/78263 (Compile failure with AltiVec library on PPC64le and -std=c++11 flag) [gcc] 2019-06-04 Bill Schmidt <wschm...@linux.ibm.com> PR target/78263 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for C++ with strict ANSI requirements. [gcc/testsuite] 2019-06-04 Bill Schmidt <wschm...@linux.ibm.com> PR target/78263 * g++.target/powerpc: New directory. * g++.target/powerpc/powerpc.exp: New test driver. * g++.target/powerpc/undef-bool-3.C: New. From-SVN: r271927 --- gcc/ChangeLog | 6 +++ gcc/config/rs6000/altivec.h | 8 ++-- gcc/testsuite/ChangeLog | 7 +++ gcc/testsuite/g++.target/powerpc/powerpc.exp | 44 +++++++++++++++++++ .../g++.target/powerpc/undef-bool-3.C | 13 ++++++ 5 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 gcc/testsuite/g++.target/powerpc/powerpc.exp create mode 100644 gcc/testsuite/g++.target/powerpc/undef-bool-3.C #diff --git a/gcc/ChangeLog b/gcc/ChangeLog #index 30febc6fecc..8b3fe98771d 100644 #--- a/gcc/ChangeLog #+++ b/gcc/ChangeLog #@@ -1,3 +1,9 @@ #+2019-06-04 Bill Schmidt <wschm...@linux.ibm.com> #+ #+ PR target/78263 #+ * config/rs6000/altivec.h: Don't #define vector, pixel, bool for #+ C++ with strict ANSI requirements. #+ # 2019-06-04 Marc Glisse <marc.gli...@inria.fr> # # * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip diff --git a/gcc/config/rs6000/altivec.h b/gcc/config/rs6000/altivec.h index d66ae7ca2c7..dafc76aeafa 100644 --- a/gcc/config/rs6000/altivec.h +++ b/gcc/config/rs6000/altivec.h @@ -37,10 +37,12 @@ /* If __APPLE_ALTIVEC__ is defined, the compiler supports 'vector', 'pixel' and 'bool' as context-sensitive AltiVec keywords (in non-AltiVec contexts, they revert to their original meanings, - if any), so we do not need to define them as macros. */ + if any), so we do not need to define them as macros. Also, + avoid defining them as macros for C++ with strict ANSI, as + this is not compatible. */ -#if !defined(__APPLE_ALTIVEC__) -/* You are allowed to undef these for C++ compatibility. */ +#if !defined(__APPLE_ALTIVEC__) \ + && (!defined(__STRICT_ANSI__) || !defined(__cplusplus)) #define vector __vector #define pixel __pixel #define bool __bool #diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog #index 5978f7905f3..7bcc461327d 100644 #--- a/gcc/testsuite/ChangeLog #+++ b/gcc/testsuite/ChangeLog #@@ -1,3 +1,10 @@ #+2019-06-04 Bill Schmidt <wschm...@linux.ibm.com> #+ #+ PR target/78263 #+ * g++.target/powerpc: New directory. #+ * g++.target/powerpc/powerpc.exp: New test driver. #+ * g++.target/powerpc/undef-bool-3.C: New. #+ # 2019-06-04 Jakub Jelinek <ja...@redhat.com> # # * c-c++-common/gomp/lastprivate-conditional-2.c (foo): Don't expect diff --git a/gcc/testsuite/g++.target/powerpc/powerpc.exp b/gcc/testsuite/g++.target/powerpc/powerpc.exp new file mode 100644 index 00000000000..4e7ea3311e6 --- /dev/null +++ b/gcc/testsuite/g++.target/powerpc/powerpc.exp @@ -0,0 +1,44 @@ +# Specific regression driver for PowerPC. +# Copyright (C) 2019 Free Software Foundation, Inc. +# +# This file is part of GCC. +# +# GCC is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GCC is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# <http://www.gnu.org/licenses/>. */ + +# GCC testsuite that uses the `dg.exp' driver. + +# Exit immediately if this isn't a PowerPC target. +if {![istarget powerpc*-*-*] } then { + return +} + +# Load support procs. +load_lib g++-dg.exp + +global DEFAULT_CXXFLAGS +if ![info exists DEFAULT_CXXFLAGS] then { + set DEFAULT_CXXFLAGS " -pedantic-errors" +} + +# Initialize `dg'. +dg-init + +# Main loop. +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.C]] \ + "" $DEFAULT_CXXFLAGS + +# All done. +dg-finish + diff --git a/gcc/testsuite/g++.target/powerpc/undef-bool-3.C b/gcc/testsuite/g++.target/powerpc/undef-bool-3.C new file mode 100644 index 00000000000..27f3da58217 --- /dev/null +++ b/gcc/testsuite/g++.target/powerpc/undef-bool-3.C @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -std=c++11" } */ + +/* Test to ensure that "bool" is not #define'd in altivec.h for C++ when + we require strict ANSI. We should compile without errors. */ + +#include <altivec.h> + +bool foo (int x) +{ + return x == 2; +} + -- 2.27.0