The package rpms/gcc.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/gcc.git/commit/?id=307b04232931f0....
Change:
+%ifarch x86_64 %{ix86} ppc64le s390x
Thanks.
Full change:
============
commit 3839c55548cf1c444972cc0d75147f84d4bbc3e9
Author: Jakub Jelinek <jakub(a)redhat.com>
Date: Wed Jul 28 11:23:09 2021 +0200
11.2.1-1
diff --git a/.gitignore b/.gitignore
index d12a258..641caa7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,3 +48,4 @@
/gcc-11.1.1-20210617.tar.xz
/gcc-11.1.1-20210623.tar.xz
/gcc-11.1.1-20210726.tar.xz
+/gcc-11.2.1-20210728.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 14e576e..e465466 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,10 +1,10 @@
-%global DATE 20210726
-%global gitrev 0b934a97129b060f95533a6b6ddf87141195728a
-%global gcc_version 11.1.1
+%global DATE 20210728
+%global gitrev 134ab8155c937122663513b76afa8e64ad61fe99
+%global gcc_version 11.2.1
%global gcc_major 11
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
-%global gcc_release 7
+%global gcc_release 1
%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0
@@ -1078,8 +1078,10 @@ CONFIGURE_OPTS="\
%ifnarch sparc sparcv9 ppc
--build=%{gcc_target_platform} \
%endif
+%if 0%{?fedora} >= 35
%ifarch x86_64 %{ix86} ppc64le s390x
--with-build-config=bootstrap-lto --enable-link-serialization=1 \
+%endif
%endif
"
@@ -3133,7 +3135,11 @@ end
%endif
%changelog
-- enable LTO profiledbootstrap on x86_64, i?86, ppc64le and s390x
+* Wed Jul 28 2021 Jakub Jelinek <jakub(a)redhat.com> 11.2.1-1
+- update from releases/gcc-11-branch
+ - GCC 11.2 release
+ - PRs middle-end/101586, rtl-optimization/101562
+- enable LTO profiledbootstrap on x86_64, i?86, ppc64le and s390x for f35+
* Mon Jul 26 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-7
- update from releases/gcc-11-branch
diff --git a/gcc11-libstdc++-docs.patch b/gcc11-libstdc++-docs.patch
index 7213d2c..4b4f9f8 100644
--- a/gcc11-libstdc++-docs.patch
+++ b/gcc11-libstdc++-docs.patch
@@ -4,7 +4,7 @@
<a class="link" href="https://www.fsf.org"
target="_top">FSF
</a>
</p><p>
-+ Release 11.1.1
++ Release 11.2.1
+ </p><p>
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
@@ -17,7 +17,7 @@
</p><p>
- The API documentation, rendered into HTML, can be viewed online
+ The API documentation, rendered into HTML, can be viewed locally
-+ <a class="link" href="api/index.html"
target="_top">for the 11.1.1 release</a>,
++ <a class="link" href="api/index.html"
target="_top">for the 11.2.1 release</a>,
+ online
<a class="link"
href="http://gcc.gnu.org/onlinedocs/"
target="_top">for each GCC release</a>
and
diff --git a/sources b/sources
index 26dc9a5..f0b890a 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-11.1.1-20210726.tar.xz) =
fcc8b1c0c5488363998bb3d7871052ec0ee198bebe05f4b11b4fb67153a91b6461ade116b3cbe49efc2a167176e05b2997b8796586a42bdc879c2bef1579ab77
+SHA512 (gcc-11.2.1-20210728.tar.xz) =
2234298652f882151aead486bb22481ba8181df69b9c7c5d73b8aa505ace58462fcd0b482680f466e2d21dc47e869651c7dbf224b65791ca47204dab01e89e7c
SHA512 (isl-0.18.tar.bz2) =
85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) =
002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) =
f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
diff --git a/update-gcc.sh b/update-gcc.sh
index 67b42a0..644b209 100755
--- a/update-gcc.sh
+++ b/update-gcc.sh
@@ -3,5 +3,5 @@
git clone --depth 1
git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin $1
d=`date --iso | sed 's/-//g'`
-git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-11.1.1-$d/ $1 | xz -9e >
gcc-11.1.1-$d.tar.xz
+git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-11.2.1-$d/ $1 | xz -9e >
gcc-11.2.1-$d.tar.xz
rm -rf gcc-dir.tmp
commit 307b04232931f0da763d35539a203970190bd2be
Author: Jakub Jelinek <jakub(a)redhat.com>
Date: Tue Jul 27 14:30:00 2021 +0200
- enable LTO profiledbootstrap on x86_64, i?86, ppc64le and s390x
diff --git a/gcc.spec b/gcc.spec
index 447be7e..14e576e 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1077,6 +1077,9 @@ CONFIGURE_OPTS="\
%endif
%ifnarch sparc sparcv9 ppc
--build=%{gcc_target_platform} \
+%endif
+%ifarch x86_64 %{ix86} ppc64le s390x
+ --with-build-config=bootstrap-lto --enable-link-serialization=1 \
%endif
"
@@ -3130,6 +3133,8 @@ end
%endif
%changelog
+- enable LTO profiledbootstrap on x86_64, i?86, ppc64le and s390x
+
* Mon Jul 26 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-7
- update from releases/gcc-11-branch
- PRs ada/101094, analyzer/100244, analyzer/100615, analyzer/101082,
commit 517529187fad464cad2f554540a733171f9598c1
Author: Jakub Jelinek <jakub(a)redhat.com>
Date: Mon Jul 26 20:08:16 2021 +0200
11.1.1-7
diff --git a/gcc11-foffload-default.patch b/gcc11-foffload-default.patch
index 3329d2a..d1aae64 100644
--- a/gcc11-foffload-default.patch
+++ b/gcc11-foffload-default.patch
@@ -16,7 +16,7 @@ libgomp/
--- gcc/gcc.c.jj 2017-01-17 10:28:40.000000000 +0100
+++ gcc/gcc.c 2017-01-20 16:26:29.649962902 +0100
-@@ -290,6 +290,10 @@ static const char *spec_host_machine = D
+@@ -319,6 +319,10 @@ static const char *spec_host_machine = D
static char *offload_targets = NULL;
@@ -27,7 +27,7 @@ libgomp/
/* Nonzero if cross-compiling.
When -b is used, the value comes from the `specs' file. */
-@@ -4457,7 +4461,10 @@ process_command (unsigned int decoded_op
+@@ -4828,7 +4832,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)
@@ -37,9 +37,9 @@ libgomp/
+ offload_targets_default = true;
+ }
- if (output_file
- && strcmp (output_file, "-") != 0
-@@ -7693,6 +7700,8 @@ driver::maybe_putenv_OFFLOAD_TARGETS ()
+ /* Handle -gtoggle as it would later in toplev.c:process_options to
+ make the debug-level-gt spec function work as expected. */
+@@ -8494,6 +8501,8 @@ driver::maybe_putenv_OFFLOAD_TARGETS ()
obstack_grow (&collect_obstack, offload_targets,
strlen (offload_targets) + 1);
xputenv (XOBFINISH (&collect_obstack, char *));
commit 012193ab2c44a344c3d942e72c5c28ce66428ceb
Author: Jakub Jelinek <jakub(a)redhat.com>
Date: Mon Jul 26 19:58:01 2021 +0200
11.1.1-7
diff --git a/.gitignore b/.gitignore
index 30f9dbb..d12a258 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,3 +47,4 @@
/gcc-11.1.1-20210531.tar.xz
/gcc-11.1.1-20210617.tar.xz
/gcc-11.1.1-20210623.tar.xz
+/gcc-11.1.1-20210726.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 2492567..447be7e 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,10 +1,10 @@
-%global DATE 20210623
-%global gitrev cab23df287db6bf4e3d8207e72726b40a4b11058
+%global DATE 20210726
+%global gitrev 0b934a97129b060f95533a6b6ddf87141195728a
%global gcc_version 11.1.1
%global gcc_major 11
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
-%global gcc_release 6
+%global gcc_release 7
%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0
@@ -119,7 +119,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}%{?dist}.1
+Release: %{gcc_release}%{?dist}
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
# GCC Runtime Exception.
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and
BSD
@@ -3130,8 +3130,29 @@ end
%endif
%changelog
-* Wed Jul 21 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
11.1.1-6.1
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+* Mon Jul 26 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-7
+- update from releases/gcc-11-branch
+ - PRs ada/101094, analyzer/100244, analyzer/100615, analyzer/101082,
+ bootstrap/100246, c++/100138, c++/100752, c++/100838, c++/100918,
+ c++/101040, c++/101087, c++/101098, c++/101181, c++/101182,
+ c++/101194, c++/101210, c++/101233, c++/101247, c++/101361,
+ c++/101443, c++/101516, c++/86355, c++/95520, c++/97420, c++/98832,
+ c/101171, c/101176, d/101273, d/101282, debug/101266, driver/101383,
+ fortran/100227, fortran/100949, fortran/93524, go/101407, ipa/101066,
+ libstdc++/100387, libstdc++/101411, libstdc++/101427,
+ middle-end/100672, middle-end/101156, middle-end/101172,
+ middle-end/101291, middle-end/101423, middle-end/101535,
+ middle-end/94366, target/100152, target/100809, target/101023,
+ target/101129, target/101142, target/101175, target/101185,
+ target/101235, target/101377, target/101384, target/101395,
+ testsuite/100422, tree-optimization/100299, tree-optimization/100778,
+ tree-optimization/100923, tree-optimization/101014,
+ tree-optimization/101025, tree-optimization/101088,
+ tree-optimization/101105, tree-optimization/101148,
+ tree-optimization/101151, tree-optimization/101158,
+ tree-optimization/101173, tree-optimization/101223,
+ tree-optimization/101229, tree-optimization/101280,
+ tree-optimization/101394, tree-optimization/101445
* Wed Jun 23 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-6
- update from releases/gcc-11-branch
diff --git a/sources b/sources
index 34f42b5..26dc9a5 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-11.1.1-20210623.tar.xz) =
2d639148af6a8b25127735df8fc4a29dbda3fe835caeaf1cc9d3c4373d69444f1b2c93cc751cbf19076c1ff412fcb8cfacce41c12985b0c7429260c89c62a894
+SHA512 (gcc-11.1.1-20210726.tar.xz) =
fcc8b1c0c5488363998bb3d7871052ec0ee198bebe05f4b11b4fb67153a91b6461ade116b3cbe49efc2a167176e05b2997b8796586a42bdc879c2bef1579ab77
SHA512 (isl-0.18.tar.bz2) =
85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) =
002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) =
f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
commit b492bb6d0d08d8f4e640f9861a16f8e6c219e00f
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Jul 21 23:51:54 2021 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/gcc.spec b/gcc.spec
index 73a3090..2492567 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -119,7 +119,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}%{?dist}
+Release: %{gcc_release}%{?dist}.1
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
# GCC Runtime Exception.
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and
BSD
@@ -3130,6 +3130,9 @@ end
%endif
%changelog
+* Wed Jul 21 2021 Fedora Release Engineering <releng(a)fedoraproject.org> -
11.1.1-6.1
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
* Wed Jun 23 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-6
- update from releases/gcc-11-branch
- PRs c++/100876, c++/100879, c++/101106, c/100619, c/100783, fortran/95501,
commit c07adb54e0d48c05ec8d9b9af12bbd136f056b12
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1815504
diff --git a/tests/Regression/bz1815504-Regression-in-the-line-information-debug/main.fmf
b/tests/Regression/bz1815504-Regression-in-the-line-information-debug/main.fmf
new file mode 100644
index 0000000..82cdc4e
--- /dev/null
+++ b/tests/Regression/bz1815504-Regression-in-the-line-information-debug/main.fmf
@@ -0,0 +1,12 @@
+summary: Test for BZ#1815504 (Regression in the line information debug)
+description: |
+ Bug summary: Regression in the line information debug information generated by gcc
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1815504
+recommend:
+- gcc
+- valgrind
+duration: 5m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1815504
+extra-summary: /tools/gcc/Regression/bz1815504-Regression-in-the-line-information-debug
+extra-task: /tools/gcc/Regression/bz1815504-Regression-in-the-line-information-debug
diff --git
a/tests/Regression/bz1815504-Regression-in-the-line-information-debug/runtest.sh
b/tests/Regression/bz1815504-Regression-in-the-line-information-debug/runtest.sh
new file mode 100755
index 0000000..585e76c
--- /dev/null
+++ b/tests/Regression/bz1815504-Regression-in-the-line-information-debug/runtest.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1815504-Regression-in-the-line-information-debug
+# Description: Test for BZ#1815504 (Regression in the line information debug)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2021 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun "valgrind -q date &> log" 0
+ rlAssertNotGrep "Can't handle inlined call info entry with line
number" log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
commit 196b71d183d376e8d45535a22b48422bdaadde8c
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1852781
diff --git
a/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/main.fmf
b/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/main.fmf
new file mode 100644
index 0000000..1c87a12
--- /dev/null
+++ b/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/main.fmf
@@ -0,0 +1,17 @@
+summary: Test for BZ#1852781 (Compiling with -flto and -g removes CET support)
+description: |
+ Bug summary: Compiling with -flto and -g removes CET support
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1852781
+contact: Alexandra Hájková <ahajkova(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc
+- binutils
+duration: 15m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1852781
+extra-summary:
/tools/gcc/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support
+extra-task:
/tools/gcc/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support
diff --git
a/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/runtest.sh
b/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/runtest.sh
new file mode 100755
index 0000000..84cae8f
--- /dev/null
+++ b/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/runtest.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support
+# Description: Test for BZ#1852781 (Compiling with -flto and -g removes CET support)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2020 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+TESTPROG="x"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "cp $TESTPROG.c $TmpDir"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun "gcc -flto -c -fcf-protection -g $TESTPROG.c"
+ rlRun "gcc -flto -Wl,-z,cet-report=error -fcf-protection -g $TESTPROG.o
&> log"
+ rlAssertNotGrep " missing IBT and SHSTK properties" log
+ rlRun "readelf --wide --notes a.out | grep IBT &> log"
+ rlAsserGrep "IBT, SHSTK" log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
diff --git a/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/x.c
b/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/x.c
new file mode 100644
index 0000000..64fffec
--- /dev/null
+++ b/tests/Regression/bz1852781-Compiling-with-flto-and-g-removes-CET-support/x.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int
+main ()
+{
+ printf ("hello\n");
+ return 0;
+}
commit a191d6bffd3151856ce0a604fb9811142fc6fe7f
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1853900
diff --git
a/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/main.fmf
b/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/main.fmf
new file mode 100644
index 0000000..1540389
--- /dev/null
+++ b/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/main.fmf
@@ -0,0 +1,17 @@
+summary: Test for BZ#1853900 (typeinfo for stdcodecvt_utf8<wchar_t, 1114111ul,)
+description: |
+ Bug summary: typeinfo for std::codecvt_utf8<wchar_t, 1114111ul,
(std::codecvt_mode)0> not found
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1853900
+contact: Alexandra Hájková <ahajkova(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc
+- gcc-c++
+duration: 10m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1853900
+extra-summary:
/tools/gcc/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul
+extra-task:
/tools/gcc/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul
diff --git
a/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/runtest.sh
b/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/runtest.sh
new file mode 100755
index 0000000..a6eb4ed
--- /dev/null
+++
b/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/runtest.sh
@@ -0,0 +1,52 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul
+# Description: Test for BZ#1853900 (typeinfo for stdcodecvt_utf8<wchar_t,
1114111ul,)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2020 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+TESTPROG="test.cc"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "cp $TESTPROG $TmpDir"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun "g++ -std=c++17 $TESTPROG &> log"
+ rlAssertNotGrep "hidden symbol " log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
diff --git
a/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/test.cc
b/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/test.cc
new file mode 100644
index 0000000..075633f
--- /dev/null
+++ b/tests/Regression/bz1853900-typeinfo-for-std-codecvt-utf8-wchar-t-1114111ul/test.cc
@@ -0,0 +1,7 @@
+#include <filesystem>
+
+namespace fs = std::filesystem;
+int main() {
+ fs::create_directory("sandbox");
+ fs::remove_all("sandbox");
+}
commit 698535f4a231c7544d926902afd2f38688a69c69
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1878841
diff --git
a/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/main.fmf
b/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/main.fmf
new file mode 100644
index 0000000..8167f92
--- /dev/null
+++ b/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/main.fmf
@@ -0,0 +1,16 @@
+summary: Test for BZ#1878841 (GOMP_parallel_loop_nonmonotonic_dynamic and)
+description: |
+ Bug summary: GOMP_parallel_loop_nonmonotonic_dynamic and
GOMP_loop_nonmonotonic_dynamic_next missing
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1878841
+contact: Alexandra Hájková <ahajkova(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc
+duration: 5m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1878841
+extra-summary:
/tools/gcc/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and
+extra-task: /tools/gcc/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and
diff --git
a/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/runtest.sh
b/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/runtest.sh
new file mode 100755
index 0000000..83c42ef
--- /dev/null
+++ b/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/runtest.sh
@@ -0,0 +1,52 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and
+# Description: Test for BZ#1878841 (GOMP_parallel_loop_nonmonotonic_dynamic and)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2020 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+TESTPROG="tst"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "cp $TESTPROG.c $TmpDir"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun "gcc -fopenmp $TESTPROG.c &> log"
+ rlAssertNotGrep "undefined reference to
`GOMP_parallel_loop_nonmonotonic_dynamic`" log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
diff --git a/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/tst.c
b/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/tst.c
new file mode 100644
index 0000000..741559e
--- /dev/null
+++ b/tests/Regression/bz1878841-GOMP-parallel-loop-nonmonotonic-dynamic-and/tst.c
@@ -0,0 +1,6 @@
+#include <omp.h>
+int main ()
+{
+ #pragma omp parallel for schedule(dynamic)
+ for (int i = 0; i < 10; i++);
+}
commit dc53defcf35cec20c720e2bb1a7fcfcf12c53bf3
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1893340
diff --git
a/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/b.gdb
b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/b.gdb
new file mode 100644
index 0000000..341301d
--- /dev/null
+++ b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/b.gdb
@@ -0,0 +1,2 @@
+info functions foo
+q
diff --git
a/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/main.fmf
b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/main.fmf
new file mode 100644
index 0000000..7054cbd
--- /dev/null
+++
b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/main.fmf
@@ -0,0 +1,17 @@
+summary: Test for BZ#1893340 (Variadic arguments are missing from debugging data)
+description: |
+ Bug summary: Variadic arguments are missing from debugging data when building with
-flto
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1893340
+contact: Alexandra Hájková <ahajkova(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc
+- gdb
+duration: 5m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1893340
+extra-summary:
/tools/gcc/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data
+extra-task:
/tools/gcc/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data
diff --git
a/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/runtest.sh
b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/runtest.sh
new file mode 100755
index 0000000..f2dd2ca
--- /dev/null
+++
b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/runtest.sh
@@ -0,0 +1,52 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data
+# Description: Test for BZ#1893340 (Variadic arguments are missing from debugging
data)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2021 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "cp test.c b.gdb $TmpDir"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun "gcc -fPIC -shared -o libtest.so -O0 -g test.c"
+ rlRun "gdb -x b.gdb libtest.so > gdb.log"
+ rlAssertGrep "void foo(int, ...);" gdb.log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
diff --git
a/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/test.c
b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/test.c
new file mode 100644
index 0000000..3de5962
--- /dev/null
+++
b/tests/Regression/bz1893340-Variadic-arguments-are-missing-from-debugging-data/test.c
@@ -0,0 +1,6 @@
+#include <stdarg.h>
+void foo(int args, ...) {
+ va_list ap;
+ va_start(ap, args);
+ va_end(ap);
+}
commit 63133c7e37d19693188370dd378fc270d6edca71
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1896093
diff --git
a/tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/main.fmf
b/tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/main.fmf
new file mode 100644
index 0000000..c1da31b
--- /dev/null
+++ b/tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/main.fmf
@@ -0,0 +1,16 @@
+summary: Test for BZ#1896093 (Compiling with -flto=auto fails if make is not)
+description: |
+ Bug summary: Compiling with -flto=auto fails if make is not installed
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1896093
+contact: Alexandra Hájková <ahajkova(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc
+duration: 5m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1896093
+extra-summary:
/tools/gcc/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not
+extra-task:
/tools/gcc/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not
diff --git
a/tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/runtest.sh
b/tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/runtest.sh
new file mode 100755
index 0000000..a23ce5c
--- /dev/null
+++ b/tests/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not/runtest.sh
@@ -0,0 +1,56 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1896093-Compiling-with-flto-auto-fails-if-make-is-not
+# Description: Test for BZ#1896093 (Compiling with -flto=auto fails if make is not)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2020 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+
+rlJournalStart
+ rlPhaseStartSetup
+ MAKE_WAS_PRESENT=false
+ rpm -q make &>/dev/null && MAKE_WAS_PRESENT=true
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "pushd $TmpDir"
+ rlRun "rpm -e --nodeps make" 0,1
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ echo "void main() { }" | gcc -x c -flto=auto - &> log
+ rlAssertNotGrep "lto-wrapper: fatal error: execvp: No such file or
directory" log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ if $MAKE_WAS_PRESENT; then
+ rpm -q make &>/dev/null || rlRun "yum -y install make"
+ fi
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
commit 3507c942bdf291e90c9c13da910426d1e6b5f495
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1927579
diff --git a/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/alloc1.f90
b/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/alloc1.f90
new file mode 100644
index 0000000..8765255
--- /dev/null
+++ b/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/alloc1.f90
@@ -0,0 +1,5 @@
+program test_allocated
+ integer :: i = 4
+ real(4), allocatable :: x(:)
+ if (.not. allocated(x)) allocate(x(i))
+end program test_allocated
diff --git a/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/main.fmf
b/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/main.fmf
new file mode 100644
index 0000000..d6b5ead
--- /dev/null
+++ b/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/main.fmf
@@ -0,0 +1,17 @@
+summary: Test for BZ#1927579 (libgfortran seems to be missing)
+description: |
+ Bug summary: libgfortran seems to be missing _gfortran_os_error_at
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1927579
+contact: Alexandra Hájková <ahajkova(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc
+- gcc-gfortran
+duration: 5m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1927579
+extra-summary: /tools/gcc/Regression/bz1927579-libgfortran-seems-to-be-missing
+extra-task: /tools/gcc/Regression/bz1927579-libgfortran-seems-to-be-missing
diff --git a/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/runtest.sh
b/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/runtest.sh
new file mode 100755
index 0000000..e635213
--- /dev/null
+++ b/tests/Regression/bz1927579-libgfortran-seems-to-be-missing/runtest.sh
@@ -0,0 +1,51 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of /tools/gcc/Regression/bz1927579-libgfortran-seems-to-be-missing
+# Description: Test for BZ#1927579 (libgfortran seems to be missing)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2021 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "cp alloc1.f90 $TmpDir"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun "gfortran alloc1.f90" &> log
+ rlAssertNotGrep "alloc1.f90:(.text+0x131): undefined reference" log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
commit 4b84269ff63acf7f586cdbd471cc763ee412fa57
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1939638
diff --git
a/tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/main.fmf
b/tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/main.fmf
new file mode 100644
index 0000000..4cfef47
--- /dev/null
+++
b/tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/main.fmf
@@ -0,0 +1,17 @@
+summary: Test for BZ#1939638 (gcc-toolset-10-libasan-devel depends on the wrong)
+description: |
+ Bug summary: gcc-toolset-10-libasan-devel depends on the wrong libasan
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1939638
+contact: Alexandra Hájková <ahajkova(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc
+- libasan
+duration: 5m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1939638
+extra-summary:
/tools/gcc/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong
+extra-task:
/tools/gcc/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong
diff --git
a/tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/runtest.sh
b/tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/runtest.sh
new file mode 100755
index 0000000..1d29c6c
--- /dev/null
+++
b/tests/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong/runtest.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1939638-gcc-toolset-10-libasan-devel-depends-on-the-wrong
+# Description: Test for BZ#1939638 (gcc-toolset-10-libasan-devel depends on the wrong)
+# Author: Alexandra Hájková <ahajkova(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2021 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+PACKAGE="gcc"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlAssertRpm $PACKAGE
+ rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun "echo 'int main () { return 0; }' | gcc -xc -fsanitize=address
-" &> log
+ rlAssertNotGrep "cannot find /usr/lib64/libasan" log
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun "popd"
+ rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
commit ceebf1784f958de89d571b2c54b9bba22a80024d
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1960701
diff --git
a/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/main.fmf
b/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/main.fmf
new file mode 100644
index 0000000..ae2fc2b
--- /dev/null
+++ b/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/main.fmf
@@ -0,0 +1,16 @@
+summary: Test for BZ#1960701 (Wrong-code regression starting with gcc 8.2)
+description: |
+ Bug summary: Wrong-code regression starting with gcc 8.2
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1960701
+contact: Vaclav Kadlcik <vkadlcik(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc-c++
+duration: 15m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1960701
+extra-summary:
/tools/gcc/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2
+extra-task: /tools/gcc/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2
diff --git
a/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/reproducer.cc
b/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/reproducer.cc
new file mode 100644
index 0000000..6ebd8e0
--- /dev/null
+++
b/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/reproducer.cc
@@ -0,0 +1,14 @@
+#include <vector>
+
+struct T {
+ unsigned a;
+ float b {8.};
+};
+
+int main()
+{
+ T t = {1};
+ std::vector<T> tt = {{1}, {2}};
+ if (t.a != 1 || t.b != 8.0f || tt[0].a != 1 || tt[0].b != 8.0f || tt[1].a != 2 ||
tt[1].b != 8.0f)
+ __builtin_abort ();
+}
diff --git
a/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/runtest.sh
b/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/runtest.sh
new file mode 100755
index 0000000..196486b
--- /dev/null
+++ b/tests/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2/runtest.sh
@@ -0,0 +1,55 @@
+#!/usr/bin/env bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1960701-Wrong-code-regression-starting-with-gcc-8-2
+# Description: Test for BZ#1960701 (Wrong-code regression starting with gcc 8.2)
+# Author: Vaclav Kadlcik <vkadlcik(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2021 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+GCC="${GCC:-$(type -P gcc)}"
+PACKAGE=$(rpm --qf '%{name}\n' -qf $GCC | head -1)
+PACKAGES="${PACKAGE} ${PACKAGE}-c++"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlLogInfo "PACKAGES=$PACKAGES"
+ rlRun "dnf -y install $PACKAGES" 0-255
+ rlAssertRpm --all
+ rlRun "TmpDir=\$(mktemp -d)"
+ rlRun "cp reproducer.cc $TmpDir"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun 'g++ -o reproducer -Wall -Wextra -std=c++17 reproducer.cc'
+ rlRun './reproducer'
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun 'popd'
+ rlRun "rm -r $TmpDir"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
commit c603d8434856f984eb1d586813750d2a5e8e33f4
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Import RHEL's regression test for #1965951
diff --git
a/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/main.fmf
b/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/main.fmf
new file mode 100644
index 0000000..c699de0
--- /dev/null
+++ b/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/main.fmf
@@ -0,0 +1,16 @@
+summary: Test for BZ#1965951 (Wrong-code regression starting with gcc 8.5)
+description: |
+ Bug summary: Wrong-code regression starting with gcc 8.5
+ Bugzilla link:
https://bugzilla.redhat.com/show_bug.cgi?id=1965951
+contact: Vaclav Kadlcik <vkadlcik(a)redhat.com>
+component:
+- gcc
+test: ./runtest.sh
+framework: beakerlib
+recommend:
+- gcc-c++
+duration: 15m
+link:
+- relates:
https://bugzilla.redhat.com/show_bug.cgi?id=1965951
+extra-summary:
/tools/gcc/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5
+extra-task: /tools/gcc/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5
diff --git
a/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/reproducer.cc
b/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/reproducer.cc
new file mode 100644
index 0000000..40b0c81
--- /dev/null
+++
b/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/reproducer.cc
@@ -0,0 +1,12 @@
+#include <iostream>
+struct S1 { virtual ~S1() = default; };
+struct S2 { virtual void f1() = 0; };
+struct S3: S1, S2 {
+ void f1() { f2(); }
+ virtual void f2() = 0;
+};
+struct S4: S3 {
+ void f2() { std::cout << "called\n"; }
+ using S2::f1;
+};
+int main() { S4().f1(); }
diff --git
a/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/runtest.sh
b/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/runtest.sh
new file mode 100755
index 0000000..d8d69d0
--- /dev/null
+++ b/tests/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5/runtest.sh
@@ -0,0 +1,55 @@
+#!/usr/bin/env bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# runtest.sh of
/tools/gcc/Regression/bz1965951-Wrong-code-regression-starting-with-gcc-8-5
+# Description: Test for BZ#1965951 (Wrong-code regression starting with gcc 8.5)
+# Author: Vaclav Kadlcik <vkadlcik(a)redhat.com>
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# Copyright (c) 2021 Red Hat, Inc.
+#
+# This program 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 2 of
+# the License, or (at your option) any later version.
+#
+# This program 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 this program. If not, see
http://www.gnu.org/licenses/.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# Include Beaker environment
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+GCC="${GCC:-$(type -P gcc)}"
+PACKAGE=$(rpm --qf '%{name}\n' -qf $GCC | head -1)
+PACKAGES="${PACKAGE} ${PACKAGE}-c++"
+
+rlJournalStart
+ rlPhaseStartSetup
+ rlLogInfo "PACKAGES=$PACKAGES"
+ rlRun "dnf -y install $PACKAGES" 0-255
+ rlAssertRpm --all
+ rlRun "TmpDir=\$(mktemp -d)"
+ rlRun "cp reproducer.cc $TmpDir"
+ rlRun "pushd $TmpDir"
+ rlPhaseEnd
+
+ rlPhaseStartTest
+ rlRun 'g++ -o reproducer reproducer.cc'
+ rlRun './reproducer'
+ rlPhaseEnd
+
+ rlPhaseStartCleanup
+ rlRun 'popd'
+ rlRun "rm -r $TmpDir"
+ rlPhaseEnd
+rlJournalPrintText
+rlJournalEnd
commit c19375a4b90d840b8cd19b3c0c22350c0ea34e42
Author: Václav Kadlčík <vkadlcik(a)redhat.com>
Date: Fri Jul 9 15:36:20 2021 +0200
Replace a deprecated method in executing CI
diff --git a/plans/ci.fmf b/plans/ci.fmf
index 1ad2c12..85710d6 100644
--- a/plans/ci.fmf
+++ b/plans/ci.fmf
@@ -3,4 +3,4 @@ discover:
how: fmf
directory: tests
execute:
- how: beakerlib
+ how: tmt
commit e931d8bd48b902e3a6dd3baf03dfaceb19f49b54
Author: Jakub Jelinek <jakub(a)redhat.com>
Date: Wed Jun 23 15:36:05 2021 +0200
11.1.1-6
diff --git a/.gitignore b/.gitignore
index 80a9e24..30f9dbb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,4 @@
/gcc-11.1.1-20210512.tar.xz
/gcc-11.1.1-20210531.tar.xz
/gcc-11.1.1-20210617.tar.xz
+/gcc-11.1.1-20210623.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 3416e99..73a3090 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,10 +1,10 @@
-%global DATE 20210617
-%global gitrev f7ca2f99f1015466fd59cd72a3dad1080c230f6a
+%global DATE 20210623
+%global gitrev cab23df287db6bf4e3d8207e72726b40a4b11058
%global gcc_version 11.1.1
%global gcc_major 11
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
-%global gcc_release 5
+%global gcc_release 6
%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0
@@ -3130,6 +3130,17 @@ end
%endif
%changelog
+* Wed Jun 23 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-6
+- update from releases/gcc-11-branch
+ - PRs c++/100876, c++/100879, c++/101106, c/100619, c/100783, fortran/95501,
+ fortran/95502, fortran/100283, fortran/101123, inline-asm/100785,
+ libstdc++/91488, libstdc++/95833, libstdc++/100806, libstdc++/100940,
+ middle-end/100250, middle-end/100307, middle-end/100574,
+ middle-end/100684, middle-end/100732, middle-end/100876,
+ middle-end/101062, middle-end/101167, target/99842, target/99939,
+ target/100310, target/100777, target/100856, target/100871,
+ target/101016
+
* Thu Jun 17 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-5
- update from releases/gcc-11-branch
- PRs bootstrap/100731, c++/91706, c++/91859, c++/95719, c++/100065,
diff --git a/sources b/sources
index afa2c19..34f42b5 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-11.1.1-20210617.tar.xz) =
d39082995a1a2dc577b290c44c894ce7f819e30d58ad0697366e38112772a5cb9ea60213db416ce34b4a7f0f0d80dd9087ddab7279bd8018e0e5c20dadf49256
+SHA512 (gcc-11.1.1-20210623.tar.xz) =
2d639148af6a8b25127735df8fc4a29dbda3fe835caeaf1cc9d3c4373d69444f1b2c93cc751cbf19076c1ff412fcb8cfacce41c12985b0c7429260c89c62a894
SHA512 (isl-0.18.tar.bz2) =
85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) =
002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) =
f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
commit db78d97ae57d58a7bf256346c62c3a7d3e642ae4
Author: Jakub Jelinek <jakub(a)redhat.com>
Date: Thu Jun 17 11:02:32 2021 +0200
11.1.1-5
diff --git a/.gitignore b/.gitignore
index b815574..80a9e24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,3 +45,4 @@
/gcc-11.1.1-20210428.tar.xz
/gcc-11.1.1-20210512.tar.xz
/gcc-11.1.1-20210531.tar.xz
+/gcc-11.1.1-20210617.tar.xz
diff --git a/gcc.spec b/gcc.spec
index c3ec569..3416e99 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20210531
-%global gitrev e8a00355f6fd6fe219de22855d92c351911519da
+%global DATE 20210617
+%global gitrev f7ca2f99f1015466fd59cd72a3dad1080c230f6a
%global gcc_version 11.1.1
%global gcc_major 11
# Note, gcc_release must be integer, if you want to add suffixes to
diff --git a/sources b/sources
index 7c9c540..afa2c19 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-11.1.1-20210531.tar.xz) =
e09a4e70d672c354b8b08660ecbe33cfb0b49fd67a6afb9c1b261aef9a6ed4daf2a15b616d62ce230cd556f6cbbd137038f6a4d109d4a9a84758e7be3a77a93d
+SHA512 (gcc-11.1.1-20210617.tar.xz) =
d39082995a1a2dc577b290c44c894ce7f819e30d58ad0697366e38112772a5cb9ea60213db416ce34b4a7f0f0d80dd9087ddab7279bd8018e0e5c20dadf49256
SHA512 (isl-0.18.tar.bz2) =
85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) =
002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) =
f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
commit 063f63dafb219b990a54ae8e4f4e93ed226cdb13
Author: Jakub Jelinek <jakub(a)redhat.com>
Date: Thu Jun 17 10:57:18 2021 +0200
11.1.1-5
diff --git a/gcc.spec b/gcc.spec
index e2cfbe4..c3ec569 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -4,7 +4,7 @@
%global gcc_major 11
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
-%global gcc_release 4
+%global gcc_release 5
%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0
@@ -265,7 +265,6 @@ Patch10: gcc11-Wno-format-security.patch
Patch11: gcc11-rh1574936.patch
Patch12: gcc11-d-shared-libphobos.patch
Patch13: gcc11-pr99341-revert.patch
-Patch14: gcc11-pr100797.patch
Patch100: gcc11-fortran-fdec-duplicates.patch
Patch101: gcc11-fortran-flogical-as-integer.patch
@@ -789,7 +788,6 @@ to NVidia PTX capable devices if available.
%endif
%patch12 -p0 -b .d-shared-libphobos~
%patch13 -p0 -b .pr99341-revert~
-%patch14 -p0 -b .pr100797~
%if 0%{?rhel} >= 9
%patch100 -p1 -b .fortran-fdec-duplicates~
@@ -3132,7 +3130,26 @@ end
%endif
%changelog
-* Mon Jun 14 2021 Florian Weimer <fweimer(a)redhat.com> - 11.1.1-4
+* Thu Jun 17 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-5
+- update from releases/gcc-11-branch
+ - PRs bootstrap/100731, c++/91706, c++/91859, c++/95719, c++/100065,
+ c++/100102, c++/100580, c++/100666, c++/100796, c++/100797,
+ c++/100862, c++/100946, c++/100963, c++/101029, c++/101078, c/100902,
+ c/100920, d/100882, d/100935, d/100964, d/100967, d/100999,
+ debug/100852, fortran/82376, fortran/98301, fortran/99839,
+ fortran/100965, ipa/100791, libstdc++/98842, libstdc++/100475,
+ libstdc++/100577, libstdc++/100631, libstdc++/100639,
+ libstdc++/100676, libstdc++/100690, libstdc++/100768,
+ libstdc++/100770, libstdc++/100824, libstdc++/100833,
+ libstdc++/100889, libstdc++/100894, libstdc++/100900,
+ libstdc++/100982, libstdc++/101034, libstdc++/101055,
+ middle-end/100576, middle-end/100898, middle-end/101009,
+ preprocessor/100646, rtl-optimization/100342, rtl-optimization/100590,
+ rtl-optimization/101008, target/100333, target/100885, target/100887,
+ target/101046, testsuite/100750, tree-optimization/100934,
+ tree-optimization/100981
+
+* Mon Jun 14 2021 Florian Weimer <fweimer(a)redhat.com> 11.1.1-4
- NVR bump to enable rebuild in side tag
* Mon May 31 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-3
diff --git a/gcc11-pr100797.patch b/gcc11-pr100797.patch
deleted file mode 100644
index ff85ade..0000000
--- a/gcc11-pr100797.patch
+++ /dev/null
@@ -1,91 +0,0 @@
-2021-05-27 Jason Merrill <jason(a)redhat.com>
-
- PR c++/100797
- PR c++/95719
- * call.c (build_over_call): Adjust base_binfo in
- resolves_to_fixed_type_p case.
-
- * g++.dg/inherit/virtual15.C: New test.
-
---- gcc/cp/call.c
-+++ gcc/cp/call.c
-@@ -9152,18 +9152,32 @@ build_over_call (struct z_candidate *cand, int flags,
tsubst_flags_t complain)
- if (base_binfo == error_mark_node)
- return error_mark_node;
- }
-- tree converted_arg = build_base_path (PLUS_EXPR, arg,
-- base_binfo, 1, complain);
-
- /* If we know the dynamic type of the object, look up the final overrider
- in the BINFO. */
- if (DECL_VINDEX (fn) && (flags & LOOKUP_NONVIRTUAL) == 0
- && resolves_to_fixed_type_p (arg))
- {
-- fn = lookup_vfn_in_binfo (DECL_VINDEX (fn), base_binfo);
-- flags |= LOOKUP_NONVIRTUAL;
-+ tree ov = lookup_vfn_in_binfo (DECL_VINDEX (fn), base_binfo);
-+
-+ /* And unwind base_binfo to match. If we don't find the type we're
-+ looking for in BINFO_INHERITANCE_CHAIN, we're looking at diamond
-+ inheritance; for now do a normal virtual call in that case. */
-+ tree octx = DECL_CONTEXT (ov);
-+ tree obinfo = base_binfo;
-+ while (obinfo && !SAME_BINFO_TYPE_P (BINFO_TYPE (obinfo), octx))
-+ obinfo = BINFO_INHERITANCE_CHAIN (obinfo);
-+ if (obinfo)
-+ {
-+ fn = ov;
-+ base_binfo = obinfo;
-+ flags |= LOOKUP_NONVIRTUAL;
-+ }
- }
-
-+ tree converted_arg = build_base_path (PLUS_EXPR, arg,
-+ base_binfo, 1, complain);
-+
- argarray[j++] = converted_arg;
- parm = TREE_CHAIN (parm);
- if (first_arg != NULL_TREE)
---- gcc/testsuite/g++.dg/inherit/virtual15.C
-+++ gcc/testsuite/g++.dg/inherit/virtual15.C
-@@ -0,0 +1,18 @@
-+// PR c++/100797
-+// { dg-do run }
-+
-+bool ok = false;
-+struct S1 { virtual ~S1() {} };
-+struct S2 { virtual void f1() = 0; };
-+struct S3: S1, S2 {
-+ void f1() { f2(); }
-+ virtual void f2() = 0;
-+};
-+struct S4: S3 {
-+ void f2() { ok = true; }
-+ using S2::f1;
-+};
-+int main() {
-+ S4().f1();
-+ if (!ok) __builtin_abort ();
-+}
---- gcc/testsuite/g++.dg/inherit/virtual15a.C
-+++ gcc/testsuite/g++.dg/inherit/virtual15a.C
-@@ -0,0 +1,19 @@
-+// PR c++/100797 plus diamond inheritance
-+// { dg-do run }
-+
-+bool ok = false;
-+struct S1 { virtual ~S1() {} };
-+struct S2 { virtual void f1() = 0; };
-+struct S3: S1, virtual S2 {
-+ void f1() { f2(); }
-+ virtual void f2() = 0;
-+};
-+struct SX: virtual S2 { };
-+struct S4: SX, S3 {
-+ void f2() { ok = true; }
-+ using S2::f1;
-+};
-+int main() {
-+ S4().f1();
-+ if (!ok) __builtin_abort ();
-+}
commit a2a6a491f5876342d076cc0f5cdf34067fc5d1d7
Author: Florian Weimer <fweimer(a)redhat.com>
Date: Mon Jun 14 12:39:20 2021 +0200
NVR bump to enable rebuild in side tag
diff --git a/gcc.spec b/gcc.spec
index 7ee667b..e2cfbe4 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -4,7 +4,7 @@
%global gcc_major 11
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
-%global gcc_release 3
+%global gcc_release 4
%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0
@@ -3132,6 +3132,9 @@ end
%endif
%changelog
+* Mon Jun 14 2021 Florian Weimer <fweimer(a)redhat.com> - 11.1.1-4
+- NVR bump to enable rebuild in side tag
+
* Mon May 31 2021 Jakub Jelinek <jakub(a)redhat.com> 11.1.1-3
- update from releases/gcc-11-branch
- PRs bootstrap/100552, c++/100205, c++/100261, c++/100281, c++/100367,