From cdf92292afdca58fae56c2e927cf4f3fa22d2789 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Sat, 8 Jan 2022 12:35:44 +0100
Subject: [PATCH 001/215] 12.0.0-0.3
---
.gitignore | 1 +
gcc.spec | 874 ++----------------
gcc11-Wno-format-security.patch | 27 -
gcc11-foffload-default.patch | 116 ---
gcc11-libgcc-link.patch | 57 --
gcc11-pr101786.patch | 66 --
gcc11-pr99341-revert.patch | 176 ----
gcc11-stringify-__VA_OPT__-2.patch | 197 ----
gcc11-stringify-__VA_OPT__.patch | 308 ------
gcc12-Wno-format-security.patch | 58 ++
...os.patch => gcc12-d-shared-libphobos.patch | 0
...c12-fortran-fdec-add-missing-indexes.patch | 0
...tch => gcc12-fortran-fdec-duplicates.patch | 0
...ar.patch => gcc12-fortran-fdec-ichar.patch | 0
...gcc12-fortran-fdec-non-integer-index.patch | 0
...=> gcc12-fortran-fdec-non-logical-if.patch | 0
...patch => gcc12-fortran-fdec-old-init.patch | 0
... => gcc12-fortran-fdec-override-kind.patch | 0
...atch => gcc12-fortran-fdec-promotion.patch | 0
...patch => gcc12-fortran-fdec-sequence.patch | 0
...=> gcc12-fortran-flogical-as-integer.patch | 0
gcc11-hack.patch => gcc12-hack.patch | 0
gcc11-isl-dl.patch => gcc12-isl-dl.patch | 0
gcc11-isl-dl2.patch => gcc12-isl-dl2.patch | 8 +-
...atch => gcc12-libgomp-omp_h-multilib.patch | 0
...+-docs.patch => gcc12-libstdc++-docs.patch | 4 +-
...path.patch => gcc12-libtool-no-rpath.patch | 0
...-needed.patch => gcc12-no-add-needed.patch | 0
...1-rh1574936.patch => gcc12-rh1574936.patch | 0
...atch => gcc12-sparc-config-detection.patch | 0
sources | 2 +-
update-gcc.sh | 2 +-
32 files changed, 161 insertions(+), 1735 deletions(-)
delete mode 100644 gcc11-Wno-format-security.patch
delete mode 100644 gcc11-foffload-default.patch
delete mode 100644 gcc11-libgcc-link.patch
delete mode 100644 gcc11-pr101786.patch
delete mode 100644 gcc11-pr99341-revert.patch
delete mode 100644 gcc11-stringify-__VA_OPT__-2.patch
delete mode 100644 gcc11-stringify-__VA_OPT__.patch
create mode 100644 gcc12-Wno-format-security.patch
rename gcc11-d-shared-libphobos.patch => gcc12-d-shared-libphobos.patch (100%)
rename gcc11-fortran-fdec-add-missing-indexes.patch => gcc12-fortran-fdec-add-missing-indexes.patch (100%)
rename gcc11-fortran-fdec-duplicates.patch => gcc12-fortran-fdec-duplicates.patch (100%)
rename gcc11-fortran-fdec-ichar.patch => gcc12-fortran-fdec-ichar.patch (100%)
rename gcc11-fortran-fdec-non-integer-index.patch => gcc12-fortran-fdec-non-integer-index.patch (100%)
rename gcc11-fortran-fdec-non-logical-if.patch => gcc12-fortran-fdec-non-logical-if.patch (100%)
rename gcc11-fortran-fdec-old-init.patch => gcc12-fortran-fdec-old-init.patch (100%)
rename gcc11-fortran-fdec-override-kind.patch => gcc12-fortran-fdec-override-kind.patch (100%)
rename gcc11-fortran-fdec-promotion.patch => gcc12-fortran-fdec-promotion.patch (100%)
rename gcc11-fortran-fdec-sequence.patch => gcc12-fortran-fdec-sequence.patch (100%)
rename gcc11-fortran-flogical-as-integer.patch => gcc12-fortran-flogical-as-integer.patch (100%)
rename gcc11-hack.patch => gcc12-hack.patch (100%)
rename gcc11-isl-dl.patch => gcc12-isl-dl.patch (100%)
rename gcc11-isl-dl2.patch => gcc12-isl-dl2.patch (90%)
rename gcc11-libgomp-omp_h-multilib.patch => gcc12-libgomp-omp_h-multilib.patch (100%)
rename gcc11-libstdc++-docs.patch => gcc12-libstdc++-docs.patch (96%)
rename gcc11-libtool-no-rpath.patch => gcc12-libtool-no-rpath.patch (100%)
rename gcc11-no-add-needed.patch => gcc12-no-add-needed.patch (100%)
rename gcc11-rh1574936.patch => gcc12-rh1574936.patch (100%)
rename gcc11-sparc-config-detection.patch => gcc12-sparc-config-detection.patch (100%)
diff --git a/.gitignore b/.gitignore
index dbccc8a..0cb9ebd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -54,3 +54,4 @@
/gcc-11.2.1-20211018.tar.xz
/gcc-11.2.1-20211019.tar.xz
/gcc-11.2.1-20211203.tar.xz
+/gcc-12.0.0-20220108.tar.xz
diff --git a/gcc.spec b/gcc.spec
index a310bcf..6fe59ed 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,10 +1,10 @@
-%global DATE 20211203
-%global gitrev e41308252e835ddedcabfd4a98240080c6583a43
-%global gcc_version 11.2.1
-%global gcc_major 11
+%global DATE 20220108
+%global gitrev 6bd6f878235efd1d0787892e7e2f73c5edf514cc
+%global gcc_version 12.0.0
+%global gcc_major 12
# 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 0
%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}
+Release: %{gcc_release}.3%{?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
@@ -199,6 +199,10 @@ BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.
# Ada requires Ada to build
BuildRequires: gcc-gnat >= 3.1, libgnat >= 3.1
%endif
+%if %{build_d}
+# D requires D to build
+BuildRequires: gcc-gdc >= 11.0.0, libgphobos-static >= 11.0.0
+%endif
%ifarch ia64
BuildRequires: libunwind >= 0.98
%endif
@@ -254,34 +258,28 @@ Provides: bundled(libbacktrace)
Provides: bundled(libffi)
Provides: gcc(major) = %{gcc_major}
-Patch0: gcc11-hack.patch
-Patch2: gcc11-sparc-config-detection.patch
-Patch3: gcc11-libgomp-omp_h-multilib.patch
-Patch4: gcc11-libtool-no-rpath.patch
-Patch5: gcc11-isl-dl.patch
-Patch6: gcc11-isl-dl2.patch
-Patch7: gcc11-libstdc++-docs.patch
-Patch8: gcc11-no-add-needed.patch
-Patch9: gcc11-foffload-default.patch
-Patch10: gcc11-Wno-format-security.patch
-Patch11: gcc11-rh1574936.patch
-Patch12: gcc11-d-shared-libphobos.patch
-Patch13: gcc11-pr99341-revert.patch
-Patch14: gcc11-libgcc-link.patch
-Patch15: gcc11-pr101786.patch
-Patch16: gcc11-stringify-__VA_OPT__.patch
-Patch17: gcc11-stringify-__VA_OPT__-2.patch
+Patch0: gcc12-hack.patch
+Patch2: gcc12-sparc-config-detection.patch
+Patch3: gcc12-libgomp-omp_h-multilib.patch
+Patch4: gcc12-libtool-no-rpath.patch
+Patch5: gcc12-isl-dl.patch
+Patch6: gcc12-isl-dl2.patch
+Patch7: gcc12-libstdc++-docs.patch
+Patch8: gcc12-no-add-needed.patch
+Patch9: gcc12-Wno-format-security.patch
+Patch10: gcc12-rh1574936.patch
+Patch11: gcc12-d-shared-libphobos.patch
-Patch100: gcc11-fortran-fdec-duplicates.patch
-Patch101: gcc11-fortran-flogical-as-integer.patch
-Patch102: gcc11-fortran-fdec-ichar.patch
-Patch103: gcc11-fortran-fdec-non-integer-index.patch
-Patch104: gcc11-fortran-fdec-old-init.patch
-Patch105: gcc11-fortran-fdec-override-kind.patch
-Patch106: gcc11-fortran-fdec-non-logical-if.patch
-Patch107: gcc11-fortran-fdec-promotion.patch
-Patch108: gcc11-fortran-fdec-sequence.patch
-Patch109: gcc11-fortran-fdec-add-missing-indexes.patch
+Patch100: gcc12-fortran-fdec-duplicates.patch
+Patch101: gcc12-fortran-flogical-as-integer.patch
+Patch102: gcc12-fortran-fdec-ichar.patch
+Patch103: gcc12-fortran-fdec-non-integer-index.patch
+Patch104: gcc12-fortran-fdec-old-init.patch
+Patch105: gcc12-fortran-fdec-override-kind.patch
+Patch106: gcc12-fortran-fdec-non-logical-if.patch
+Patch107: gcc12-fortran-fdec-promotion.patch
+Patch108: gcc12-fortran-fdec-sequence.patch
+Patch109: gcc12-fortran-fdec-add-missing-indexes.patch
# On ARM EABI systems, we do want -gnueabi to be part of the
# target triple.
@@ -303,7 +301,7 @@ Patch109: gcc11-fortran-fdec-add-missing-indexes.patch
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
-chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.19.* \
+chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.20.* \
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc \
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc \
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
@@ -311,7 +309,7 @@ chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/test2json \
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/vet \
%__os_install_post \
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.19.* \
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.20.* \
chmod 755 %{buildroot}%{_prefix}/bin/go.gcc \
chmod 755 %{buildroot}%{_prefix}/bin/gofmt.gcc \
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
@@ -322,11 +320,11 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
%endif
%description
-The gcc package contains the GNU Compiler Collection version 11.
+The gcc package contains the GNU Compiler Collection version 12.
You'll need this package in order to compile C code.
%package -n libgcc
-Summary: GCC version 11 shared support library
+Summary: GCC version 12 shared support library
Autoreq: false
%if !%{build_ada}
Obsoletes: libgnat < %{version}-%{release}
@@ -787,19 +785,11 @@ to NVidia PTX capable devices if available.
%patch7 -p0 -b .libstdc++-docs~
%endif
%patch8 -p0 -b .no-add-needed~
-%patch9 -p0 -b .foffload-default~
-%patch10 -p0 -b .Wno-format-security~
+%patch9 -p0 -b .Wno-format-security~
%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
-%patch11 -p0 -b .rh1574936~
+%patch10 -p0 -b .rh1574936~
%endif
-%patch12 -p0 -b .d-shared-libphobos~
-%if 0%{?fedora} == 34
-%patch13 -p0 -b .pr99341-revert~
-%endif
-%patch14 -p0 -b .libgcc-link~
-%patch15 -p0 -b .pr101786~
-%patch16 -p0 -b .stringify-__VA_OPT__~
-%patch17 -p0 -b .stringify-__VA_OPT__-2~
+%patch11 -p0 -b .d-shared-libphobos~
%if 0%{?rhel} >= 9
%patch100 -p1 -b .fortran-fdec-duplicates~
@@ -817,6 +807,8 @@ to NVidia PTX capable devices if available.
%ifarch %{arm}
rm -f gcc/testsuite/go.test/test/fixedbugs/issue19182.go
%endif
+rm -f libphobos/testsuite/libphobos.gc/forkgc2.d
+#rm -rf libphobos/testsuite/libphobos.gc
echo 'Red Hat %{version}-%{gcc_release}' > gcc/DEV-PHASE
@@ -922,7 +914,7 @@ ISL_FLAG_PIC=-fPIC
ISL_FLAG_PIC=-fpic
%endif
cd isl-build
-sed -i 's|libisl|libgcc11privateisl|g' \
+sed -i 's|libisl|libgcc12privateisl|g' \
../../isl-%{isl_version}/Makefile.{am,in}
../../isl-%{isl_version}/configure \
CC=/usr/bin/gcc CXX=/usr/bin/g++ \
@@ -930,8 +922,8 @@ sed -i 's|libisl|libgcc11privateisl|g' \
make %{?_smp_mflags}
make install
cd ../isl-install/lib
-rm libgcc11privateisl.so{,.15}
-mv libgcc11privateisl.so.15.3.0 libisl.so.15
+rm libgcc12privateisl.so{,.15}
+mv libgcc12privateisl.so.15.3.0 libisl.so.15
ln -sf libisl.so.15 libisl.so
cd ../..
%endif
@@ -985,7 +977,7 @@ CONFIGURE_OPTS="\
%endif
%if %{build_offload_nvptx}
--enable-offload-targets=nvptx-none \
- --without-cuda-driver \
+ --without-cuda-driver --enable-offload-defaulted \
%endif
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
%if %{attr_ifunc}
@@ -1184,7 +1176,7 @@ done)
(cd libphobos; for i in ChangeLog*; do
cp -p $i ../rpm.doc/libphobos/$i.libphobos
done
-cp -a src/LICENSE*.txt libdruntime/LICENSE ../rpm.doc/libphobos/)
+cp -a src/LICENSE*.txt libdruntime/LICENSE.txt ../rpm.doc/libphobos/)
%endif
%if %{build_libquadmath}
(cd libquadmath; for i in ChangeLog* COPYING.LIB; do
@@ -1463,14 +1455,14 @@ ln -sf ../../../libstdc++.so.6.*[0-9] libstdc++.so
ln -sf ../../../libgfortran.so.5.* libgfortran.so
ln -sf ../../../libgomp.so.1.* libgomp.so
%if %{build_go}
-ln -sf ../../../libgo.so.19.* libgo.so
+ln -sf ../../../libgo.so.20.* libgo.so
%endif
%if %{build_libquadmath}
ln -sf ../../../libquadmath.so.0.* libquadmath.so
%endif
%if %{build_d}
-ln -sf ../../../libgdruntime.so.2.* libgdruntime.so
-ln -sf ../../../libgphobos.so.2.* libgphobos.so
+ln -sf ../../../libgdruntime.so.3.* libgdruntime.so
+ln -sf ../../../libgphobos.so.3.* libgphobos.so
%endif
%if %{build_libitm}
ln -sf ../../../libitm.so.1.* libitm.so
@@ -1479,7 +1471,7 @@ ln -sf ../../../libitm.so.1.* libitm.so
ln -sf ../../../libatomic.so.1.* libatomic.so
%endif
%if %{build_libasan}
-ln -sf ../../../libasan.so.6.* libasan.so
+ln -sf ../../../libasan.so.8.* libasan.so
mv ../../../libasan_preinit.o libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -1493,14 +1485,14 @@ ln -sf ../../../../%{_lib}/libstdc++.so.6.*[0-9] libstdc++.so
ln -sf ../../../../%{_lib}/libgfortran.so.5.* libgfortran.so
ln -sf ../../../../%{_lib}/libgomp.so.1.* libgomp.so
%if %{build_go}
-ln -sf ../../../../%{_lib}/libgo.so.19.* libgo.so
+ln -sf ../../../../%{_lib}/libgo.so.20.* libgo.so
%endif
%if %{build_libquadmath}
ln -sf ../../../../%{_lib}/libquadmath.so.0.* libquadmath.so
%endif
%if %{build_d}
-ln -sf ../../../../%{_lib}/libgdruntime.so.2.* libgdruntime.so
-ln -sf ../../../../%{_lib}/libgphobos.so.2.* libgphobos.so
+ln -sf ../../../../%{_lib}/libgdruntime.so.3.* libgdruntime.so
+ln -sf ../../../../%{_lib}/libgphobos.so.3.* libgphobos.so
%endif
%if %{build_libitm}
ln -sf ../../../../%{_lib}/libitm.so.1.* libitm.so
@@ -1509,7 +1501,7 @@ ln -sf ../../../../%{_lib}/libitm.so.1.* libitm.so
ln -sf ../../../../%{_lib}/libatomic.so.1.* libatomic.so
%endif
%if %{build_libasan}
-ln -sf ../../../../%{_lib}/libasan.so.6.* libasan.so
+ln -sf ../../../../%{_lib}/libasan.so.8.* libasan.so
mv ../../../../%{_lib}/libasan_preinit.o libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -1517,7 +1509,7 @@ ln -sf ../../../../%{_lib}/libubsan.so.1.* libubsan.so
%endif
%if %{build_libtsan}
rm -f libtsan.so
-echo 'INPUT ( %{_prefix}/%{_lib}/'`echo ../../../../%{_lib}/libtsan.so.0.* | sed 's,^.*libt,libt,'`' )' > libtsan.so
+echo 'INPUT ( %{_prefix}/%{_lib}/'`echo ../../../../%{_lib}/libtsan.so.2.* | sed 's,^.*libt,libt,'`' )' > libtsan.so
mv ../../../../%{_lib}/libtsan_preinit.o libtsan_preinit.o
%endif
%if %{build_liblsan}
@@ -1577,28 +1569,28 @@ mv -f $FULLPATH/ada{include,lib} $FULLLPATH/
pushd $FULLLPATH/adalib
if [ "%{_lib}" = "lib" ]; then
ln -sf ../../../../../libgnarl-*.so libgnarl.so
-ln -sf ../../../../../libgnarl-*.so libgnarl-11.so
+ln -sf ../../../../../libgnarl-*.so libgnarl-12.so
ln -sf ../../../../../libgnat-*.so libgnat.so
-ln -sf ../../../../../libgnat-*.so libgnat-11.so
+ln -sf ../../../../../libgnat-*.so libgnat-12.so
else
ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl.so
-ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-11.so
+ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-12.so
ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat.so
-ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-11.so
+ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-12.so
fi
popd
else
pushd $FULLPATH/adalib
if [ "%{_lib}" = "lib" ]; then
ln -sf ../../../../libgnarl-*.so libgnarl.so
-ln -sf ../../../../libgnarl-*.so libgnarl-11.so
+ln -sf ../../../../libgnarl-*.so libgnarl-12.so
ln -sf ../../../../libgnat-*.so libgnat.so
-ln -sf ../../../../libgnat-*.so libgnat-11.so
+ln -sf ../../../../libgnat-*.so libgnat-12.so
else
ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl.so
-ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-11.so
+ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-12.so
ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat.so
-ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-11.so
+ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-12.so
fi
popd
fi
@@ -1613,8 +1605,8 @@ ln -sf ../`echo ../../../../lib/libgfortran.so.5.* | sed s~/lib/~/lib64/~` 64/li
ln -sf ../`echo ../../../../lib/libgomp.so.1.* | sed s~/lib/~/lib64/~` 64/libgomp.so
%if %{build_go}
rm -f libgo.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.19.* | sed 's,^.*libg,libg,'`' )' > libgo.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.19.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.20.* | sed 's,^.*libg,libg,'`' )' > libgo.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.20.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
%endif
%if %{build_libquadmath}
rm -f libquadmath.so
@@ -1623,10 +1615,10 @@ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libquadmath.so.0.* | sed '
%endif
%if %{build_d}
rm -f libgdruntime.so libgphobos.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.3.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.3.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.3.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.3.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
%endif
%if %{build_libitm}
rm -f libitm.so
@@ -1640,8 +1632,8 @@ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libatomic.so.1.* | sed 's,
%endif
%if %{build_libasan}
rm -f libasan.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > libasan.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > 64/libasan.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > libasan.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > 64/libasan.so
mv ../../../../lib64/libasan_preinit.o 64/libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -1712,8 +1704,8 @@ ln -sf ../`echo ../../../../lib64/libgfortran.so.5.* | sed s~/../lib64/~/~` 32/l
ln -sf ../`echo ../../../../lib64/libgomp.so.1.* | sed s~/../lib64/~/~` 32/libgomp.so
%if %{build_go}
rm -f libgo.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.19.* | sed 's,^.*libg,libg,'`' )' > libgo.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.19.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.20.* | sed 's,^.*libg,libg,'`' )' > libgo.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.20.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
%endif
%if %{build_libquadmath}
rm -f libquadmath.so
@@ -1722,10 +1714,10 @@ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libquadmath.so.0.* | sed '
%endif
%if %{build_d}
rm -f libgdruntime.so libgphobos.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.3.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.3.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.3.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.3.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
%endif
%if %{build_libitm}
rm -f libitm.so
@@ -1739,8 +1731,8 @@ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libatomic.so.1.* | sed 's,
%endif
%if %{build_libasan}
rm -f libasan.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > libasan.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > 32/libasan.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > libasan.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > 32/libasan.so
mv ../../../../lib/libasan_preinit.o 32/libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -1877,8 +1869,8 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libcc1.so.0.*
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libquadmath.so.0.*
%endif
%if %{build_d}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.2.*
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.2.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.3.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.3.*
%endif
%if %{build_libitm}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
@@ -1887,20 +1879,20 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libatomic.so.1.*
%endif
%if %{build_libasan}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libasan.so.6.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libasan.so.8.*
%endif
%if %{build_libubsan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1.*
%endif
%if %{build_libtsan}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libtsan.so.2.*
%endif
%if %{build_liblsan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
%endif
%if %{build_go}
# Avoid stripping these libraries and binaries.
-chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.19.*
+chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.20.*
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo
@@ -2276,6 +2268,8 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/keylockerintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxvnniintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mwaitintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fp16intrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fp16vlintrin.h
%endif
%ifarch ia64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia64intrin.h
@@ -2300,6 +2294,9 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tmmintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/smmintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amo.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/nmmintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/immintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86gprintrin.h
%endif
%ifarch %{arm}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/unwind-arm-common.h
@@ -2714,8 +2711,8 @@ end
%doc rpm.doc/gdc/*
%files -n libgphobos
-%{_prefix}/%{_lib}/libgdruntime.so.2*
-%{_prefix}/%{_lib}/libgphobos.so.2*
+%{_prefix}/%{_lib}/libgdruntime.so.3*
+%{_prefix}/%{_lib}/libgphobos.so.3*
%doc rpm.doc/libphobos/*
%files -n libgphobos-static
@@ -2920,7 +2917,7 @@ end
%if %{build_libasan}
%files -n libasan
-%{_prefix}/%{_lib}/libasan.so.6*
+%{_prefix}/%{_lib}/libasan.so.8*
%files -n libasan-static
%dir %{_prefix}/lib/gcc
@@ -2968,7 +2965,7 @@ end
%if %{build_libtsan}
%files -n libtsan
-%{_prefix}/%{_lib}/libtsan.so.0*
+%{_prefix}/%{_lib}/libtsan.so.2*
%files -n libtsan-static
%dir %{_prefix}/lib/gcc
@@ -3040,7 +3037,7 @@ end
%doc rpm.doc/go/*
%files -n libgo
-%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.19*
+%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.20*
%doc rpm.doc/libgo/*
%files -n libgo-devel
@@ -3148,688 +3145,5 @@ end
%endif
%changelog
-* Fri Dec 3 2021 Jakub Jelinek 11.2.1-7
-- update from releases/gcc-11-branch
- - PRs ada/100486, c++/70796, c++/92746, c++/93286, c++/94490, c++/102642,
- c++/102786, debug/101378, debug/103046, debug/103315, fortran/87711,
- fortran/87851, fortran/97896, fortran/99061, fortran/99348,
- fortran/102521, fortran/102685, fortran/102715, fortran/102745,
- fortran/102816, fortran/102817, fortran/102917, fortran/103137,
- fortran/103138, fortran/103392, gcov-profile/100520, ipa/102714,
- ipa/102762, ipa/103052, ipa/103246, ipa/103267, libstdc++/96416,
- libstdc++/98421, libstdc++/100117, libstdc++/100153, libstdc++/100748,
- libstdc++/101571, libstdc++/101608, libstdc++/102894,
- libstdc++/103022, libstdc++/103086, libstdc++/103133,
- libstdc++/103240, libstdc++/103381, middle-end/64888,
- middle-end/101480, middle-end/102431, middle-end/102518,
- middle-end/103059, middle-end/103181, middle-end/103248,
- middle-end/103384, preprocessor/103130, rtl-optimization/102356,
- rtl-optimization/102842, target/101985, target/102976, target/102991,
- target/103205, target/103274, target/103275, testsuite/102690,
- tree-optimization/100393, tree-optimization/102139,
- tree-optimization/102505, tree-optimization/102572,
- tree-optimization/102788, tree-optimization/102789,
- tree-optimization/102798, tree-optimization/102970,
- tree-optimization/103192, tree-optimization/103204,
- tree-optimization/103237, tree-optimization/103255,
- tree-optimization/103435
-- fix up #__VA_OPT__ handling (PR preprocessor/103415)
-
-* Tue Oct 19 2021 Jakub Jelinek 11.2.1-6
-- update from releases/gcc-11-branch
- - PRs target/100208, target/100316, target/102761
-- fix up libstdc++ docs build
-
-* Mon Oct 18 2021 Jakub Jelinek 11.2.1-5
-- update from releases/gcc-11-branch
- - PRs fortran/102716, libstdc++/65816, libstdc++/90787, libstdc++/99876,
- libstdc++/100187, libstdc++/100237, libstdc++/100249,
- libstdc++/100287, libstdc++/100606, libstdc++/100863,
- libstdc++/101483, libstdc++/101583, libstdc++/101589,
- libstdc++/101599, libstdc++/101761, libstdc++/101870,
- libstdc++/101923, libstdc++/101960, libstdc++/102048,
- libstdc++/102074, libstdc++/102270, libstdc++/102280,
- libstdc++/102425, libstdc++/102592, libstdc++/102667,
- rtl-optimization/102627, target/100340, target/102588
-- add mwaitintrin.h on x86 (#2013860)
-- disable LTO bootstrap on 32-bit arm, 6 days long build and counting
- isn't acceptable, build boxes don't have enough memory and are too
- slow
-
-* Tue Oct 12 2021 Jakub Jelinek 11.2.1-4
-- update from releases/gcc-11-branch
- - PRs ada/101970, c++/60318, c++/64697, c++/88578, c++/91292, c++/95567,
- c++/98216, c++/98486, c++/99904, c++/100495, c++/101344, c++/101592,
- c++/101803, c++/101883, c++/102163, c++/102295, c++/102305,
- c++/102412, c++/102454, c++/102496, c++/102535, c++/102547,
- c++/102548, c++/102640, d/102185, d/102574, debug/102373,
- debug/102441, fortran/46691, fortran/82314, fortran/85130,
- fortran/87737, fortran/98490, fortran/99819, fortran/100950,
- fortran/101327, fortran/101349, fortran/102113, fortran/102287,
- fortran/102311, fortran/102366, fortran/102458, fortran/102520,
- ipa/97565, libgomp/96661, libstdc++/100180, libstdc++/100285,
- libstdc++/100286, libstdc++/100351, libstdc++/100682,
- libstdc++/101965, middle-end/101824, middle-end/101949,
- rtl-optimization/102306, sanitizer/102515, target/94630, target/97142,
- target/100734, target/101471, target/101472, target/101492,
- target/101549, target/101849, target/101934, target/102035,
- target/102107, target/102115, target/102166, target/102222,
- target/102224, target/102498, tree-optimization/101925,
- tree-optimization/102046, tree-optimization/102124,
- tree-optimization/102400, tree-optimization/102451,
- tree-optimization/102622
-- remove the PR libstdc++/99341 workaround for Fedora 35 and later,
- the std::once_flag::_M_activate() and std::once_flag::_M_finish(bool)
- symbols (mangled as _ZNSt9once_flag11_M_activateEv and
- _ZNSt9once_flag9_M_finishEb) aren't part of upstream GCC 11 and were
- present only because not all packaged have been successfully rebuilt
- (#1961541)
-
-* Mon Aug 23 2021 Jakub Jelinek 11.2.1-3
-- update from releases/gcc-11-branch
- - PRs c++/100828, c++/101663, c++/101725, c++/101759, c/100150, c/101512,
- d/96435, d/101127, d/101441, d/101490, d/101619, d/101640, d/101664,
- debug/101905, fortran/99351, fortran/101084, fortran/101514,
- fortran/101536, fortran/101564, gcov-profile/89961,
- gcov-profile/100788, ipa/100600, ipa/101261, ipa/101726,
- libstdc++/100139, libstdc++/101056, libstdc++/101258,
- libstdc++/101510, libstdc++/101866, middle-end/101624,
- preprocessor/101638, sanitizer/101749, target/94780, target/100952,
- target/101132, target/101531, target/101723, testsuite/101969,
- tree-optimization/101373, tree-optimization/101505,
- tree-optimization/101868
-- add bundled(libbacktrace) and bundled(libffi) provides
-- build target shared libraries with -Wl,-z,relro,-z,now
-- improve generated code with extern thread_local constinit vars
- with trivial dtors
-- add support for C++20 #__VA_OPT__
-- fix up %%ldconfig_scriptlets
-
-* Fri Jul 30 2021 Jakub Jelinek 11.2.1-2
-- enable LTO profiledbootstrap on all arches, and also for RHEL9+
-
-* Wed Jul 28 2021 Jakub Jelinek 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 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 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 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 11.1.1-4
-- NVR bump to enable rebuild in side tag
-
-* Mon May 31 2021 Jakub Jelinek 11.1.1-3
-- update from releases/gcc-11-branch
- - PRs bootstrap/100552, c++/100205, c++/100261, c++/100281, c++/100367,
- c++/100372, c++/100489, c++/100502, c++/100634, c++/100644,
- c++/100659, c/100550, fortran/98411, fortran/100551, fortran/100602,
- fortran/100633, fortran/100656, ipa/100513, libstdc++/100361,
- libstdc++/100479, libstdc++/100630, middle-end/100471,
- middle-end/100508, middle-end/100509, preprocessor/100392,
- target/94177, target/99725, target/99960, target/99977, target/100419,
- target/100563, target/100626, target/100767, testsuite/96488,
- tree-optimization/100492, tree-optimization/100519
-
-* Wed May 12 2021 Jakub Jelinek 11.1.1-2
-- update from releases/gcc-11-branch
- - PRs c++/98032, c++/100319, c++/100362, c/100450, fortran/100274,
- ipa/100308, libgomp/100352, libstdc++/99006, libstdc++/99453,
- libstdc++/100259, libstdc++/100298, libstdc++/100384,
- rtl-optimization/84878, rtl-optimization/100225,
- rtl-optimization/100230, rtl-optimization/100263,
- rtl-optimization/100411, target/99988, target/100217, target/100232,
- target/100236, target/100270, target/100305, target/100311,
- target/100375, target/100402, tree-optimization/96513,
- tree-optimization/100253, tree-optimization/100278,
- tree-optimization/100329, tree-optimization/100414
-- fix build with removed linux/cyclades.h header (PR sanitizer/100379)
-- fix up mausezahn miscompilation (#1958887, PR tree-optimization/100566)
-
-* Wed Apr 28 2021 Jakub Jelinek 11.1.1-1
-- update from releases/gcc-11-branch
- - GCC 11.1 release
- - PRs c++/93383, c++/95291, c++/96380, c++/99200, c++/99683, c++/100161,
- debug/100255, fortran/100154, fortran/100218, libstdc++/100290,
- rtl-optimization/100254, target/98952, target/100200,
- tree-optimization/100239
-- fix ICE in aarch64_add_offset_1_temporaries (PR target/100302)
-
-* Fri Apr 23 2021 Jakub Jelinek 11.0.1-0.7
-- update from trunk and releases/gcc-11 branch
- - GCC 11.1-rc2
- - PRs libstdc++/100179, target/100182
-
-* Thu Apr 22 2021 Jakub Jelinek 11.0.1-0.6
-- update from trunk and releases/gcc-11 branch
- - GCC 11.1-rc1
- - PRs ada/99360, c++/97536, c/100143, d/98058, d/98457, d/98494, d/98584,
- d/99794, demangler/100177, fortran/100110, libstdc++/95983,
- libstdc++/100146, libstdc++/100164, preprocessor/100142,
- rtl-optimization/99927, target/100108, testsuite/100176,
- tree-optimization/100081
-- fix a cprop -fcompare-debug bug (PR rtl-optimization/100148)
-
-* Sun Apr 18 2021 Jakub Jelinek 11.0.1-0.5
-- update from trunk
- - PRs analyzer/98599, analyzer/99042, analyzer/99212, analyzer/99774,
- analyzer/99886, analyzer/99906, analyzer/100011, c++/41723, c++/49951,
- c++/52202, c++/52625, c++/58123, c++/80456, c++/83476, c++/88742,
- c++/90215, c++/90479, c++/90674, c++/91241, c++/91849, c++/91933,
- c++/92918, c++/93085, c++/93295, c++/93314, c++/93867, c++/94529,
- c++/95317, c++/95486, c++/95870, c++/96311, c++/96673, c++/96873,
- c++/97121, c++/97134, c++/97679, c++/97974, c++/98440, c++/98800,
- c++/98852, c++/99008, c++/99066, c++/99118, c++/99180, c++/99201,
- c++/99380, c++/99478, c++/99700, c++/99803, c++/99806, c++/99833,
- c++/99844, c++/99850, c++/99859, c++/99874, c++/99885, c++/99899,
- c++/99901, c++/99961, c++/99994, c++/100006, c++/100032, c++/100054,
- c++/100078, c++/100079, c++/100091, c++/100101, c++/100111, c/98852,
- c/99420, c/99972, c/99990, d/99812, d/99914, d/99917, debug/99830,
- fortran/63797, fortran/99307, fortran/99817, fortran/100018,
- fortran/100094, jit/100096, libfortran/78314, libgomp/99984,
- libstdc++/96657, libstdc++/99402, libstdc++/99433, libstdc++/99805,
- libstdc++/99985, libstdc++/99995, libstdc++/100044, libstdc++/100060,
- lto/98599, lto/99849, lto/99857, middle-end/55288, middle-end/84877,
- middle-end/84991, middle-end/84992, middle-end/86058,
- middle-end/90779, middle-end/98088, middle-end/99883,
- middle-end/99989, preprocessor/99446, rtl-optimization/98601,
- rtl-optimization/98689, rtl-optimization/99596,
- rtl-optimization/99905, rtl-optimization/99929,
- rtl-optimization/100066, sanitizer/99877, sanitizer/100114,
- target/87763, target/99246, target/99647, target/99648, target/99748,
- target/99767, target/99781, target/99872, target/100028,
- target/100048, target/100056, target/100067, target/100075,
- testsuite/99955, testsuite/100071, testsuite/100073,
- tree-optimization/82800, tree-optimization/97513,
- tree-optimization/98736, tree-optimization/99873,
- tree-optimization/99880, tree-optimization/99924,
- tree-optimization/99947, tree-optimization/99954,
- tree-optimization/100053
-- for %%{rhel} == 9, default to -march=z14 -mtune=z15 on s390x and
- to -mcpu=power9 -mtune=power9 on ppc64le
-
-* Mon Apr 5 2021 Jakub Jelinek 11.0.1-0.4
-- update from trunk
- - PRs ada/99802, analyzer/93695, analyzer/99044, analyzer/99716,
- analyzer/99771, bootstrap/98860, c++/90664, c++/91217, c++/91416,
- c++/94751, c++/97900, c++/97938, c++/98352, c++/99331, c++/99445,
- c++/99565, c++/99583, c++/99584, c++/99586, c++/99643, c++/99672,
- c++/99705, c++/99745, c++/99790, c++/99815, c++/99831, c++/99869,
- d/91595, d/99691, debug/99334, fortran/99369, fortran/99602,
- fortran/99651, fortran/99818, fortran/99840, ipa/98265, ipa/99122,
- ipa/99466, ipa/99751, libstdc++/99533, lto/99447, middle-end/65182,
- rtl-optimization/97141, rtl-optimization/98726,
- rtl-optimization/99863, target/96974, target/97653, target/98119,
- target/98136, target/98209, target/99037, target/99133, target/99216,
- target/99555, target/99718, target/99724, target/99727, target/99744,
- target/99753, target/99766, target/99773, target/99786, target/99808,
- target/99813, target/99820, target/99822, testsuite/98125,
- tree-optimization/48483, tree-optimization/55060,
- tree-optimization/59970, tree-optimization/61112,
- tree-optimization/61677, tree-optimization/61869,
- tree-optimization/96573, tree-optimization/96974,
- tree-optimization/97009, tree-optimization/98268,
- tree-optimization/99726, tree-optimization/99746,
- tree-optimization/99777, tree-optimization/99807,
- tree-optimization/99824, tree-optimization/99825,
- tree-optimization/99856, tree-optimization/99863,
- tree-optimization/99882
-
-* Wed Mar 24 2021 Jakub Jelinek 11.0.1-0.3
-- update from trunk
- - PRs analyzer/99614, c++/99239, c++/99283, c++/99318, c++/99425, c++/99456,
- c++/99480, c++/99687, c/99588, fortran/93660, fortran/99688,
- rtl-optimization/99680, target/97252, target/97926, target/98914,
- target/99540, target/99581, target/99652, target/99660, target/99661,
- target/99663, target/99679, target/99702, target/99704, target/99733,
- tree-optimization/99296, tree-optimization/99656,
- tree-optimization/99694, tree-optimization/99721
-
-* Fri Mar 19 2021 Jakub Jelinek 11.0.1-0.2
-- update from trunk
- - PRs c++/90448, c++/96268, c++/96749, c++/97973, c++/98480, c++/98704,
- c++/99047, c++/99108, c++/99238, c++/99248, c++/99285, c++/99423,
- c++/99436, c++/99459, c++/99472, c++/99496, c++/99500, c++/99507,
- c++/99508, c++/99509, c++/99528, c++/99601, c++/99613, c++/99617,
- fortran/49278, fortran/96983, fortran/97927, fortran/98858,
- fortran/99125, fortran/99205, fortran/99345, fortran/99514,
- fortran/99545, ipa/99517, libstdc++/99172, libstdc++/99341,
- libstdc++/99413, libstdc++/99536, libstdc++/99537, middle-end/97631,
- middle-end/98266, middle-end/99502, middle-end/99641, objc++/49070,
- sanitizer/98920, target/98092, target/98959, target/99070,
- target/99094, target/99102, target/99422, target/99437, target/99454,
- target/99463, target/99464, target/99492, target/99504, target/99542,
- target/99563, target/99592, target/99600, testsuite/97680,
- testsuite/98245, testsuite/99292, testsuite/99498, testsuite/99626,
- testsuite/99636, tree-optimization/98834, tree-optimization/99305,
- tree-optimization/99489, tree-optimization/99510,
- tree-optimization/99523, tree-optimization/99544
- - fix ARM ICE in neon_output_shift_immediate (#1922599, PR target/99593)
-- avoid false positive aarch64 -Wpsabi notes in some cases (PR target/91710)
-- fix a -fcompare-debug failure caused by C FE bug (PR debug/99230)
-- fix up -gdwarf-5 -gsplit-dwarf ranges handling (PR debug/99490)
-- fix up handling of > 64 bit constants in dwarf2out (PR debug/99562,
- PR debug/66728)
-- reject invalid C++ structured bindings that need reference to void
- (PR c++/99650)
-- include private isl 0.18 in the package instead of relying on old
- distro version
-
-* Sun Mar 7 2021 Jakub Jelinek 11.0.1-0.1
-- update from trunk
- - PRs ada/98996, ada/99020, ada/99095, ada/99264, analyzer/96374,
- analyzer/99193, bootstrap/92002, bootstrap/98590, c++/82959,
- c++/88146, c++/90333, c++/94521, c++/95451, c++/95615, c++/95616,
- c++/95675, c++/95822, c++/96078, c++/96330, c++/96443, c++/96474,
- c++/96960, c++/97034, c++/97587, c++/98118, c++/98318, c++/98810,
- c++/98990, c++/99009, c++/99103, c++/99120, c++/99166, c++/99170,
- c++/99176, c++/99213, c++/99245, c++/99251, c++/99287, c++/99294,
- c++/99344, c++/99362, c++/99365, c++/99374, c++/99377, c++/99389,
- c/99137, c/99275, c/99304, c/99323, c/99324, c/99325, c/99363,
- d/99337, debug/66668, debug/99090, debug/99319, fortran/57871,
- fortran/99300, fortran/99303, fortran/99355, gcov-profile/97461,
- gcov-profile/99105, gcov-profile/99385, gcov-profile/99406, ipa/98078,
- ipa/98338, libbacktrace/98818, libfortran/81986, libfortran/99218,
- libgomp/98738, libstdc++/99265, libstdc++/99270, libstdc++/99301,
- libstdc++/99382, libstdc++/99396, middle-end/93235, middle-end/94655,
- middle-end/95757, middle-end/96963, middle-end/97172,
- middle-end/97855, middle-end/99276, middle-end/99281,
- middle-end/99295, middle-end/99322, other/99288,
- rtl-optimization/99376, target/44107, target/48097, target/95798,
- target/98996, target/99085, target/99234, target/99271, target/99279,
- target/99313, target/99321, target/99381, testsuite/99233,
- tree-optimization/80635, tree-optimization/99253
-- fix debug info for __fp16 constants (PR debug/99388)
-
-* Thu Feb 25 2021 Jakub Jelinek 11.0.0-0.20
-- update from trunk
- - PRs analyzer/94596, analyzer/98969, analyzer/99196, c++/94034, c++/94546,
- c++/95468, c++/95888, c++/96251, c++/96926, c++/97246, c++/97582,
- c++/97742, c++/98718, c++/98741, c++/98988, c++/99023, c++/99030,
- c++/99031, c++/99033, c++/99035, c++/99039, c++/99040, c++/99062,
- c++/99063, c++/99071, c++/99072, c++/99074, c++/99116, c++/99132,
- c++/99150, c++/99153, c++/99174, c++/99208, c/97172, c/99055, c/99136,
- c/99224, debug/96997, debug/98755, fortran/98342, fortran/98686,
- fortran/98897, fortran/98979, fortran/99010, fortran/99027,
- fortran/99043, fortran/99060, fortran/99111, fortran/99124,
- fortran/99146, fortran/99171, fortran/99206, fortran/99226,
- inline-asm/98096, inline-asm/99123, ipa/97346, ipa/99003, ipa/99029,
- ipa/99034, jit/99126, libfortran/95647, libfortran/98825,
- libgcc/99236, libstdc++/88881, libstdc++/97549, libstdc++/98389,
- libstdc++/99058, libstdc++/99077, libstdc++/99096, libstdc++/99181,
- libstdc++/99261, middle-end/38474, middle-end/99007, middle-end/99109,
- middle-end/99122, preprocessor/96391, rtl-optimization/96264,
- rtl-optimization/98439, rtl-optimization/98791,
- rtl-optimization/98872, rtl-optimization/99054, sanitizer/99106,
- sanitizer/99168, target/85074, target/96166, target/97417,
- target/98491, target/98657, target/98931, target/98998, target/99025,
- target/99041, target/99100, target/99104, target/99113, target/99134,
- target/99157, testsuite/99173, translation/99167,
- tree-optimization/38474, tree-optimization/92879,
- tree-optimization/98772, tree-optimization/99002,
- tree-optimization/99024, tree-optimization/99026,
- tree-optimization/99079, tree-optimization/99142,
- tree-optimization/99149, tree-optimization/99165,
- tree-optimization/99204, tree-optimization/99220,
- tree-optimization/99225
-
-* Wed Feb 10 2021 Jakub Jelinek 11.0.0-0.19
-- update from trunk
- - PRs analyzer/93355, analyzer/96374, analyzer/98575, analyzer/98918,
- c++/20408, c++/84494, c++/90926, c++/95192, c++/96199, c++/96462,
- c++/96905, c++/97804, c++/97878, c++/98295, c++/98326, c++/98355,
- c++/98531, c++/98570, c++/98717, c++/98802, c++/98835, c++/98899,
- c++/98926, c++/98929, c++/98944, c++/98947, c++/98951, c++/98994,
- c/97882, c/97932, d/98910, d/98921, debug/98656, driver/98943,
- fortran/91862, fortran/98913, libstdc++/70303, libstdc++/99021,
- lto/96591, lto/98912, lto/98971, middle-end/97172, middle-end/97487,
- middle-end/97971, middle-end/98465, middle-end/98974,
- middle-end/99004, preprocessor/98882, rtl-optimization/96015,
- target/97510, target/98172, target/98537, target/98743, target/98957,
- testsuite/98243, testsuite/98325, tree-optimization/97960,
- tree-optimization/98287, tree-optimization/98499,
- tree-optimization/98848, tree-optimization/98855,
- tree-optimization/98863, tree-optimization/98928,
- tree-optimization/98937, tree-optimization/99017
-
-* Sat Jan 30 2021 Jakub Jelinek 11.0.0-0.18
-- update from trunk
- - PRs ada/98228, bootstrap/98839, c++/33661, c++/88548, c++/94775,
- c++/96137, c++/97474, c++/97566, c++/97874, c++/98463, c++/98646,
- c++/98770, c++/98841, c++/98843, c++/98847, d/98806, debug/98331,
- debug/98811, fortran/67539, fortran/70070, fortran/86470,
- fortran/93924, fortran/93925, fortran/96843, fortran/98472,
- fortran/98517, libstdc++/66414, lto/85574, middle-end/98726,
- middle-end/98807, rtl-optimization/80960, rtl-optimization/97684,
- rtl-optimization/98144, rtl-optimization/98863, sanitizer/98828,
- target/97701, target/98730, target/98799, target/98827, target/98833,
- target/98849, target/98853, testsuite/98771, testsuite/98870,
- tree-optimization/97260, tree-optimization/97627,
- tree-optimization/98854, tree-optimization/98866
-
-* Sat Jan 23 2021 Jakub Jelinek 11.0.0-0.17
-- update from trunk
- - PRs ada/98740, c++/41437, c++/58993, c++/71879, c++/82613, c++/95434,
- c++/96623, c++/97399, c++/97966, c++/98333, c++/98530, c++/98545,
- c++/98624, c++/98659, c++/98744, fortran/96320, fortran/98476,
- fortran/98565, fortran/98757, fortran/98763, gcov-profile/98739,
- ipa/97673, ipa/98330, ipa/98690, middle-end/98664, middle-end/98773,
- middle-end/98793, rtl-optimization/92294, rtl-optimization/98694,
- rtl-optimization/98722, rtl-optimization/98777, sanitizer/95693,
- target/79251, target/96372, target/96891, target/98065, target/98093,
- target/98348, target/98636, testsuite/97301, testsuite/98241,
- testsuite/98795, tree-optimization/47059, tree-optimization/90248,
- tree-optimization/96674, tree-optimization/98255,
- tree-optimization/98535, tree-optimization/98758,
- tree-optimization/98766, tree-optimization/98786
- - ensure for empty CUs -gdwarf-5 emits at least the required 0th directory
- and filename entry in the .debug_line section (#1919243, PR debug/98796)
-- fix aarch64 bug where emitted ubfix insn can't be assembled
- (PR target/98681)
-
-* Wed Jan 20 2021 Jakub Jelinek 11.0.0-0.16
-- fix DWARF5 -g -flto -ffat-lto-objects, so that LTO sections can be stripped
- off later (PR debug/98765)
-- fix GOMP_task caller stack corruption on s390x
-- libgccjit DWARF5 fixes (PR debug/98751)
-
-* Tue Jan 19 2021 Jakub Jelinek 11.0.0-0.15
-- update from trunk
- - PRs debug/98708, debug/98716, ipa/98222, libstdc++/98725, target/97847,
- testsuite/97299, testsuite/97494, testsuite/97987,
- tree-optimization/96271
- - fix miscompilation of portable signed multiplication overflow check
- (#1916576, PR tree-optimization/98727)
- - switch to DWARF 5 by default
-- fix PRs c++/98672, c++/98687, c++/98742, middle-end/98638,
- tree-optimization/98721
-
-* Sat Jan 16 2021 Jakub Jelinek 11.0.0-0.14
-- update from trunk
- - PRs ada/98595, analyzer/98679, bootstrap/98696, c++/63707, c++/98231,
- c++/98372, c++/98538, c++/98591, c++/98626, c++/98642, fortran/98661,
- ipa/98652, jit/98586, libgomp/65099, libstdc++/98466, libstdc++/98471,
- preprocessor/95253, target/70454, target/71233, target/88836,
- target/95905, target/96938, target/98667, target/98671, target/98676,
- testsuite/96098, testsuite/96147, tree-optimization/92645,
- tree-optimization/96376, tree-optimization/96669,
- tree-optimization/96681, tree-optimization/96688,
- tree-optimization/96691, tree-optimization/98455,
- tree-optimization/98597, tree-optimization/98640,
- tree-optimization/98674, tree-optimization/98685
- - fix up pmovzx permutation SSE4.1 patterns (#1916240, PR target/98670)
-
-* Wed Jan 13 2021 Jakub Jelinek 11.0.0-0.13
-- update from trunk
- - PRs analyzer/98628, c++/97284, c++/98481, c++/98556, c++/98611, c++/98620,
- c/98592, debug/97714, jit/98615, libstdc++/98613,
- rtl-optimization/98603, target/97875, target/97969, target/98612,
- testsuite/98225, testsuite/98602, tree-optimization/91403,
- tree-optimization/95731, tree-optimization/95852,
- tree-optimization/95867, tree-optimization/98526,
- tree-optimization/98550, tree-optimization/98629
- - fix ICEs in print_mem_ref (#1915400, #1915437, #1915781, PR c/98597)
-
-* Sat Jan 9 2021 Jakub Jelinek 11.0.0-0.12
-- update from trunk
- - PRs analyzer/97072, analyzer/97074, analyzer/98073, analyzer/98223,
- analyzer/98293, analyzer/98564, analyzer/98580, bootstrap/98324,
- bootstrap/98506, c++/82099, c++/95768, c++/96045, c++/96504,
- c++/97597, c++/98206, c++/98305, c++/98316, c++/98329, c++/98332,
- c++/98353, c++/98413, c++/98441, c++/98469, c++/98515, c++/98551,
- c/98029, d/98427, fortran/83118, fortran/93701, fortran/93794,
- fortran/93833, fortran/97612, fortran/97694, fortran/97723,
- fortran/98022, fortran/98458, libstdc++/98384, middle-end/98160,
- middle-end/98578, other/98437, rtl-optimization/97144,
- rtl-optimization/97978, rtl-optimization/98214,
- rtl-optimization/98334, rtl-optimization/98403, target/89057,
- target/96793, target/97269, target/98461, target/98482, target/98495,
- target/98521, target/98522, target/98567, target/98585,
- testsuite/98489, testsuite/98566, tree-optimization/56719,
- tree-optimization/94785, tree-optimization/94802,
- tree-optimization/94994, tree-optimization/95401,
- tree-optimization/95582, tree-optimization/95771,
- tree-optimization/96239, tree-optimization/96782,
- tree-optimization/96928, tree-optimization/96930,
- tree-optimization/98282, tree-optimization/98291,
- tree-optimization/98302, tree-optimization/98308,
- tree-optimization/98371, tree-optimization/98381,
- tree-optimization/98393, tree-optimization/98428,
- tree-optimization/98464, tree-optimization/98474,
- tree-optimization/98513, tree-optimization/98514,
- tree-optimization/98516, tree-optimization/98544,
- tree-optimization/98560, tree-optimization/98568
-
-* Wed Dec 23 2020 Jakub Jelinek 11.0.0-0.11
-- update from trunk
- - PRs bootstrap/98300, bootstrap/98380, bootstrap/98412, c++/67343,
- c++/93480, c++/96840, c++/98340, c++/98343, c++/98353, c++/98383,
- c/98047, c/98260, d/98067, fortran/83118, fortran/92587,
- fortran/96012, fortran/98284, fortran/98307, go/98402,
- libstdc++/46447, libstdc++/93151, libstdc++/96083, libstdc++/98319,
- libstdc++/98344, libstdc++/98370, libstdc++/98374, libstdc++/98377,
- middle-end/98366, other/98400, other/98409, rtl-optimization/98271,
- rtl-optimization/98276, rtl-optimization/98289,
- rtl-optimization/98347, sanitizer/97868, target/96793, target/98146,
- target/98177, target/98280, tree-optimization/96239,
- tree-optimization/97750, tree-optimization/98272,
- tree-optimization/98279, tree-optimization/98378,
- tree-optimization/98407
-
-* Thu Dec 17 2020 Jakub Jelinek 11.0.0-0.10
-- apply workaround for profiledbootstrap x86_64 failure
-- put g++-mapper-server into the right directory
-
-* Wed Dec 16 2020 Jakub Jelinek 11.0.0-0.8
-- update from trunk
- - PRs ada/98230, bootstrap/98188, c++/57111, c++/59238, c++/68451,
- c++/78173, c++/91506, c++/93083, c++/96299, c++/97093, c++/97517,
- c++/98043, c++/98103, c++/98122, c++/98126, c++/98130, c++/98187,
- c++/98193, c/97981, c/98200, d/98277, fortran/90207, fortran/98016,
- fortran/98022, gcov-profile/98273, libstdc++/98108, libstdc++/98226,
- lto/98275, middle-end/94600, middle-end/98160, middle-end/98166,
- middle-end/98183, middle-end/98190, middle-end/98205,
- middle-end/98264, rtl-optimization/97092, rtl-optimization/97421,
- rtl-optimization/98212, rtl-optimization/98229, sanitizer/98204,
- target/58901, target/66791, target/92469, target/94440, target/95294,
- target/96226, target/96470, target/97865, target/97872, target/98100,
- target/98147, target/98152, target/98161, target/98162, target/98219,
- target/98274, testsuite/95900, testsuite/98123, testsuite/98156,
- testsuite/98239, testsuite/98240, testsuite/98242, testsuite/98244,
- tree-optimization/95582, tree-optimization/96094,
- tree-optimization/96232, tree-optimization/96272,
- tree-optimization/96344, tree-optimization/96685,
- tree-optimization/97559, tree-optimization/97929,
- tree-optimization/98069, tree-optimization/98113,
- tree-optimization/98117, tree-optimization/98137,
- tree-optimization/98169, tree-optimization/98174,
- tree-optimization/98180, tree-optimization/98182,
- tree-optimization/98191, tree-optimization/98192,
- tree-optimization/98199, tree-optimization/98211,
- tree-optimization/98213, tree-optimization/98235,
- tree-optimization/98256
- - C++20 modules support
- - fix up __patchable_function_entries handling when gcc is configured
- against recent binutils (#1907945)
-- fix up handling of non-memory VIEW_CONVERT_EXPRs in PRE
- (PR tree-optimization/98282)
-
-* Fri Dec 4 2020 Jakub Jelinek 11.0.0-0.7
-- update from trunk
- - PRs bootstrap/97983, c++/80780, c++/90629, c++/93093, c++/97187,
- c++/97947, c++/97975, c++/97993, c++/98019, c++/98054, c++/98072,
- c++/98104, c++/98107, c++/98115, c++/98116, c/65455, c/92935, c/97880,
- c/98087, d/87788, d/87818, d/98025, debug/97989, fortran/95342,
- fortran/98010, fortran/98011, fortran/98013, ipa/88702, ipa/98057,
- ipa/98075, jit/97867, libgcc/97543, libgcc/97643, libstdc++/65480,
- libstdc++/68735, libstdc++/93121, libstdc++/98001, libstdc++/98003,
- middle-end/89428, middle-end/92936, middle-end/92940,
- middle-end/93195, middle-end/93197, middle-end/94527,
- middle-end/97373, middle-end/97595, middle-end/98070,
- middle-end/98082, middle-end/98099, other/98027, plugins/98059,
- preprocessor/97602, rtl-optimization/97459, rtl-optimization/97777,
- rtl-optimization/97954, rtl-optimization/98037, target/96607,
- target/96906, target/97642, target/97770, target/97939, target/98063,
- target/98079, target/98086, testsuite/98002, testsuite/98036,
- testsuite/98085, tree-optimization/14799, tree-optimization/88702,
- tree-optimization/96679, tree-optimization/96708,
- tree-optimization/97630, tree-optimization/97953,
- tree-optimization/97979, tree-optimization/97997,
- tree-optimization/98024, tree-optimization/98048,
- tree-optimization/98064, tree-optimization/98066,
- tree-optimization/98084
-
-* Thu Nov 26 2020 Jakub Jelinek 11.0.0-0.6
-- update from trunk
- - PRs bootstrap/94982, bootstrap/97622, bootstrap/97933, c++/97899, c/97958,
- fortran/85796, libstdc++/67791, libstdc++/97935, libstdc++/97936,
- libstdc++/97944, middle-end/97943, middle-end/97956,
- rtl-optimization/95862, target/91816, target/97534, target/97950,
- tree-optimization/96929, tree-optimization/97849,
- tree-optimization/97964
-
-* Tue Nov 24 2020 Jakub Jelinek 11.0.0-0.5
-- update from trunk
- - PRs c++/94695, c++/97427, c++/97839, c++/97846, c++/97881, c++/97904,
- c/95630, d/97889, libstdc++/97948, tree-optimization/95853
-
-* Sat Nov 21 2020 Jakub Jelinek 11.0.0-0.4
-- update from trunk
- - PRs ada/97805, ada/97859, analyzer/97668, analyzer/97893, bootstrap/57076,
- bootstrap/97666, bootstrap/97857, c++/25814, c++/52830, c++/63287,
- c++/67453, c++/78209, c++/81660, c++/87765, c++/88115, c++/88982,
- c++/89565, c++/90799, c++/91318, c++/93107, c++/93907, c++/95808,
- c++/97388, c++/97412, c++/97453, c++/97479, c++/97518, c++/97523,
- c++/97632, c++/97663, c++/97670, c++/97675, c++/97762, c++/97790,
- c++/97871, c++/97877, c++/97895, c++/97905, c++/97918, c/90628,
- c/97748, c/97860, d/97644, d/97842, d/97843, debug/97060, debug/97599,
- debug/97718, driver/97574, fortran/90111, fortran/92793,
- fortran/94358, fortran/95847, fortran/97652, fortran/97655,
- fortran/97768, fortran/97782, ipa/97578, ipa/97660, ipa/97695,
- ipa/97698, ipa/97816, jit/87291, libstdc++/55394, libstdc++/66146,
- libstdc++/83938, libstdc++/84323, libstdc++/88101, libstdc++/92285,
- libstdc++/92546, libstdc++/93421, libstdc++/93456, libstdc++/94971,
- libstdc++/95989, libstdc++/96269, libstdc++/96958, libstdc++/97415,
- libstdc++/97600, libstdc++/97613, libstdc++/97719, libstdc++/97729,
- libstdc++/97731, libstdc++/97758, libstdc++/97798, libstdc++/97828,
- libstdc++/97869, lto/97290, lto/97508, middle-end/85811,
- middle-end/95673, middle-end/97267, middle-end/97556,
- middle-end/97579, middle-end/97840, middle-end/97862,
- middle-end/97879, objc/77404, objc/90707, objc/97854, other/97911,
- pch/86674, pch/97593, preprocessor/97858, rtl-optimization/92180,
- rtl-optimization/97705, sanitizer/95634, target/31799, target/85486,
- target/91489, target/93449, target/96307, target/96770, target/96791,
- target/96933, target/96967, target/96998, target/97140, target/97194,
- target/97205, target/97326, target/97528, target/97532, target/97540,
- target/97638, target/97682, target/97685, target/97715, target/97726,
- target/97727, target/97730, target/97870, target/97873,
- testsuite/80219, testsuite/85303, testsuite/97117, testsuite/97688,
- testsuite/97788, testsuite/97797, testsuite/97803,
- tree-optimization/80928, tree-optimization/83072,
- tree-optimization/91029, tree-optimization/93781,
- tree-optimization/94406, tree-optimization/96671,
- tree-optimization/96789, tree-optimization/97223,
- tree-optimization/97424, tree-optimization/97558,
- tree-optimization/97609, tree-optimization/97623,
- tree-optimization/97626, tree-optimization/97633,
- tree-optimization/97650, tree-optimization/97678,
- tree-optimization/97690, tree-optimization/97693,
- tree-optimization/97706, tree-optimization/97709,
- tree-optimization/97721, tree-optimization/97725,
- tree-optimization/97732, tree-optimization/97733,
- tree-optimization/97736, tree-optimization/97737,
- tree-optimization/97741, tree-optimization/97746,
- tree-optimization/97753, tree-optimization/97760,
- tree-optimization/97761, tree-optimization/97764,
- tree-optimization/97765, tree-optimization/97767,
- tree-optimization/97769, tree-optimization/97780,
- tree-optimization/97806, tree-optimization/97812,
- tree-optimization/97830, tree-optimization/97835,
- tree-optimization/97838, tree-optimization/97886,
- tree-optimization/97888, tree-optimization/97897,
- tree-optimization/97901
-- add BuildRequires: make and Requires: make, the latter for -flto reasons
-
-* Thu Oct 29 2020 Jakub Jelinek 11.0.0-0.3
-- update from trunk
- - PRs ada/97504, analyzer/96608, analyzer/97489, analyzer/97514,
- analyzer/97568, analyzer/97608, bootstrap/97451, c++/82239, c++/86773,
- c++/91741, c++/94799, c++/95132, c++/96241, c++/96575, c++/96675,
- c++/96742, c++/97328, c++/97438, c++/97511, c++/97573, c/94722,
- c/97463, fortran/45516, fortran/97454, gcov-profile/97461, ipa/97445,
- ipa/97576, ipa/97586, libstdc++/94268, libstdc++/95592,
- libstdc++/95609, libstdc++/95917, libstdc++/96713, libstdc++/97512,
- libstdc++/97570, lto/96680, lto/97524, middle-end/92942,
- middle-end/97521, middle-end/97552, rtl-optimization/97249,
- rtl-optimization/97439, rtl-optimization/97497, sanitizer/97414,
- target/87767, target/95151, target/95458, target/97360, target/97502,
- target/97506, target/97535, testsuite/81690, testsuite/97590,
- tree-optimization/66552, tree-optimization/97164,
- tree-optimization/97360, tree-optimization/97456,
- tree-optimization/97457, tree-optimization/97466,
- tree-optimization/97467, tree-optimization/97486,
- tree-optimization/97488, tree-optimization/97496,
- tree-optimization/97500, tree-optimization/97501,
- tree-optimization/97503, tree-optimization/97505,
- tree-optimization/97515, tree-optimization/97520,
- tree-optimization/97538, tree-optimization/97539,
- tree-optimization/97546, tree-optimization/97555,
- tree-optimization/97560, tree-optimization/97567,
- tree-optimization/97615
-- for ELN default to -march=x86-64-v2 for x86 64-bit compilation and
- for s390x to -march=z13 -mtune=arch13
-
-* Mon Oct 19 2020 Jakub Jelinek 11.0.0-0.2
+* Sat Jan 8 2022 Jakub Jelinek 12.0.0-0.3
- new package
diff --git a/gcc11-Wno-format-security.patch b/gcc11-Wno-format-security.patch
deleted file mode 100644
index 974ea44..0000000
--- a/gcc11-Wno-format-security.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-2017-02-25 Jakub Jelinek
-
- * configure.ac: When adding -Wno-format, also add -Wno-format-security.
- * configure: Regenerated.
-
---- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100
-+++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100
-@@ -480,7 +480,7 @@ AC_ARG_ENABLE(build-format-warnings,
- AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
- [],[enable_build_format_warnings=yes])
- AS_IF([test $enable_build_format_warnings = no],
-- [wf_opt=-Wno-format],[wf_opt=])
-+ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
- ACX_PROG_CXX_WARNING_OPTS(
- m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
- [-Wcast-qual -Wno-error=format-diag $wf_opt])),
---- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100
-+++ gcc/configure 2017-02-25 12:42:50.041946391 +0100
-@@ -6647,7 +6647,7 @@ else
- fi
-
- if test $enable_build_format_warnings = no; then :
-- wf_opt=-Wno-format
-+ wf_opt="-Wno-format -Wno-format-security"
- else
- wf_opt=
- fi
diff --git a/gcc11-foffload-default.patch b/gcc11-foffload-default.patch
deleted file mode 100644
index d1aae64..0000000
--- a/gcc11-foffload-default.patch
+++ /dev/null
@@ -1,116 +0,0 @@
-2019-01-17 Jakub Jelinek
-
- * gcc.c (offload_targets_default): New variable.
- (process_command): Set it if -foffload is defaulted.
- (driver::maybe_putenv_OFFLOAD_TARGETS): Add OFFLOAD_TARGET_DEFAULT=1
- into environment if -foffload has been defaulted.
- * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
- (compile_offload_image): If OFFLOAD_TARGET_DEFAULT
- is in the environment, don't fail if corresponding mkoffload
- can't be found.
- (compile_images_for_offload_targets): Likewise. Free and clear
- offload_names if no valid offload is found.
-libgomp/
- * target.c (gomp_load_plugin_for_device): If a plugin can't be
- dlopened, assume it has no devices silently.
-
---- gcc/gcc.c.jj 2017-01-17 10:28:40.000000000 +0100
-+++ gcc/gcc.c 2017-01-20 16:26:29.649962902 +0100
-@@ -319,6 +319,10 @@ static const char *spec_host_machine = D
-
- static char *offload_targets = NULL;
-
-+/* Set to true if -foffload has not been used and offload_targets
-+ is set to the configured in default. */
-+static bool offload_targets_default;
-+
- /* Nonzero if cross-compiling.
- When -b is used, the value comes from the `specs' file. */
-
-@@ -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)
-- handle_foffload_option (OFFLOAD_TARGETS);
-+ {
-+ handle_foffload_option (OFFLOAD_TARGETS);
-+ offload_targets_default = true;
-+ }
-
- /* 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 *));
-+ if (offload_targets_default)
-+ xputenv ("OFFLOAD_TARGET_DEFAULT=1");
- }
-
- free (offload_targets);
---- gcc/lto-wrapper.c.jj 2017-01-01 12:45:34.000000000 +0100
-+++ gcc/lto-wrapper.c 2017-01-20 16:34:18.294016997 +0100
-@@ -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"
-+#define OFFLOAD_TARGET_DEFAULT_ENV "OFFLOAD_TARGET_DEFAULT"
-
- /* By default there is no special suffix for target executables. */
- #ifdef TARGET_EXECUTABLE_SUFFIX
-@@ -906,6 +907,12 @@ compile_offload_image (const char *targe
- break;
- }
-
-+ if (!compiler && getenv (OFFLOAD_TARGET_DEFAULT_ENV))
-+ {
-+ free_array_of_ptrs ((void **) paths, n_paths);
-+ return NULL;
-+ }
-+
- if (!compiler)
- fatal_error (input_location,
- "could not find %s in %s (consider using %<-B%>)",
-@@ -975,6 +982,7 @@ compile_images_for_offload_targets (unsi
- if (!target_names)
- return;
- unsigned num_targets = parse_env_var (target_names, &names, NULL);
-+ int next_name_entry = 0;
-
- const char *compiler_path = getenv ("COMPILER_PATH");
- if (!compiler_path)
-@@ -985,13 +993,19 @@ compile_images_for_offload_targets (unsi
- offload_names = XCNEWVEC (char *, num_targets + 1);
- for (unsigned i = 0; i < num_targets; i++)
- {
-- offload_names[i]
-+ offload_names[next_name_entry]
- = compile_offload_image (names[i], compiler_path, in_argc, in_argv,
- compiler_opts, compiler_opt_count,
- linker_opts, linker_opt_count);
-- if (!offload_names[i])
-- fatal_error (input_location,
-- "problem with building target image for %s", names[i]);
-+ if (!offload_names[next_name_entry])
-+ continue;
-+ next_name_entry++;
-+ }
-+
-+ if (next_name_entry == 0)
-+ {
-+ free (offload_names);
-+ offload_names = NULL;
- }
-
- out:
---- libgomp/target.c.jj 2017-01-01 12:45:52.000000000 +0100
-+++ libgomp/target.c 2017-01-20 20:12:13.756710875 +0100
-@@ -2356,7 +2356,7 @@ gomp_load_plugin_for_device (struct gomp
-
- void *plugin_handle = dlopen (plugin_name, RTLD_LAZY);
- if (!plugin_handle)
-- goto dl_fail;
-+ return 0;
-
- /* Check if all required functions are available in the plugin and store
- their handlers. None of the symbols can legitimately be NULL,
diff --git a/gcc11-libgcc-link.patch b/gcc11-libgcc-link.patch
deleted file mode 100644
index 8551934..0000000
--- a/gcc11-libgcc-link.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-libgcc: Honor LDFLAGS_FOR_TARGET when linking libgcc_s
-
-When building gcc with some specific LDFLAGS_FOR_TARGET, e.g.
-LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now
-those flags propagate info linking of target shared libraries,
-e.g. lib{ubsan,tsan,stdc++,quadmath,objc,lsan,itm,gphobos,gdruntime,gomp,go,gfortran,atomic,asan}.so.*
-but there is one important exception, libgcc_s.so.* linking ignores it.
-
-The following patch fixes that.
-
-Bootstrapped/regtested on x86_64-linux with LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now
-and verified that libgcc_s.so.* is BIND_NOW when it previously wasn't, and
-without any LDFLAGS_FOR_TARGET on x86_64-linux and i686-linux.
-There on x86_64-linux I've verified that the libgcc_s.so.1 linking command
-line for -m64 is identical except for whitespace to one without the patch,
-and for -m32 multilib $(LDFLAGS) actually do supply there an extra -m32
-that also repeats later in the @multilib_flags@, which should be harmless.
-
-2021-08-04 Jakub Jelinek
-
- * config/t-slibgcc (SHLIB_LINK): Add $(LDFLAGS).
- * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
- * config/t-slibgcc-vms (SHLIB_LINK): Likewise.
-
---- libgcc/config/t-slibgcc
-+++ libgcc/config/t-slibgcc
-@@ -32,7 +32,7 @@ SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_SONAME) \
- $(DESTDIR)$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK)
-
- SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
-- $(SHLIB_LDFLAGS) \
-+ $(SHLIB_LDFLAGS) $(LDFLAGS) \
- -o $(SHLIB_DIR)/$(SHLIB_SONAME).tmp @multilib_flags@ \
- $(SHLIB_OBJS) $(SHLIB_LC) && \
- rm -f $(SHLIB_DIR)/$(SHLIB_SOLINK) && \
---- libgcc/config/t-slibgcc-darwin
-+++ libgcc/config/t-slibgcc-darwin
-@@ -15,7 +15,7 @@ SHLIB_LC = -lc
- # Note that this version is used for the loader, not the linker; the linker
- # uses the stub versions named by the versioned members of $(INSTALL_FILES).
-
--SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) -dynamiclib -nodefaultlibs \
-+SHLIB_LINK = $(CC) $(LIBGCC2_CFLAGS) $(LDFLAGS) -dynamiclib -nodefaultlibs \
- -install_name @shlib_slibdir@/$(SHLIB_INSTALL_NAME) \
- -single_module -o $(SHLIB_DIR)/$(SHLIB_SONAME) \
- -Wl,-exported_symbols_list,$(SHLIB_MAP) \
---- libgcc/config/t-slibgcc-vms
-+++ libgcc/config/t-slibgcc-vms
-@@ -22,7 +22,7 @@ SHLIB_LINK = \
- objdump --syms $(SHLIB_OBJS) | \
- $(SHLIB_SYMVEC) >> SYMVEC_$$$$.opt ; \
- echo "case_sensitive=NO" >> SYMVEC_$$$$.opt; \
-- $(CC) $(LIBGCC2_CFLAGS) -nodefaultlibs \
-+ $(CC) $(LIBGCC2_CFLAGS) $(LDFLAGS) -nodefaultlibs \
- -shared --for-linker=/noinform -o $(SHLIB_NAME) $(SHLIB_OBJS) \
- --for-linker=SYMVEC_$$$$.opt \
- --for-linker=gsmatch=equal,$(shlib_version)
diff --git a/gcc11-pr101786.patch b/gcc11-pr101786.patch
deleted file mode 100644
index 427c10a..0000000
--- a/gcc11-pr101786.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-c++: Optimize constinit thread_local vars [PR101786]
-
-The paper that introduced constinit mentioned in rationale that constinit
-can be used on externs as well and that it can be used to avoid the
-thread_local initialization wrappers, because the standard requires that
-if constinit is present on any declaration, it is also present on the
-initialization declaration, even if it is in some other TU etc.
-
-There is a small problem though, we use the tls wrappers not just if
-the thread_local variable needs dynamic initialization, but also when
-it has static initialization, but non-trivial destructor, as the
-"dynamic initialization" in that case needs to register the destructor.
-
-So, the following patch optimizes constinit thread_local vars only
-if we can prove they will not have non-trivial destructors. That includes
-the case where we have incomplete type where we don't know and need to
-conservatively assume the type will have non-trivial destructor at the
-initializing declaration side.
-
-2021-08-11 Jakub Jelinek
-
- PR c++/101786
- * decl2.c (var_defined_without_dynamic_init): Return true for
- DECL_DECLARED_CONSTINIT_P with complete type and trivial destructor.
-
- * g++.dg/cpp2a/constinit16.C: New test.
-
---- gcc/cp/decl2.c
-+++ gcc/cp/decl2.c
-@@ -3447,6 +3447,12 @@ set_guard (tree guard)
- static bool
- var_defined_without_dynamic_init (tree var)
- {
-+ /* constinit vars are guaranteed to not have dynamic initializer,
-+ but still registering the destructor counts as dynamic initialization. */
-+ if (DECL_DECLARED_CONSTINIT_P (var)
-+ && COMPLETE_TYPE_P (TREE_TYPE (var))
-+ && !TYPE_HAS_NONTRIVIAL_DESTRUCTOR (TREE_TYPE (var)))
-+ return true;
- /* If it's defined in another TU, we can't tell. */
- if (DECL_EXTERNAL (var))
- return false;
---- gcc/testsuite/g++.dg/cpp2a/constinit16.C
-+++ gcc/testsuite/g++.dg/cpp2a/constinit16.C
-@@ -0,0 +1,21 @@
-+// PR c++/101786
-+// { dg-do compile { target c++20 } }
-+// { dg-add-options tls }
-+// { dg-require-alias "" }
-+// { dg-require-effective-target tls_runtime }
-+// { dg-final { scan-assembler-not "_ZTH17mythreadlocalvar1" } }
-+// { dg-final { scan-assembler "_ZTH17mythreadlocalvar2" } }
-+// { dg-final { scan-assembler-not "_ZTH17mythreadlocalvar3" } }
-+// { dg-final { scan-assembler "_ZTH17mythreadlocalvar4" } }
-+
-+extern thread_local constinit int mythreadlocalvar1;
-+struct S;
-+extern thread_local constinit S mythreadlocalvar2;
-+struct T { int t; };
-+extern thread_local constinit T mythreadlocalvar3;
-+struct U { int u; ~U (); };
-+extern thread_local constinit U mythreadlocalvar4;
-+int foo () { return mythreadlocalvar1; }
-+S *bar () { return &mythreadlocalvar2; }
-+T *baz () { return &mythreadlocalvar3; }
-+U *qux () { return &mythreadlocalvar4; }
diff --git a/gcc11-pr99341-revert.patch b/gcc11-pr99341-revert.patch
deleted file mode 100644
index c7419cb..0000000
--- a/gcc11-pr99341-revert.patch
+++ /dev/null
@@ -1,176 +0,0 @@
-libstdc++: Remove symbols for new std::call_once implementation [PR 99341]
-
-This removes the new symbols added for the new futex-based
-std::call_once implementation. These symbols were new on trunk, so not
-in any released version. However, they are already present in some
-beta distro releases (Fedora Linux 34) and in Fedora Linux rawhide. This
-change can be locally reverted by distros that need to keep the symbols
-present until affected packages have been rebuilt.
-
-Revert:
-2021-03-12 Jonathan Wakely
-
- PR libstdc++/99341
- * config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Remove
- std::once_flag symbols.
- * config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Likewise.
- * config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
- * config/abi/post/riscv64-linux-gnu/baseline_symbols.txt:
- Likewise.
- * config/abi/pre/gnu.ver: Likewise.
- * src/c++11/mutex.cc [_GLIBCXX_HAVE_LINUX_FUTEX]
- (struct __once_flag_compat): Remove.
- (_ZNSt9once_flag11_M_activateEv): Remove.
- (_ZNSt9once_flag9_M_finishEb): Remove.
-
---- libstdc++-v3/config/abi/post/aarch64-linux-gnu/baseline_symbols.txt
-+++ libstdc++-v3/config/abi/post/aarch64-linux-gnu/baseline_symbols.txt
-@@ -4086,6 +4086,8 @@ FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEEC2Em@@GLIBCXX
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED0Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED1Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED2Ev@@GLIBCXX_3.4
-+FUNC:_ZNSt9once_flag11_M_activateEv@@GLIBCXX_3.4.29
-+FUNC:_ZNSt9once_flag9_M_finishEb@@GLIBCXX_3.4.29
- FUNC:_ZNSt9strstream3strEv@@GLIBCXX_3.4
- FUNC:_ZNSt9strstream6freezeEb@@GLIBCXX_3.4
- FUNC:_ZNSt9strstreamC1EPciSt13_Ios_Openmode@@GLIBCXX_3.4
---- libstdc++-v3/config/abi/post/ia64-linux-gnu/baseline_symbols.txt
-+++ libstdc++-v3/config/abi/post/ia64-linux-gnu/baseline_symbols.txt
-@@ -4086,6 +4086,8 @@ FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEEC2Em@@GLIBCXX
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED0Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED1Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED2Ev@@GLIBCXX_3.4
-+FUNC:_ZNSt9once_flag11_M_activateEv@@GLIBCXX_3.4.29
-+FUNC:_ZNSt9once_flag9_M_finishEb@@GLIBCXX_3.4.29
- FUNC:_ZNSt9strstream3strEv@@GLIBCXX_3.4
- FUNC:_ZNSt9strstream6freezeEb@@GLIBCXX_3.4
- FUNC:_ZNSt9strstreamC1EPciSt13_Ios_Openmode@@GLIBCXX_3.4
---- libstdc++-v3/config/abi/post/m68k-linux-gnu/baseline_symbols.txt
-+++ libstdc++-v3/config/abi/post/m68k-linux-gnu/baseline_symbols.txt
-@@ -4086,6 +4086,8 @@ FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEEC2Ej@@GLIBCXX
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED0Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED1Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED2Ev@@GLIBCXX_3.4
-+FUNC:_ZNSt9once_flag11_M_activateEv@@GLIBCXX_3.4.29
-+FUNC:_ZNSt9once_flag9_M_finishEb@@GLIBCXX_3.4.29
- FUNC:_ZNSt9strstream3strEv@@GLIBCXX_3.4
- FUNC:_ZNSt9strstream6freezeEb@@GLIBCXX_3.4
- FUNC:_ZNSt9strstreamC1EPciSt13_Ios_Openmode@@GLIBCXX_3.4
---- libstdc++-v3/config/abi/post/riscv64-linux-gnu/baseline_symbols.txt
-+++ libstdc++-v3/config/abi/post/riscv64-linux-gnu/baseline_symbols.txt
-@@ -4086,6 +4086,8 @@ FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEEC2Em@@GLIBCXX
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED0Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED1Ev@@GLIBCXX_3.4
- FUNC:_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED2Ev@@GLIBCXX_3.4
-+FUNC:_ZNSt9once_flag11_M_activateEv@@GLIBCXX_3.4.29
-+FUNC:_ZNSt9once_flag9_M_finishEb@@GLIBCXX_3.4.29
- FUNC:_ZNSt9strstream3strEv@@GLIBCXX_3.4
- FUNC:_ZNSt9strstream6freezeEb@@GLIBCXX_3.4
- FUNC:_ZNSt9strstreamC1EPciSt13_Ios_Openmode@@GLIBCXX_3.4
---- libstdc++-v3/config/abi/pre/gnu.ver
-+++ libstdc++-v3/config/abi/pre/gnu.ver
-@@ -2388,6 +2388,11 @@ GLIBCXX_3.4.29 {
- _ZNKRSt7__cxx1118basic_stringstreamI[cw]St11char_traitsI[cw]ESaI[cw]EE3strEv;
- _ZNSt7__cxx1118basic_stringstreamI[cw]St11char_traitsI[cw]ESaI[cw]EE3strEONS_12basic_stringI[cw]S2_S3_EE;
-
-+ # std::once_flag::_M_activate()
-+ _ZNSt9once_flag11_M_activateEv;
-+ # std::once_flag::_M_finish(bool)
-+ _ZNSt9once_flag9_M_finishEb;
-+
- # std::to_chars(char*, char*, [float|double|long double])
- _ZSt8to_charsPcS_[def];
- # std::to_chars(char*, char*, [float|double|long double], chars_format)
---- libstdc++-v3/src/c++11/mutex.cc
-+++ libstdc++-v3/src/c++11/mutex.cc
-@@ -26,6 +26,90 @@
-
- #ifdef _GLIBCXX_HAS_GTHREADS
-
-+#if defined _GLIBCXX_SHARED && ! _GLIBCXX_INLINE_VERSION
-+
-+#ifdef _GLIBCXX_HAVE_LINUX_FUTEX
-+# include
-+# include
-+# include
-+
-+namespace std _GLIBCXX_VISIBILITY(default)
-+{
-+_GLIBCXX_BEGIN_NAMESPACE_VERSION
-+
-+struct __once_flag_compat
-+{
-+ enum _Bits : int { _Init = 0, _Active = 1, _Done = 2 };
-+ int _M_once = 0;
-+ bool _M_activate();
-+ void _M_finish(bool returning) noexcept;
-+};
-+
-+bool
-+__once_flag_compat::_M_activate()
-+{
-+ if (__gnu_cxx::__is_single_threaded())
-+ {
-+ if (_M_once == _Bits::_Done)
-+ return false;
-+ _M_once = _Bits::_Active;
-+ return true;
-+ }
-+
-+ while (true)
-+ {
-+ int expected = _Bits::_Init;
-+ constexpr int active = _Bits::_Active;
-+ if (__atomic_compare_exchange_n(&_M_once, &expected, active, false,
-+ __ATOMIC_ACQ_REL,
-+ __ATOMIC_ACQUIRE))
-+ {
-+ // This thread is now doing an active execution.
-+ return true;
-+ }
-+
-+ if (expected == _Bits::_Done)
-+ return false; // A returning execution happened, this is passive.
-+
-+ // Otherwise, an active execution is happening. Wait for it to finish.
-+ constexpr int futex_wait = 128; // FUTEX_WAIT_PRIVATE
-+ syscall (SYS_futex, &_M_once, futex_wait, expected, 0);
-+ }
-+}
-+
-+void
-+std::__once_flag_compat::_M_finish(bool returning) noexcept
-+{
-+ const int newval = returning ? _Bits::_Done : _Bits::_Init;
-+ if (__gnu_cxx::__is_single_threaded())
-+ {
-+ __glibcxx_assert(_M_once == _Bits::_Active);
-+ _M_once = newval;
-+ }
-+ else
-+ {
-+ int prev [[maybe_unused]]
-+ = __atomic_exchange_n(&_M_once, newval, __ATOMIC_RELEASE);
-+ __glibcxx_assert(prev & _Bits::_Active);
-+ // Wake any other threads waiting for this execution to finish.
-+ constexpr int futex_wake = 129; // FUTEX_WAKE_PRIVATE
-+ syscall (SYS_futex, &_M_once, futex_wake, INT_MAX);
-+ }
-+}
-+
-+#pragma GCC diagnostic push
-+#pragma GCC diagnostic ignored "-Wattribute-alias"
-+extern "C" bool _ZNSt9once_flag11_M_activateEv()
-+ __attribute__((alias ("_ZNSt18__once_flag_compat11_M_activateEv")));
-+extern "C" void _ZNSt9once_flag9_M_finishEb() noexcept
-+ __attribute__((alias ("_ZNSt18__once_flag_compat9_M_finishEb")));
-+#pragma GCC diagnostic pop
-+
-+_GLIBCXX_END_NAMESPACE_VERSION
-+} // namespace std
-+#endif // FUTEX
-+#endif // ONCE_FLAG_COMPAT && SHARED && ! INLINE_VERSION
-+
- namespace std _GLIBCXX_VISIBILITY(default)
- {
- _GLIBCXX_BEGIN_NAMESPACE_VERSION
diff --git a/gcc11-stringify-__VA_OPT__-2.patch b/gcc11-stringify-__VA_OPT__-2.patch
deleted file mode 100644
index 987f738..0000000
--- a/gcc11-stringify-__VA_OPT__-2.patch
+++ /dev/null
@@ -1,197 +0,0 @@
-libcpp: Fix up #__VA_OPT__ handling [PR103415]
-
-stringify_arg uses pfile->u_buff to create the string literal.
-Unfortunately, paste_tokens -> _cpp_lex_direct -> lex_number -> _cpp_unaligned_alloc
-can in some cases use pfile->u_buff too, which results in losing everything
-prepared for the string literal until the token pasting.
-
-The following patch fixes that by not calling paste_token during the
-construction of the string literal, but doing that before. All the tokens
-we are processing have been pushed into a token buffer using
-tokens_buff_add_token so it is fine if we paste some of them in that buffer
-(successful pasting creates a new token in that buffer), move following
-tokens if any to make it contiguous, pop (throw away) the extra tokens at
-the end and then do stringify_arg.
-
-Also, paste_tokens now copies over PREV_WHITE and PREV_FALLTHROUGH flags
-from the original lhs token to the replacement token. Copying that way
-the PREV_WHITE flag is needed for the #__VA_OPT__ handling and copying
-over PREV_FALLTHROUGH fixes the new Wimplicit-fallthrough-38.c test.
-
-2021-12-01 Jakub Jelinek
-
- PR preprocessor/103415
-libcpp/
- * macro.c (stringify_arg): Remove va_opt argument and va_opt handling.
- (paste_tokens): On successful paste or in PREV_WHITE and
- PREV_FALLTHROUGH flags from the *plhs token to the new token.
- (replace_args): Adjust stringify_arg callers. For #__VA_OPT__,
- perform token pasting in a separate loop before stringify_arg call.
-gcc/testsuite/
- * c-c++-common/cpp/va-opt-8.c: New test.
- * c-c++-common/Wimplicit-fallthrough-38.c: New test.
-
---- libcpp/macro.c.jj
-+++ libcpp/macro.c
-@@ -295,7 +295,7 @@ static cpp_context *next_context (cpp_reader *);
- static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
- static const cpp_token *new_string_token (cpp_reader *, uchar *, unsigned int);
- static const cpp_token *stringify_arg (cpp_reader *, const cpp_token **,
-- unsigned int, bool);
-+ unsigned int);
- static void paste_all_tokens (cpp_reader *, const cpp_token *);
- static bool paste_tokens (cpp_reader *, location_t,
- const cpp_token **, const cpp_token *);
-@@ -834,8 +834,7 @@ cpp_quote_string (uchar *dest, const uchar *src, unsigned int len)
- /* Convert a token sequence FIRST to FIRST+COUNT-1 to a single string token
- according to the rules of the ISO C #-operator. */
- static const cpp_token *
--stringify_arg (cpp_reader *pfile, const cpp_token **first, unsigned int count,
-- bool va_opt)
-+stringify_arg (cpp_reader *pfile, const cpp_token **first, unsigned int count)
- {
- unsigned char *dest;
- unsigned int i, escape_it, backslash_count = 0;
-@@ -852,24 +851,6 @@ stringify_arg (cpp_reader *pfile, const cpp_token **first, unsigned int count,
- {
- const cpp_token *token = first[i];
-
-- if (va_opt && (token->flags & PASTE_LEFT))
-- {
-- location_t virt_loc = pfile->invocation_location;
-- const cpp_token *rhs;
-- do
-- {
-- if (i == count)
-- abort ();
-- rhs = first[++i];
-- if (!paste_tokens (pfile, virt_loc, &token, rhs))
-- {
-- --i;
-- break;
-- }
-- }
-- while (rhs->flags & PASTE_LEFT);
-- }
--
- if (token->type == CPP_PADDING)
- {
- if (source == NULL
-@@ -1003,6 +984,7 @@ paste_tokens (cpp_reader *pfile, location_t location,
- return false;
- }
-
-+ lhs->flags |= (*plhs)->flags & (PREV_WHITE | PREV_FALLTHROUGH);
- *plhs = lhs;
- _cpp_pop_buffer (pfile);
- return true;
-@@ -1945,8 +1927,7 @@ replace_args (cpp_reader *pfile, cpp_hashnode *node, cpp_macro *macro,
- if (src->flags & STRINGIFY_ARG)
- {
- if (!arg->stringified)
-- arg->stringified = stringify_arg (pfile, arg->first, arg->count,
-- false);
-+ arg->stringified = stringify_arg (pfile, arg->first, arg->count);
- }
- else if ((src->flags & PASTE_LEFT)
- || (src != macro->exp.tokens && (src[-1].flags & PASTE_LEFT)))
-@@ -2066,11 +2047,46 @@ replace_args (cpp_reader *pfile, cpp_hashnode *node, cpp_macro *macro,
- {
- unsigned int count
- = start ? paste_flag - start : tokens_buff_count (buff);
-- const cpp_token *t
-- = stringify_arg (pfile,
-- start ? start + 1
-- : (const cpp_token **) (buff->base),
-- count, true);
-+ const cpp_token **first
-+ = start ? start + 1
-+ : (const cpp_token **) (buff->base);
-+ unsigned int i, j;
-+
-+ /* Paste any tokens that need to be pasted before calling
-+ stringify_arg, because stringify_arg uses pfile->u_buff
-+ which paste_tokens can use as well. */
-+ for (i = 0, j = 0; i < count; i++, j++)
-+ {
-+ const cpp_token *token = first[i];
-+
-+ if (token->flags & PASTE_LEFT)
-+ {
-+ location_t virt_loc = pfile->invocation_location;
-+ const cpp_token *rhs;
-+ do
-+ {
-+ if (i == count)
-+ abort ();
-+ rhs = first[++i];
-+ if (!paste_tokens (pfile, virt_loc, &token, rhs))
-+ {
-+ --i;
-+ break;
-+ }
-+ }
-+ while (rhs->flags & PASTE_LEFT);
-+ }
-+
-+ first[j] = token;
-+ }
-+ if (j != i)
-+ {
-+ while (i-- != j)
-+ tokens_buff_remove_last_token (buff);
-+ count = j;
-+ }
-+
-+ const cpp_token *t = stringify_arg (pfile, first, count);
- while (count--)
- tokens_buff_remove_last_token (buff);
- if (src->flags & PASTE_LEFT)
---- gcc/testsuite/c-c++-common/cpp/va-opt-8.c.jj
-+++ gcc/testsuite/c-c++-common/cpp/va-opt-8.c
-@@ -0,0 +1,18 @@
-+/* PR preprocessor/103415 */
-+/* { dg-do run } */
-+/* { dg-options "-std=gnu99" { target c } } */
-+/* { dg-options "-std=c++20" { target c++ } } */
-+
-+#define n(x, ...) = #__VA_OPT__(x##3)
-+#define o(x, ...) #__VA_OPT__(x##__VA_ARGS__##9)
-+const char *c n(1 2, 4);
-+const char *d = o(5 6, 7 8);
-+
-+int
-+main ()
-+{
-+ if (__builtin_strcmp (c, "1 23")
-+ || __builtin_strcmp (d, "5 67 89"))
-+ __builtin_abort ();
-+ return 0;
-+}
---- gcc/testsuite/c-c++-common/Wimplicit-fallthrough-38.c.jj
-+++ gcc/testsuite/c-c++-common/Wimplicit-fallthrough-38.c
-@@ -0,0 +1,24 @@
-+/* { dg-do compile } */
-+/* { dg-options "-Wimplicit-fallthrough=3" } */
-+
-+#define FOO \
-+int \
-+foo (int a) \
-+{ \
-+ switch (a) \
-+ { \
-+ case 1: \
-+ ++a; \
-+ /* FALLTHRU */ \
-+ case 2: \
-+ ++a; \
-+ /* FALLTHRU */ \
-+ ca##se 3: \
-+ ++a; \
-+ default: \
-+ break; \
-+ } \
-+ return a; \
-+}
-+
-+FOO
diff --git a/gcc11-stringify-__VA_OPT__.patch b/gcc11-stringify-__VA_OPT__.patch
deleted file mode 100644
index 3a2a71f..0000000
--- a/gcc11-stringify-__VA_OPT__.patch
+++ /dev/null
@@ -1,308 +0,0 @@
-c++: Add C++20 #__VA_OPT__ support
-
-The following patch implements C++20 # __VA_OPT__ (...) support.
-Testcases cover what I came up with myself and what LLVM has for #__VA_OPT__
-in its testsuite and the string literals are identical between the two
-compilers on the va-opt-5.c testcase.
-
-2021-08-17 Jakub Jelinek
-
-libcpp/
- * macro.c (vaopt_state): Add m_stringify member.
- (vaopt_state::vaopt_state): Initialize it.
- (vaopt_state::update): Overwrite it.
- (vaopt_state::stringify): New method.
- (stringify_arg): Replace arg argument with first, count arguments
- and add va_opt argument. Use first instead of arg->first and
- count instead of arg->count, for va_opt add paste_tokens handling.
- (paste_tokens): Fix up len calculation. Don't spell rhs twice,
- instead use %.*s to supply lhs and rhs spelling lengths. Don't call
- _cpp_backup_tokens here.
- (paste_all_tokens): Call it here instead.
- (replace_args): Adjust stringify_arg caller. For vaopt_state::END
- if stringify is true handle __VA_OPT__ stringification.
- (create_iso_definition): Handle # __VA_OPT__ similarly to # macro_arg.
-gcc/testsuite/
- * c-c++-common/cpp/va-opt-5.c: New test.
- * c-c++-common/cpp/va-opt-6.c: New test.
-
---- libcpp/macro.c
-+++ libcpp/macro.c
-@@ -118,6 +118,7 @@ class vaopt_state {
- m_arg (arg),
- m_variadic (is_variadic),
- m_last_was_paste (false),
-+ m_stringify (false),
- m_state (0),
- m_paste_location (0),
- m_location (0),
-@@ -145,6 +146,7 @@ class vaopt_state {
- }
- ++m_state;
- m_location = token->src_loc;
-+ m_stringify = (token->flags & STRINGIFY_ARG) != 0;
- return BEGIN;
- }
- else if (m_state == 1)
-@@ -234,6 +236,12 @@ class vaopt_state {
- return m_state == 0;
- }
-
-+ /* Return true for # __VA_OPT__. */
-+ bool stringify () const
-+ {
-+ return m_stringify;
-+ }
-+
- private:
-
- /* The cpp_reader. */
-@@ -247,6 +255,8 @@ class vaopt_state {
- /* If true, the previous token was ##. This is used to detect when
- a paste occurs at the end of the sequence. */
- bool m_last_was_paste;
-+ /* True for #__VA_OPT__. */
-+ bool m_stringify;
-
- /* The state variable:
- 0 means not parsing
-@@ -284,7 +294,8 @@ static _cpp_buff *collect_args (cpp_reader *, const cpp_hashnode *,
- static cpp_context *next_context (cpp_reader *);
- static const cpp_token *padding_token (cpp_reader *, const cpp_token *);
- static const cpp_token *new_string_token (cpp_reader *, uchar *, unsigned int);
--static const cpp_token *stringify_arg (cpp_reader *, macro_arg *);
-+static const cpp_token *stringify_arg (cpp_reader *, const cpp_token **,
-+ unsigned int, bool);
- static void paste_all_tokens (cpp_reader *, const cpp_token *);
- static bool paste_tokens (cpp_reader *, location_t,
- const cpp_token **, const cpp_token *);
-@@ -818,10 +829,11 @@ cpp_quote_string (uchar *dest, const uchar *src, unsigned int len)
- return dest;
- }
-
--/* Convert a token sequence ARG to a single string token according to
-- the rules of the ISO C #-operator. */
-+/* Convert a token sequence FIRST to FIRST+COUNT-1 to a single string token
-+ according to the rules of the ISO C #-operator. */
- static const cpp_token *
--stringify_arg (cpp_reader *pfile, macro_arg *arg)
-+stringify_arg (cpp_reader *pfile, const cpp_token **first, unsigned int count,
-+ bool va_opt)
- {
- unsigned char *dest;
- unsigned int i, escape_it, backslash_count = 0;
-@@ -834,9 +846,27 @@ stringify_arg (cpp_reader *pfile, macro_arg *arg)
- *dest++ = '"';
-
- /* Loop, reading in the argument's tokens. */
-- for (i = 0; i < arg->count; i++)
-+ for (i = 0; i < count; i++)
- {
-- const cpp_token *token = arg->first[i];
-+ const cpp_token *token = first[i];
-+
-+ if (va_opt && (token->flags & PASTE_LEFT))
-+ {
-+ location_t virt_loc = pfile->invocation_location;
-+ const cpp_token *rhs;
-+ do
-+ {
-+ if (i == count)
-+ abort ();
-+ rhs = first[++i];
-+ if (!paste_tokens (pfile, virt_loc, &token, rhs))
-+ {
-+ --i;
-+ break;
-+ }
-+ }
-+ while (rhs->flags & PASTE_LEFT);
-+ }
-
- if (token->type == CPP_PADDING)
- {
-@@ -923,7 +953,7 @@ paste_tokens (cpp_reader *pfile, location_t location,
- cpp_token *lhs;
- unsigned int len;
-
-- len = cpp_token_len (*plhs) + cpp_token_len (rhs) + 1;
-+ len = cpp_token_len (*plhs) + cpp_token_len (rhs) + 2;
- buf = (unsigned char *) alloca (len);
- end = lhsend = cpp_spell_token (pfile, *plhs, buf, true);
-
-@@ -949,8 +979,10 @@ paste_tokens (cpp_reader *pfile, location_t location,
- location_t saved_loc = lhs->src_loc;
-
- _cpp_pop_buffer (pfile);
-- _cpp_backup_tokens (pfile, 1);
-- *lhsend = '\0';
-+
-+ unsigned char *rhsstart = lhsend;
-+ if ((*plhs)->type == CPP_DIV && rhs->type != CPP_EQ)
-+ rhsstart++;
-
- /* We have to remove the PASTE_LEFT flag from the old lhs, but
- we want to keep the new location. */
-@@ -962,8 +994,10 @@ paste_tokens (cpp_reader *pfile, location_t location,
- /* Mandatory error for all apart from assembler. */
- if (CPP_OPTION (pfile, lang) != CLK_ASM)
- cpp_error_with_line (pfile, CPP_DL_ERROR, location, 0,
-- "pasting \"%s\" and \"%s\" does not give a valid preprocessing token",
-- buf, cpp_token_as_text (pfile, rhs));
-+ "pasting \"%.*s\" and \"%.*s\" does not give "
-+ "a valid preprocessing token",
-+ (int) (lhsend - buf), buf,
-+ (int) (end - rhsstart), rhsstart);
- return false;
- }
-
-@@ -1039,7 +1073,10 @@ paste_all_tokens (cpp_reader *pfile, const cpp_token *lhs)
- abort ();
- }
- if (!paste_tokens (pfile, virt_loc, &lhs, rhs))
-- break;
-+ {
-+ _cpp_backup_tokens (pfile, 1);
-+ break;
-+ }
- }
- while (rhs->flags & PASTE_LEFT);
-
-@@ -1906,7 +1943,8 @@ replace_args (cpp_reader *pfile, cpp_hashnode *node, cpp_macro *macro,
- if (src->flags & STRINGIFY_ARG)
- {
- if (!arg->stringified)
-- arg->stringified = stringify_arg (pfile, arg);
-+ arg->stringified = stringify_arg (pfile, arg->first, arg->count,
-+ false);
- }
- else if ((src->flags & PASTE_LEFT)
- || (src != macro->exp.tokens && (src[-1].flags & PASTE_LEFT)))
-@@ -2029,7 +2067,24 @@ replace_args (cpp_reader *pfile, cpp_hashnode *node, cpp_macro *macro,
- paste_flag = tokens_buff_last_token_ptr (buff);
- }
-
-- if (src->flags & PASTE_LEFT)
-+ if (vaopt_tracker.stringify ())
-+ {
-+ unsigned int count
-+ = start ? paste_flag - start : tokens_buff_count (buff);
-+ const cpp_token *t
-+ = stringify_arg (pfile,
-+ start ? start + 1
-+ : (const cpp_token **) (buff->base),
-+ count, true);
-+ while (count--)
-+ tokens_buff_remove_last_token (buff);
-+ if (src->flags & PASTE_LEFT)
-+ copy_paste_flag (pfile, &t, src);
-+ tokens_buff_add_token (buff, virt_locs,
-+ t, t->src_loc, t->src_loc,
-+ NULL, 0);
-+ }
-+ else if (src->flags & PASTE_LEFT)
- {
- /* With a non-empty __VA_OPT__ on the LHS of ##, the last
- token should be flagged PASTE_LEFT. */
-@@ -3585,7 +3640,10 @@ create_iso_definition (cpp_reader *pfile)
- function-like macros when lexing the subsequent token. */
- if (macro->count > 1 && token[-1].type == CPP_HASH && macro->fun_like)
- {
-- if (token->type == CPP_MACRO_ARG)
-+ if (token->type == CPP_MACRO_ARG
-+ || (macro->variadic
-+ && token->type == CPP_NAME
-+ && token->val.node.node == pfile->spec_nodes.n__VA_OPT__))
- {
- if (token->flags & PREV_WHITE)
- token->flags |= SP_PREV_WHITE;
---- gcc/testsuite/c-c++-common/cpp/va-opt-5.c
-+++ gcc/testsuite/c-c++-common/cpp/va-opt-5.c
-@@ -0,0 +1,67 @@
-+/* { dg-do run } */
-+/* { dg-options "-std=gnu99" { target c } } */
-+/* { dg-options "-std=c++20" { target c++ } } */
-+
-+#define lparen (
-+#define a0 fooa0
-+#define a1 fooa1 a0
-+#define a2 fooa2 a1
-+#define a3 fooa3 a2
-+#define a() b lparen )
-+#define b() c lparen )
-+#define c() d lparen )
-+#define g h
-+#define i(j) j
-+#define f(...) #__VA_OPT__(g i(0))
-+#define k(x,...) # __VA_OPT__(x) #x #__VA_OPT__(__VA_ARGS__)
-+#define l(x,...) #__VA_OPT__(a1 x)
-+#define m(x,...) "a()" #__VA_OPT__(a3 __VA_ARGS__ x ## __VA_ARGS__ ## x ## c a3) "a()"
-+#define n(x,...) = #__VA_OPT__(a3 __VA_ARGS__ x ## __VA_ARGS__ ## x ## c a3) #x #__VA_OPT__(a0 __VA_ARGS__ x ## __VA_ARGS__ ## x ## c a0) ;
-+#define o(x, ...) #__VA_OPT__(x##x x##x)
-+#define p(x, ...) #__VA_OPT__(_Pragma ("foobar"))
-+#define q(...) #__VA_OPT__(/* foo */x/* bar */)
-+const char *v1 = f();
-+const char *v2 = f(123);
-+const char *v3 = k(1);
-+const char *v4 = k(1, 2, 3 );
-+const char *v5 = l(a());
-+const char *v6 = l(a1 a(), 1);
-+const char *v7 = m();
-+const char *v8 = m(,);
-+const char *v9 = m(,a3);
-+const char *v10 = m(a3,a(),a0);
-+const char *v11 n()
-+const char *v12 n(,)
-+const char *v13 n(,a0)
-+const char *v14 n(a0, a(),a0)
-+const char *v15 = o(, 0);
-+const char *v16 = p(0);
-+const char *v17 = p(0, 1);
-+const char *v18 = q();
-+const char *v19 = q(1);
-+
-+int
-+main ()
-+{
-+ if (__builtin_strcmp (v1, "")
-+ || __builtin_strcmp (v2, "g i(0)")
-+ || __builtin_strcmp (v3, "1")
-+ || __builtin_strcmp (v4, "112, 3")
-+ || __builtin_strcmp (v5, "")
-+ || __builtin_strcmp (v6, "a1 fooa1 fooa0 b ( )")
-+ || __builtin_strcmp (v7, "a()a()")
-+ || __builtin_strcmp (v8, "a()a()")
-+ || __builtin_strcmp (v9, "a()a3 fooa3 fooa2 fooa1 fooa0 a3c a3a()")
-+ || __builtin_strcmp (v10, "a()a3 b ( ),fooa0 a3a(),a0a3c a3a()")
-+ || __builtin_strcmp (v11, "")
-+ || __builtin_strcmp (v12, "")
-+ || __builtin_strcmp (v13, "a3 fooa0 a0c a3a0 fooa0 a0c a0")
-+ || __builtin_strcmp (v14, "a3 b ( ),fooa0 a0a(),a0a0c a3a0a0 b ( ),fooa0 a0a(),a0a0c a0")
-+ || __builtin_strcmp (v15, "")
-+ || __builtin_strcmp (v16, "")
-+ || __builtin_strcmp (v17, "_Pragma (\"foobar\")")
-+ || __builtin_strcmp (v18, "")
-+ || __builtin_strcmp (v19, "x"))
-+ __builtin_abort ();
-+ return 0;
-+}
---- gcc/testsuite/c-c++-common/cpp/va-opt-6.c
-+++ gcc/testsuite/c-c++-common/cpp/va-opt-6.c
-@@ -0,0 +1,17 @@
-+/* { dg-do preprocess } */
-+/* { dg-options "-std=gnu99" { target c } } */
-+/* { dg-options "-std=c++20" { target c++ } } */
-+
-+#define a ""
-+#define b(...) a ## #__VA_OPT__(1) /* { dg-error "pasting \"a\" and \"\"\"\" does not give a valid preprocessing token" } */
-+#define c(...) a ## #__VA_OPT__(1) /* { dg-error "pasting \"a\" and \"\"1\"\" does not give a valid preprocessing token" } */
-+#define d(...) #__VA_OPT__(1) ## !
-+#define e(...) #__VA_OPT__(1) ## !
-+#define f(...) #__VA_OPT__(. ## !)
-+#define g(...) #__VA_OPT__(. ## !)
-+b()
-+c(1)
-+d( ) /* { dg-error "pasting \"\"\"\" and \"!\" does not give a valid preprocessing token" } */
-+e( 1 ) /* { dg-error "pasting \"\"1\"\" and \"!\" does not give a valid preprocessing token" } */
-+f()
-+g(0) /* { dg-error "pasting \".\" and \"!\" does not give a valid preprocessing token" } */
diff --git a/gcc12-Wno-format-security.patch b/gcc12-Wno-format-security.patch
new file mode 100644
index 0000000..3abf63b
--- /dev/null
+++ b/gcc12-Wno-format-security.patch
@@ -0,0 +1,58 @@
+2022-01-07 Jakub Jelinek
+
+ * Makefile.tpl (GOCFLAGS, GDCFLAGS): Filter out -Wformat-security.
+ * Makefile.in: Regenerated.
+
+2017-02-25 Jakub Jelinek
+
+ * configure.ac: When adding -Wno-format, also add -Wno-format-security.
+ * configure: Regenerated.
+
+--- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100
++++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100
+@@ -480,7 +480,7 @@ AC_ARG_ENABLE(build-format-warnings,
+ AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
+ [],[enable_build_format_warnings=yes])
+ AS_IF([test $enable_build_format_warnings = no],
+- [wf_opt=-Wno-format],[wf_opt=])
++ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
+ ACX_PROG_CXX_WARNING_OPTS(
+ m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
+ [-Wcast-qual -Wno-error=format-diag $wf_opt])),
+--- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100
++++ gcc/configure 2017-02-25 12:42:50.041946391 +0100
+@@ -6647,7 +6647,7 @@ else
+ fi
+
+ if test $enable_build_format_warnings = no; then :
+- wf_opt=-Wno-format
++ wf_opt="-Wno-format -Wno-format-security"
+ else
+ wf_opt=
+ fi
+--- Makefile.tpl.jj 2021-12-30 15:12:42.188164847 +0100
++++ Makefile.tpl 2022-01-07 12:06:12.115550714 +0100
+@@ -447,8 +447,8 @@ LDFLAGS = @LDFLAGS@
+ LIBCFLAGS = $(CFLAGS)
+ CXXFLAGS = @CXXFLAGS@
+ LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
+-GOCFLAGS = $(CFLAGS)
+-GDCFLAGS = $(CFLAGS)
++GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
++GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
+
+ # Pass additional PGO and LTO compiler options to the PGO build.
+ BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS)
+--- Makefile.in.jj 2021-12-30 15:12:42.188164847 +0100
++++ Makefile.in 2022-01-07 12:06:27.335334561 +0100
+@@ -444,8 +444,8 @@ LDFLAGS = @LDFLAGS@
+ LIBCFLAGS = $(CFLAGS)
+ CXXFLAGS = @CXXFLAGS@
+ LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
+-GOCFLAGS = $(CFLAGS)
+-GDCFLAGS = $(CFLAGS)
++GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
++GDCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
+
+ # Pass additional PGO and LTO compiler options to the PGO build.
+ BUILD_CFLAGS = $(PGO_BUILD_CFLAGS) $(PGO_BUILD_LTO_CFLAGS)
diff --git a/gcc11-d-shared-libphobos.patch b/gcc12-d-shared-libphobos.patch
similarity index 100%
rename from gcc11-d-shared-libphobos.patch
rename to gcc12-d-shared-libphobos.patch
diff --git a/gcc11-fortran-fdec-add-missing-indexes.patch b/gcc12-fortran-fdec-add-missing-indexes.patch
similarity index 100%
rename from gcc11-fortran-fdec-add-missing-indexes.patch
rename to gcc12-fortran-fdec-add-missing-indexes.patch
diff --git a/gcc11-fortran-fdec-duplicates.patch b/gcc12-fortran-fdec-duplicates.patch
similarity index 100%
rename from gcc11-fortran-fdec-duplicates.patch
rename to gcc12-fortran-fdec-duplicates.patch
diff --git a/gcc11-fortran-fdec-ichar.patch b/gcc12-fortran-fdec-ichar.patch
similarity index 100%
rename from gcc11-fortran-fdec-ichar.patch
rename to gcc12-fortran-fdec-ichar.patch
diff --git a/gcc11-fortran-fdec-non-integer-index.patch b/gcc12-fortran-fdec-non-integer-index.patch
similarity index 100%
rename from gcc11-fortran-fdec-non-integer-index.patch
rename to gcc12-fortran-fdec-non-integer-index.patch
diff --git a/gcc11-fortran-fdec-non-logical-if.patch b/gcc12-fortran-fdec-non-logical-if.patch
similarity index 100%
rename from gcc11-fortran-fdec-non-logical-if.patch
rename to gcc12-fortran-fdec-non-logical-if.patch
diff --git a/gcc11-fortran-fdec-old-init.patch b/gcc12-fortran-fdec-old-init.patch
similarity index 100%
rename from gcc11-fortran-fdec-old-init.patch
rename to gcc12-fortran-fdec-old-init.patch
diff --git a/gcc11-fortran-fdec-override-kind.patch b/gcc12-fortran-fdec-override-kind.patch
similarity index 100%
rename from gcc11-fortran-fdec-override-kind.patch
rename to gcc12-fortran-fdec-override-kind.patch
diff --git a/gcc11-fortran-fdec-promotion.patch b/gcc12-fortran-fdec-promotion.patch
similarity index 100%
rename from gcc11-fortran-fdec-promotion.patch
rename to gcc12-fortran-fdec-promotion.patch
diff --git a/gcc11-fortran-fdec-sequence.patch b/gcc12-fortran-fdec-sequence.patch
similarity index 100%
rename from gcc11-fortran-fdec-sequence.patch
rename to gcc12-fortran-fdec-sequence.patch
diff --git a/gcc11-fortran-flogical-as-integer.patch b/gcc12-fortran-flogical-as-integer.patch
similarity index 100%
rename from gcc11-fortran-flogical-as-integer.patch
rename to gcc12-fortran-flogical-as-integer.patch
diff --git a/gcc11-hack.patch b/gcc12-hack.patch
similarity index 100%
rename from gcc11-hack.patch
rename to gcc12-hack.patch
diff --git a/gcc11-isl-dl.patch b/gcc12-isl-dl.patch
similarity index 100%
rename from gcc11-isl-dl.patch
rename to gcc12-isl-dl.patch
diff --git a/gcc11-isl-dl2.patch b/gcc12-isl-dl2.patch
similarity index 90%
rename from gcc11-isl-dl2.patch
rename to gcc12-isl-dl2.patch
index ac14ed3..e16672c 100644
--- a/gcc11-isl-dl2.patch
+++ b/gcc12-isl-dl2.patch
@@ -7,16 +7,16 @@
--- gcc/toplev.c.jj 2008-12-09 23:59:10.000000000 +0100
+++ gcc/toplev.c 2009-01-27 14:33:52.000000000 +0100
-@@ -117,6 +117,8 @@ static void compile_file (void);
- /* True if we don't need a backend (e.g. preprocessing only). */
- static bool no_backend;
+@@ -113,6 +113,8 @@ static void finalize (bool);
+ static void crash_signal (int) ATTRIBUTE_NORETURN;
+ static void compile_file (void);
+const char **toplev_main_argv;
+
/* Decoded options, and number of such options. */
struct cl_decoded_option *save_decoded_options;
unsigned int save_decoded_options_count;
-@@ -2287,6 +2289,8 @@ toplev::main (int argc, char **argv)
+@@ -2239,6 +2241,8 @@ toplev::main (int argc, char **argv)
expandargv (&argc, &argv);
diff --git a/gcc11-libgomp-omp_h-multilib.patch b/gcc12-libgomp-omp_h-multilib.patch
similarity index 100%
rename from gcc11-libgomp-omp_h-multilib.patch
rename to gcc12-libgomp-omp_h-multilib.patch
diff --git a/gcc11-libstdc++-docs.patch b/gcc12-libstdc++-docs.patch
similarity index 96%
rename from gcc11-libstdc++-docs.patch
rename to gcc12-libstdc++-docs.patch
index 4b4f9f8..25aa718 100644
--- a/gcc11-libstdc++-docs.patch
+++ b/gcc12-libstdc++-docs.patch
@@ -4,7 +4,7 @@
FSF
-+ Release 11.2.1
++ Release 12.0.0
+
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
@@ -17,7 +17,7 @@
- The API documentation, rendered into HTML, can be viewed online
+ The API documentation, rendered into HTML, can be viewed locally
-+ for the 11.2.1 release,
++ for the 12.0.0 release,
+ online
for each GCC release
and
diff --git a/gcc11-libtool-no-rpath.patch b/gcc12-libtool-no-rpath.patch
similarity index 100%
rename from gcc11-libtool-no-rpath.patch
rename to gcc12-libtool-no-rpath.patch
diff --git a/gcc11-no-add-needed.patch b/gcc12-no-add-needed.patch
similarity index 100%
rename from gcc11-no-add-needed.patch
rename to gcc12-no-add-needed.patch
diff --git a/gcc11-rh1574936.patch b/gcc12-rh1574936.patch
similarity index 100%
rename from gcc11-rh1574936.patch
rename to gcc12-rh1574936.patch
diff --git a/gcc11-sparc-config-detection.patch b/gcc12-sparc-config-detection.patch
similarity index 100%
rename from gcc11-sparc-config-detection.patch
rename to gcc12-sparc-config-detection.patch
diff --git a/sources b/sources
index a7e012b..102dae1 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-11.2.1-20211203.tar.xz) = 3cf64d3af541b9e80a2d5dd95a1257afefda554cfa16b757a7f861701e3da2d6917dbb1f4cd74301ffaf45e92c441642b8c589a10698a9103a216620f0849626
+SHA512 (gcc-12.0.0-20220108.tar.xz) = 4248211feab3970d24b0862ad61f8c089ae21311c2b56b2ac0a298cf9126b2255a4f8ba44677683bb5862e34e34d433e3c6a20747b55e242c57981fafc9e9641
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 644b209..4592048 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.2.1-$d/ $1 | xz -9e > gcc-11.2.1-$d.tar.xz
+git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-12.0.0-$d/ $1 | xz -9e > gcc-12.0.0-$d.tar.xz
rm -rf gcc-dir.tmp
From b84a98262a42f80d20f9c45e6a06409a7211cc5c Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Wed, 12 Jan 2022 19:22:01 +0100
Subject: [PATCH 002/215] 12.0.0-0.4
---
.gitignore | 1 +
gcc.spec | 23 ++++++++++++++++++++---
sources | 2 +-
3 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
index 0cb9ebd..50a607b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -55,3 +55,4 @@
/gcc-11.2.1-20211019.tar.xz
/gcc-11.2.1-20211203.tar.xz
/gcc-12.0.0-20220108.tar.xz
+/gcc-12.0.0-20220112.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 6fe59ed..36d048b 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20220108
-%global gitrev 6bd6f878235efd1d0787892e7e2f73c5edf514cc
+%global DATE 20220112
+%global gitrev 02bedaf9591e39142014a459343337348fee575a
%global gcc_version 12.0.0
%global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to
@@ -119,7 +119,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.3%{?dist}
+Release: %{gcc_release}.4%{?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
@@ -3145,5 +3145,22 @@ end
%endif
%changelog
+* Wed Jan 12 2022 Jakub Jelinek 12.0.0-0.4
+- update from trunk
+ - PRs ada/79724, analyzer/102692, analyzer/103940, c++/89074, c++/103480,
+ c++/100588, c++/101597, c++/103783, c++/103831, c++/103879,
+ c++/103912, c++/103946, c/101537, c/103881, fortran/82207,
+ fortran/101762, fortran/103366, fortran/103777, fortran/103789,
+ libstdc++/77760, libstdc++/100017, libstdc++/103726, libstdc++/103866,
+ libstdc++/103891, libstdc++/103955, middle-end/70090,
+ middle-end/101530, rtl-optimization/98782, rtl-optimization/103974,
+ target/53652, target/102024, target/102239, target/103465,
+ target/103804, target/103861, testsuite/102935, testsuite/103820,
+ tree-optimization/76174, tree-optimization/83541,
+ tree-optimization/100359, tree-optimization/103551,
+ tree-optimization/103821, tree-optimization/103948,
+ tree-optimization/103961, tree-optimization/103971,
+ tree-optimization/103977, tree-optimization/103990
+
* Sat Jan 8 2022 Jakub Jelinek 12.0.0-0.3
- new package
diff --git a/sources b/sources
index 102dae1..9e1447f 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-12.0.0-20220108.tar.xz) = 4248211feab3970d24b0862ad61f8c089ae21311c2b56b2ac0a298cf9126b2255a4f8ba44677683bb5862e34e34d433e3c6a20747b55e242c57981fafc9e9641
+SHA512 (gcc-12.0.0-20220112.tar.xz) = 255a735b718c1d2e0fff6679a8dbcf4548c50a6cd018450bdb5cfb8d66d9e0a8ad0f000acbd711a04d218771c4603338f154864049d165c0c53f5c5c3f05c8aa
SHA512 (isl-0.18.tar.bz2) = 85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) = 002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) = f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
From 804d4ab44beabf6bcb181a640b64f940184e3876 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Sat, 15 Jan 2022 00:15:31 +0100
Subject: [PATCH 003/215] 12.0.0-0.5
---
.gitignore | 1 +
gcc.spec | 21 ++++++++++++++++++---
sources | 2 +-
3 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
index 50a607b..d7b450a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,3 +56,4 @@
/gcc-11.2.1-20211203.tar.xz
/gcc-12.0.0-20220108.tar.xz
/gcc-12.0.0-20220112.tar.xz
+/gcc-12.0.0-20220115.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 36d048b..b08c733 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20220112
-%global gitrev 02bedaf9591e39142014a459343337348fee575a
+%global DATE 20220115
+%global gitrev d8c9e50646a688fa39fd228289164868692b3474
%global gcc_version 12.0.0
%global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to
@@ -119,7 +119,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.4%{?dist}
+Release: %{gcc_release}.5%{?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
@@ -2297,6 +2297,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/nmmintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/immintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86gprintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/rs6000-vecdefines.h
%endif
%ifarch %{arm}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/unwind-arm-common.h
@@ -3145,6 +3146,20 @@ end
%endif
%changelog
+* Sat Jan 15 2022 Jakub Jelinek 12.0.0-0.5
+- update from trunk
+ - PRs ada/104027, analyzer/104029, c++/70417, c++/103705, c++/103991,
+ c/104002, fortran/67804, fortran/99256, fortran/103782,
+ libfortran/104006, libstdc++/91260, libstdc++/91383, libstdc++/95065,
+ libstdc++/103992, middle-end/100280, middle-end/101475,
+ middle-end/104026, target/94790, target/98737, target/100637,
+ target/103935, target/103941, target/104001, target/104003,
+ target/104014, tree-optimization/83072, tree-optimization/83073,
+ tree-optimization/96707, tree-optimization/97909,
+ tree-optimization/102192, tree-optimization/103989,
+ tree-optimization/104009, tree-optimization/104015
+- include rs6000-vecdefines.h on ppc* (#2040825)
+
* Wed Jan 12 2022 Jakub Jelinek 12.0.0-0.4
- update from trunk
- PRs ada/79724, analyzer/102692, analyzer/103940, c++/89074, c++/103480,
diff --git a/sources b/sources
index 9e1447f..62293b2 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-12.0.0-20220112.tar.xz) = 255a735b718c1d2e0fff6679a8dbcf4548c50a6cd018450bdb5cfb8d66d9e0a8ad0f000acbd711a04d218771c4603338f154864049d165c0c53f5c5c3f05c8aa
+SHA512 (gcc-12.0.0-20220115.tar.xz) = 27eb968a3dc3387ef381c8b58a874eec2db6c57cf71ca9c6492d9078776b9d5d29e2d4ccd643568e6e4967ec7a6b531690d51d9355e2ef66bb2978dc08b8005f
SHA512 (isl-0.18.tar.bz2) = 85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) = 002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) = f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
From dca274fd43c5b243531f8cd5b480f7ddeee773d6 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Sat, 15 Jan 2022 00:19:21 +0100
Subject: [PATCH 004/215] 12.0.0-0.5.1
---
gcc.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gcc.spec b/gcc.spec
index b08c733..598eb4d 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}.5%{?dist}
+Release: %{gcc_release}.5.1%{?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
@@ -993,6 +993,9 @@ CONFIGURE_OPTS="\
%ifarch sparc sparcv9 sparc64 ppc ppc64 ppc64le ppc64p7 s390 s390x alpha
--with-long-double-128 \
%endif
+%ifarch ppc64le
+ --with-long-double-format=ieee \
+%endif
%ifarch sparc
--disable-linux-futex \
%endif
@@ -3146,6 +3149,9 @@ end
%endif
%changelog
+* Sat Jan 15 2022 Jakub Jelinek 12.0.0-0.5.1
+- default to -mabi=ieeelongdouble on ppc64le
+
* Sat Jan 15 2022 Jakub Jelinek 12.0.0-0.5
- update from trunk
- PRs ada/104027, analyzer/104029, c++/70417, c++/103705, c++/103991,
From 595f09c493ae429b7e84bc6740c121fe3853ba36 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 18 Jan 2022 14:22:46 +0100
Subject: [PATCH 005/215] 12.0.1-0.1
---
.gitignore | 1 +
gcc.spec | 22 +++++-----
gcc12-fortran-fdec-add-missing-indexes.patch | 16 ++++----
gcc12-fortran-fdec-duplicates.patch | 16 ++++----
gcc12-fortran-fdec-ichar.patch | 16 ++++----
gcc12-fortran-fdec-non-integer-index.patch | 16 ++++----
gcc12-fortran-fdec-non-logical-if.patch | 16 ++++----
gcc12-fortran-fdec-old-init.patch | 16 ++++----
gcc12-fortran-fdec-override-kind.patch | 16 ++++----
gcc12-fortran-fdec-promotion.patch | 40 +++++++++----------
gcc12-fortran-fdec-sequence.patch | 16 ++++----
gcc12-fortran-flogical-as-integer.patch | 8 ++--
gcc12-hack.patch | 8 ++--
gcc12-isl-dl.patch | 8 ++--
gcc12-isl-dl2.patch | 12 +++---
gcc12-libstdc++-docs.patch | 4 +-
gcc12-pr104025.patch | 42 ++++++++++++++++++++
sources | 2 +-
update-gcc.sh | 2 +-
19 files changed, 162 insertions(+), 115 deletions(-)
create mode 100644 gcc12-pr104025.patch
diff --git a/.gitignore b/.gitignore
index d7b450a..21dcf61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,3 +57,4 @@
/gcc-12.0.0-20220108.tar.xz
/gcc-12.0.0-20220112.tar.xz
/gcc-12.0.0-20220115.tar.xz
+/gcc-12.0.1-20220118.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 598eb4d..29ddb2f 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,6 +1,6 @@
-%global DATE 20220115
-%global gitrev d8c9e50646a688fa39fd228289164868692b3474
-%global gcc_version 12.0.0
+%global DATE 20220118
+%global gitrev 880787aef7a985a80f88a14f830fb554a33b1a87
+%global gcc_version 12.0.1
%global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
@@ -119,7 +119,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.5.1%{?dist}
+Release: %{gcc_release}.1%{?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
@@ -269,6 +269,7 @@ Patch8: gcc12-no-add-needed.patch
Patch9: gcc12-Wno-format-security.patch
Patch10: gcc12-rh1574936.patch
Patch11: gcc12-d-shared-libphobos.patch
+Patch12: gcc12-pr104025.patch
Patch100: gcc12-fortran-fdec-duplicates.patch
Patch101: gcc12-fortran-flogical-as-integer.patch
@@ -790,6 +791,7 @@ to NVidia PTX capable devices if available.
%patch10 -p0 -b .rh1574936~
%endif
%patch11 -p0 -b .d-shared-libphobos~
+%patch12 -p0 -b .pr104025~
%if 0%{?rhel} >= 9
%patch100 -p1 -b .fortran-fdec-duplicates~
@@ -993,9 +995,6 @@ CONFIGURE_OPTS="\
%ifarch sparc sparcv9 sparc64 ppc ppc64 ppc64le ppc64p7 s390 s390x alpha
--with-long-double-128 \
%endif
-%ifarch ppc64le
- --with-long-double-format=ieee \
-%endif
%ifarch sparc
--disable-linux-futex \
%endif
@@ -3149,8 +3148,13 @@ end
%endif
%changelog
-* Sat Jan 15 2022 Jakub Jelinek 12.0.0-0.5.1
-- default to -mabi=ieeelongdouble on ppc64le
+* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.1
+- update from trunk
+ - PRs c++/104031, c/63272, fortran/83079, fortran/87711, fortran/97896,
+ libstdc++/103650, libstdc++/104080, middle-end/101292, target/103124,
+ target/103973, target/104005, testsuite/104035, testsuite/104037,
+ tree-optimization/80532, tree-optimization/101941,
+ tree-optimization/104064
* Sat Jan 15 2022 Jakub Jelinek 12.0.0-0.5
- update from trunk
diff --git a/gcc12-fortran-fdec-add-missing-indexes.patch b/gcc12-fortran-fdec-add-missing-indexes.patch
index d707b94..529868f 100644
--- a/gcc12-fortran-fdec-add-missing-indexes.patch
+++ b/gcc12-fortran-fdec-add-missing-indexes.patch
@@ -6,8 +6,8 @@ Subject: [PATCH 10/10] Fill in missing array dimensions using the lower bound
Use -fdec-add-missing-indexes to enable feature. Also enabled by fdec.
---
gcc/fortran/lang.opt | 8 ++++++++
- gcc/fortran/options.c | 1 +
- gcc/fortran/resolve.c | 24 ++++++++++++++++++++++++
+ gcc/fortran/options.cc | 1 +
+ gcc/fortran/resolve.cc | 24 ++++++++++++++++++++++++
gcc/testsuite/gfortran.dg/array_6.f90 | 23 +++++++++++++++++++++++
gcc/testsuite/gfortran.dg/array_7.f90 | 23 +++++++++++++++++++++++
gcc/testsuite/gfortran.dg/array_8.f90 | 23 +++++++++++++++++++++++
@@ -42,10 +42,10 @@ index 019c798cf09..f27de88ea3f 100644
fdec-blank-format-item
Fortran Var(flag_dec_blank_format_item)
Enable the use of blank format items in format strings.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index 050f56fdc25..c3b2822685d 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -84,6 +84,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_non_logical_if, value, value);
SET_BITFLAG (flag_dec_promotion, value, value);
@@ -54,10 +54,10 @@ index 050f56fdc25..c3b2822685d 100644
}
/* Finalize DEC flags. */
-diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
+diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc
index fe7d0cc5944..0efeedab46e 100644
---- a/gcc/fortran/resolve.c
-+++ b/gcc/fortran/resolve.c
+--- a/gcc/fortran/resolve.cc
++++ b/gcc/fortran/resolve.cc
@@ -4806,6 +4806,30 @@ compare_spec_to_ref (gfc_array_ref *ar)
if (ar->type == AR_FULL)
return true;
diff --git a/gcc12-fortran-fdec-duplicates.patch b/gcc12-fortran-fdec-duplicates.patch
index b5d1104..5298baa 100644
--- a/gcc12-fortran-fdec-duplicates.patch
+++ b/gcc12-fortran-fdec-duplicates.patch
@@ -9,8 +9,8 @@ Some fixes by Jim MacArthur
Addition of -fdec-duplicates by Mark Eggleston
---
gcc/fortran/lang.opt | 4 ++++
- gcc/fortran/options.c | 1 +
- gcc/fortran/symbol.c | 21 +++++++++++++++++--
+ gcc/fortran/options.cc | 1 +
+ gcc/fortran/symbol.cc | 21 +++++++++++++++++--
.../gfortran.dg/duplicate_type_4.f90 | 13 ++++++++++++
.../gfortran.dg/duplicate_type_5.f90 | 13 ++++++++++++
.../gfortran.dg/duplicate_type_6.f90 | 13 ++++++++++++
@@ -40,10 +40,10 @@ index 2b1977c523b..52bd522051e 100644
fdec-include
Fortran Var(flag_dec_include)
Enable legacy parsing of INCLUDE as statement.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index 3a0b98bf1ec..f19ba87f8a0 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -77,6 +77,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_format_defaults, value, value);
SET_BITFLAG (flag_dec_blank_format_item, value, value);
@@ -52,10 +52,10 @@ index 3a0b98bf1ec..f19ba87f8a0 100644
}
/* Finalize DEC flags. */
-diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c
+diff --git a/gcc/fortran/symbol.cc b/gcc/fortran/symbol.cc
index 3b988d1be22..9843175cc2a 100644
---- a/gcc/fortran/symbol.c
-+++ b/gcc/fortran/symbol.c
+--- a/gcc/fortran/symbol.cc
++++ b/gcc/fortran/symbol.cc
@@ -1995,6 +1995,8 @@ gfc_add_type (gfc_symbol *sym, gfc_typespec *ts, locus *where)
if (sym->attr.result && type == BT_UNKNOWN && sym->ns->proc_name)
type = sym->ns->proc_name->ts.type;
diff --git a/gcc12-fortran-fdec-ichar.patch b/gcc12-fortran-fdec-ichar.patch
index e7b0522..900b054 100644
--- a/gcc12-fortran-fdec-ichar.patch
+++ b/gcc12-fortran-fdec-ichar.patch
@@ -5,16 +5,16 @@ Subject: [PATCH 03/10] Allow more than one character as argument to ICHAR
Use -fdec to enable.
---
- gcc/fortran/check.c | 2 +-
- gcc/fortran/simplify.c | 4 ++--
+ gcc/fortran/check.cc | 2 +-
+ gcc/fortran/simplify.cc | 4 ++--
.../gfortran.dg/dec_ichar_with_string_1.f | 21 +++++++++++++++++++
3 files changed, 24 insertions(+), 3 deletions(-)
create mode 100644 gcc/testsuite/gfortran.dg/dec_ichar_with_string_1.f
-diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
+diff --git a/gcc/fortran/check.cc b/gcc/fortran/check.cc
index 82db8e4e1b2..623c1cc470e 100644
---- a/gcc/fortran/check.c
-+++ b/gcc/fortran/check.c
+--- a/gcc/fortran/check.cc
++++ b/gcc/fortran/check.cc
@@ -3157,7 +3157,7 @@ gfc_check_ichar_iachar (gfc_expr *c, gfc_expr *kind)
else
return true;
@@ -24,10 +24,10 @@ index 82db8e4e1b2..623c1cc470e 100644
{
gfc_error ("Argument of %s at %L must be of length one",
gfc_current_intrinsic, &c->where);
-diff --git a/gcc/fortran/simplify.c b/gcc/fortran/simplify.c
+diff --git a/gcc/fortran/simplify.cc b/gcc/fortran/simplify.cc
index 23317a2e2d9..9900572424f 100644
---- a/gcc/fortran/simplify.c
-+++ b/gcc/fortran/simplify.c
+--- a/gcc/fortran/simplify.cc
++++ b/gcc/fortran/simplify.cc
@@ -3261,7 +3261,7 @@ gfc_simplify_iachar (gfc_expr *e, gfc_expr *kind)
if (e->expr_type != EXPR_CONSTANT)
return NULL;
diff --git a/gcc12-fortran-fdec-non-integer-index.patch b/gcc12-fortran-fdec-non-integer-index.patch
index 074df3b..2c168fe 100644
--- a/gcc12-fortran-fdec-non-integer-index.patch
+++ b/gcc12-fortran-fdec-non-integer-index.patch
@@ -6,8 +6,8 @@ Subject: [PATCH 04/10] Allow non-integer substring indexes
Use -fdec-non-integer-index compiler flag to enable. Also enabled by -fdec.
---
gcc/fortran/lang.opt | 4 ++++
- gcc/fortran/options.c | 1 +
- gcc/fortran/resolve.c | 20 +++++++++++++++++++
+ gcc/fortran/options.cc | 1 +
+ gcc/fortran/resolve.cc | 20 +++++++++++++++++++
.../dec_not_integer_substring_indexes_1.f | 18 +++++++++++++++++
.../dec_not_integer_substring_indexes_2.f | 18 +++++++++++++++++
.../dec_not_integer_substring_indexes_3.f | 18 +++++++++++++++++
@@ -31,10 +31,10 @@ index c4da248f07c..d527c106bd6 100644
fdec-structure
Fortran Var(flag_dec_structure)
Enable support for DEC STRUCTURE/RECORD.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index f19ba87f8a0..9a042f64881 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -78,6 +78,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_blank_format_item, value, value);
SET_BITFLAG (flag_dec_char_conversions, value, value);
@@ -43,10 +43,10 @@ index f19ba87f8a0..9a042f64881 100644
}
/* Finalize DEC flags. */
-diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
+diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc
index 4b90cb59902..bc0df0fdb99 100644
---- a/gcc/fortran/resolve.c
-+++ b/gcc/fortran/resolve.c
+--- a/gcc/fortran/resolve.cc
++++ b/gcc/fortran/resolve.cc
@@ -5131,6 +5131,16 @@ gfc_resolve_substring (gfc_ref *ref, bool *equal_length)
if (!gfc_resolve_expr (ref->u.ss.start))
return false;
diff --git a/gcc12-fortran-fdec-non-logical-if.patch b/gcc12-fortran-fdec-non-logical-if.patch
index 0133d23..24a8fa4 100644
--- a/gcc12-fortran-fdec-non-logical-if.patch
+++ b/gcc12-fortran-fdec-non-logical-if.patch
@@ -6,8 +6,8 @@ Subject: [PATCH 07/10] Allow non-logical expressions in IF statements
Use -fdec-non-logical-if to enable feature. Also enabled using -fdec.
---
gcc/fortran/lang.opt | 4 ++
- gcc/fortran/options.c | 1 +
- gcc/fortran/resolve.c | 60 ++++++++++++++++---
+ gcc/fortran/options.cc | 1 +
+ gcc/fortran/resolve.cc | 60 ++++++++++++++++---
...gical_expressions_if_statements_blocks_1.f | 25 ++++++++
...gical_expressions_if_statements_blocks_2.f | 25 ++++++++
...gical_expressions_if_statements_blocks_3.f | 25 ++++++++
@@ -37,10 +37,10 @@ index 4a269ebb22d..d886c2f33ed 100644
fdec-old-init
Fortran Var(flag_dec_old_init)
Enable support for old style initializers in derived types.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index edbab483b36..a946c86790a 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -81,6 +81,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_non_integer_index, value, value);
SET_BITFLAG (flag_dec_old_init, value, value);
@@ -49,10 +49,10 @@ index edbab483b36..a946c86790a 100644
}
/* Finalize DEC flags. */
-diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
+diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc
index bc0df0fdb99..07dd039f3bf 100644
---- a/gcc/fortran/resolve.c
-+++ b/gcc/fortran/resolve.c
+--- a/gcc/fortran/resolve.cc
++++ b/gcc/fortran/resolve.cc
@@ -10789,10 +10789,31 @@ gfc_resolve_blocks (gfc_code *b, gfc_namespace *ns)
switch (b->op)
{
diff --git a/gcc12-fortran-fdec-old-init.patch b/gcc12-fortran-fdec-old-init.patch
index 8554f2e..d5661c8 100644
--- a/gcc12-fortran-fdec-old-init.patch
+++ b/gcc12-fortran-fdec-old-init.patch
@@ -9,9 +9,9 @@ Only single value expressions are allowed at the moment.
Use -fdec-old-init to enable. Also enabled by -fdec.
---
- gcc/fortran/decl.c | 27 +++++++++++++++----
+ gcc/fortran/decl.cc | 27 +++++++++++++++----
gcc/fortran/lang.opt | 4 +++
- gcc/fortran/options.c | 1 +
+ gcc/fortran/options.cc | 1 +
...ec_derived_types_initialised_old_style_1.f | 25 +++++++++++++++++
...ec_derived_types_initialised_old_style_2.f | 25 +++++++++++++++++
...ec_derived_types_initialised_old_style_3.f | 26 ++++++++++++++++++
@@ -20,10 +20,10 @@ Use -fdec-old-init to enable. Also enabled by -fdec.
create mode 100644 gcc/testsuite/gfortran.dg/dec_derived_types_initialised_old_style_2.f
create mode 100644 gcc/testsuite/gfortran.dg/dec_derived_types_initialised_old_style_3.f
-diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
+diff --git a/gcc/fortran/decl.cc b/gcc/fortran/decl.cc
index 723915822f3..5c8c1b7981b 100644
---- a/gcc/fortran/decl.c
-+++ b/gcc/fortran/decl.c
+--- a/gcc/fortran/decl.cc
++++ b/gcc/fortran/decl.cc
@@ -2827,12 +2827,29 @@ variable_decl (int elem)
but not components of derived types. */
else if (gfc_current_state () == COMP_DERIVED)
@@ -74,10 +74,10 @@ index d527c106bd6..25cc948699b 100644
fdec-structure
Fortran Var(flag_dec_structure)
Enable support for DEC STRUCTURE/RECORD.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index 9a042f64881..d6bd36c3a8a 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -79,6 +79,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_char_conversions, value, value);
SET_BITFLAG (flag_dec_duplicates, value, value);
diff --git a/gcc12-fortran-fdec-override-kind.patch b/gcc12-fortran-fdec-override-kind.patch
index e1c7b83..4df6ead 100644
--- a/gcc12-fortran-fdec-override-kind.patch
+++ b/gcc12-fortran-fdec-override-kind.patch
@@ -35,9 +35,9 @@ caused an internal compiler error.
Contributed by Mark Eggleston
---
- gcc/fortran/decl.c | 156 ++++++++++++++----
+ gcc/fortran/decl.cc | 156 ++++++++++++++----
gcc/fortran/lang.opt | 4 +
- gcc/fortran/options.c | 1 +
+ gcc/fortran/options.cc | 1 +
.../dec_mixed_char_array_declaration_1.f | 13 ++
.../dec_mixed_char_array_declaration_2.f | 13 ++
.../dec_mixed_char_array_declaration_3.f | 13 ++
@@ -62,10 +62,10 @@ Contributed by Mark Eggleston
create mode 100644 gcc/testsuite/gfortran.dg/dec_spec_in_variable_7.f
create mode 100644 gcc/testsuite/gfortran.dg/dec_spec_in_variable_8.f
-diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
+diff --git a/gcc/fortran/decl.cc b/gcc/fortran/decl.cc
index 5c8c1b7981b..f7dc9d8263d 100644
---- a/gcc/fortran/decl.c
-+++ b/gcc/fortran/decl.c
+--- a/gcc/fortran/decl.cc
++++ b/gcc/fortran/decl.cc
@@ -1213,6 +1213,54 @@ syntax:
return MATCH_ERROR;
}
@@ -292,10 +292,10 @@ index 25cc948699b..4a269ebb22d 100644
fdec-old-init
Fortran Var(flag_dec_old_init)
Enable support for old style initializers in derived types.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index d6bd36c3a8a..edbab483b36 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -80,6 +80,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_duplicates, value, value);
SET_BITFLAG (flag_dec_non_integer_index, value, value);
diff --git a/gcc12-fortran-fdec-promotion.patch b/gcc12-fortran-fdec-promotion.patch
index 36e0ff0..a20d151 100644
--- a/gcc12-fortran-fdec-promotion.patch
+++ b/gcc12-fortran-fdec-promotion.patch
@@ -11,12 +11,12 @@ Jeff Law
Re-worked by Mark Eggleston
---
- gcc/fortran/check.c | 71 +++++-
- gcc/fortran/intrinsic.c | 5 +
- gcc/fortran/iresolve.c | 91 ++++---
+ gcc/fortran/check.cc | 71 +++++-
+ gcc/fortran/intrinsic.cc | 5 +
+ gcc/fortran/iresolve.cc | 91 ++++---
gcc/fortran/lang.opt | 4 +
- gcc/fortran/options.c | 1 +
- gcc/fortran/simplify.c | 240 ++++++++++++++----
+ gcc/fortran/options.cc | 1 +
+ gcc/fortran/simplify.cc | 240 ++++++++++++++----
...trinsic_int_real_array_const_promotion_1.f | 18 ++
...trinsic_int_real_array_const_promotion_2.f | 18 ++
...trinsic_int_real_array_const_promotion_3.f | 18 ++
@@ -51,10 +51,10 @@ Re-worked by Mark Eggleston
create mode 100644 gcc/testsuite/gfortran.dg/dec_kind_promotion-2.f
create mode 100644 gcc/testsuite/gfortran.dg/dec_kind_promotion-3.f
-diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c
+diff --git a/gcc/fortran/check.cc b/gcc/fortran/check.cc
index 623c1cc470e..e20a834a860 100644
---- a/gcc/fortran/check.c
-+++ b/gcc/fortran/check.c
+--- a/gcc/fortran/check.cc
++++ b/gcc/fortran/check.cc
@@ -1396,12 +1396,40 @@ gfc_check_allocated (gfc_expr *array)
}
@@ -160,10 +160,10 @@ index 623c1cc470e..e20a834a860 100644
if (!int_or_real_check (a, 0))
return false;
-diff --git a/gcc/fortran/intrinsic.c b/gcc/fortran/intrinsic.c
+diff --git a/gcc/fortran/intrinsic.cc b/gcc/fortran/intrinsic.cc
index e68eff8bdbb..81b3a24c2be 100644
---- a/gcc/fortran/intrinsic.c
-+++ b/gcc/fortran/intrinsic.c
+--- a/gcc/fortran/intrinsic.cc
++++ b/gcc/fortran/intrinsic.cc
@@ -4467,6 +4467,11 @@ check_arglist (gfc_actual_arglist **ap, gfc_intrinsic_sym *sym,
if (ts.kind == 0)
ts.kind = actual->expr->ts.kind;
@@ -176,10 +176,10 @@ index e68eff8bdbb..81b3a24c2be 100644
if (!gfc_compare_types (&ts, &actual->expr->ts))
{
if (error_flag)
-diff --git a/gcc/fortran/iresolve.c b/gcc/fortran/iresolve.c
+diff --git a/gcc/fortran/iresolve.cc b/gcc/fortran/iresolve.cc
index e17fe45f080..b9cdaff2499 100644
---- a/gcc/fortran/iresolve.c
-+++ b/gcc/fortran/iresolve.c
+--- a/gcc/fortran/iresolve.cc
++++ b/gcc/fortran/iresolve.cc
@@ -817,19 +817,22 @@ gfc_resolve_dble (gfc_expr *f, gfc_expr *a)
void
gfc_resolve_dim (gfc_expr *f, gfc_expr *a, gfc_expr *p)
@@ -340,10 +340,10 @@ index d886c2f33ed..4ca2f93f2df 100644
fdec-structure
Fortran Var(flag_dec_structure)
Enable support for DEC STRUCTURE/RECORD.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index a946c86790a..15079c7e95a 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -82,6 +82,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_old_init, value, value);
SET_BITFLAG (flag_dec_override_kind, value, value);
@@ -352,10 +352,10 @@ index a946c86790a..15079c7e95a 100644
}
/* Finalize DEC flags. */
-diff --git a/gcc/fortran/simplify.c b/gcc/fortran/simplify.c
+diff --git a/gcc/fortran/simplify.cc b/gcc/fortran/simplify.cc
index 9900572424f..3419e06fec2 100644
---- a/gcc/fortran/simplify.c
-+++ b/gcc/fortran/simplify.c
+--- a/gcc/fortran/simplify.cc
++++ b/gcc/fortran/simplify.cc
@@ -2333,39 +2333,79 @@ gfc_simplify_digits (gfc_expr *x)
}
diff --git a/gcc12-fortran-fdec-sequence.patch b/gcc12-fortran-fdec-sequence.patch
index 7b9ce71..d79348e 100644
--- a/gcc12-fortran-fdec-sequence.patch
+++ b/gcc12-fortran-fdec-sequence.patch
@@ -7,8 +7,8 @@ Subject: [PATCH 09/10] Add the SEQUENCE attribute by default if it's not
Use -fdec-sequence to enable this feature. Also enabled by -fdec.
---
gcc/fortran/lang.opt | 4 ++
- gcc/fortran/options.c | 1 +
- gcc/fortran/resolve.c | 13 ++++-
+ gcc/fortran/options.cc | 1 +
+ gcc/fortran/resolve.cc | 13 ++++-
...dd_SEQUENCE_to_COMMON_block_by_default_1.f | 57 +++++++++++++++++++
...dd_SEQUENCE_to_COMMON_block_by_default_2.f | 57 +++++++++++++++++++
...dd_SEQUENCE_to_COMMON_block_by_default_3.f | 57 +++++++++++++++++++
@@ -32,10 +32,10 @@ index 4ca2f93f2df..019c798cf09 100644
fdec-structure
Fortran Var(flag_dec_structure)
Enable support for DEC STRUCTURE/RECORD.
-diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
+diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
index 15079c7e95a..050f56fdc25 100644
---- a/gcc/fortran/options.c
-+++ b/gcc/fortran/options.c
+--- a/gcc/fortran/options.cc
++++ b/gcc/fortran/options.cc
@@ -83,6 +83,7 @@ set_dec_flags (int value)
SET_BITFLAG (flag_dec_override_kind, value, value);
SET_BITFLAG (flag_dec_non_logical_if, value, value);
@@ -44,10 +44,10 @@ index 15079c7e95a..050f56fdc25 100644
}
/* Finalize DEC flags. */
-diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
+diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc
index 07dd039f3bf..fe7d0cc5944 100644
---- a/gcc/fortran/resolve.c
-+++ b/gcc/fortran/resolve.c
+--- a/gcc/fortran/resolve.cc
++++ b/gcc/fortran/resolve.cc
@@ -978,9 +978,16 @@ resolve_common_vars (gfc_common_head *common_block, bool named_common)
if (!(csym->ts.u.derived->attr.sequence
diff --git a/gcc12-fortran-flogical-as-integer.patch b/gcc12-fortran-flogical-as-integer.patch
index 41cbf60..28df5e1 100644
--- a/gcc12-fortran-flogical-as-integer.patch
+++ b/gcc12-fortran-flogical-as-integer.patch
@@ -14,7 +14,7 @@ Note: using this feature will disable bitwise logical operations enabled by
-fdec.
---
gcc/fortran/lang.opt | 4 ++
- gcc/fortran/resolve.c | 55 ++++++++++++++++++-
+ gcc/fortran/resolve.cc | 55 ++++++++++++++++++-
.../logical_to_integer_and_vice_versa_1.f | 31 +++++++++++
.../logical_to_integer_and_vice_versa_2.f | 31 +++++++++++
.../logical_to_integer_and_vice_versa_3.f | 33 +++++++++++
@@ -40,10 +40,10 @@ index 52bd522051e..c4da248f07c 100644
fdefault-double-8
Fortran Var(flag_default_double)
Set the default double precision kind to an 8 byte wide type.
-diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c
+diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc
index c075d0fa0c4..4b90cb59902 100644
---- a/gcc/fortran/resolve.c
-+++ b/gcc/fortran/resolve.c
+--- a/gcc/fortran/resolve.cc
++++ b/gcc/fortran/resolve.cc
@@ -3915,7 +3915,6 @@ lookup_uop_fuzzy (const char *op, gfc_symtree *uop)
return gfc_closest_fuzzy_match (op, candidates);
}
diff --git a/gcc12-hack.patch b/gcc12-hack.patch
index 3a5f3f3..e98649e 100644
--- a/gcc12-hack.patch
+++ b/gcc12-hack.patch
@@ -65,8 +65,8 @@
GOCFLAGS="$(GOCFLAGS) $${flags}" \
GDCFLAGS="$(GDCFLAGS) $${flags}" \
CXXFLAGS="$(CXXFLAGS) $${flags}" \
---- libcpp/macro.c.jj 2019-01-09 13:01:21.420552123 +0100
-+++ libcpp/macro.c 2019-01-11 18:18:17.736876285 +0100
+--- libcpp/macro.cc.jj 2019-01-09 13:01:21.420552123 +0100
++++ libcpp/macro.cc 2019-01-11 18:18:17.736876285 +0100
@@ -3256,8 +3256,6 @@ static cpp_macro *
create_iso_definition (cpp_reader *pfile)
{
@@ -98,8 +98,8 @@
goto out;
}
---- libcpp/expr.c.jj 2019-01-09 13:01:22.415535734 +0100
-+++ libcpp/expr.c 2019-01-11 18:16:23.444726882 +0100
+--- libcpp/expr.cc.jj 2019-01-09 13:01:22.415535734 +0100
++++ libcpp/expr.cc 2019-01-11 18:16:23.444726882 +0100
@@ -803,16 +803,17 @@ cpp_classify_number (cpp_reader *pfile,
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
&& CPP_OPTION (pfile, cpp_warn_long_long))
diff --git a/gcc12-isl-dl.patch b/gcc12-isl-dl.patch
index b3982f9..825fb88 100644
--- a/gcc12-isl-dl.patch
+++ b/gcc12-isl-dl.patch
@@ -626,8 +626,8 @@
+extern const char *get_isl_version (bool);
#endif
---- gcc/graphite.c.jj 2015-11-04 14:15:32.000000000 +0100
-+++ gcc/graphite.c 2015-11-04 14:56:02.645536409 +0100
+--- gcc/graphite.cc.jj 2015-11-04 14:15:32.000000000 +0100
++++ gcc/graphite.cc 2015-11-04 14:56:02.645536409 +0100
@@ -60,6 +60,35 @@ along with GCC; see the file COPYING3.
#include "tree-into-ssa.h"
#include "graphite.h"
@@ -695,8 +695,8 @@
#else /* If isl is not available: #ifndef HAVE_isl. */
static void
---- gcc/toplev.c.jj 2017-02-19 13:02:31.000000000 +0100
-+++ gcc/toplev.c 2017-02-19 16:50:25.536301350 +0100
+--- gcc/toplev.cc.jj 2017-02-19 13:02:31.000000000 +0100
++++ gcc/toplev.cc 2017-02-19 16:50:25.536301350 +0100
@@ -94,6 +94,7 @@ along with GCC; see the file COPYING3.
#ifdef HAVE_isl
diff --git a/gcc12-isl-dl2.patch b/gcc12-isl-dl2.patch
index e16672c..5402a8e 100644
--- a/gcc12-isl-dl2.patch
+++ b/gcc12-isl-dl2.patch
@@ -1,12 +1,12 @@
2011-04-04 Jakub Jelinek
- * toplev.c (toplev_main_argv): New variable.
+ * toplev.cc (toplev_main_argv): New variable.
(toplev_main): Initialize it.
- * graphite.c (init_isl_pointers): Load libisl.so.15 from gcc's private
+ * graphite.cc (init_isl_pointers): Load libisl.so.15 from gcc's private
directory.
---- gcc/toplev.c.jj 2008-12-09 23:59:10.000000000 +0100
-+++ gcc/toplev.c 2009-01-27 14:33:52.000000000 +0100
+--- gcc/toplev.cc.jj 2008-12-09 23:59:10.000000000 +0100
++++ gcc/toplev.cc 2009-01-27 14:33:52.000000000 +0100
@@ -113,6 +113,8 @@ static void finalize (bool);
static void crash_signal (int) ATTRIBUTE_NORETURN;
static void compile_file (void);
@@ -25,8 +25,8 @@
/* Initialization of GCC's environment, and diagnostics. */
general_init (argv[0], m_init_signals);
---- gcc/graphite.c.jj 2010-12-01 10:24:32.000000000 -0500
-+++ gcc/graphite.c 2010-12-01 11:46:07.832118193 -0500
+--- gcc/graphite.cc.jj 2010-12-01 10:24:32.000000000 -0500
++++ gcc/graphite.cc 2010-12-01 11:46:07.832118193 -0500
@@ -64,11 +64,39 @@ __typeof (isl_pointers__) isl_pointers__
static bool
init_isl_pointers (void)
diff --git a/gcc12-libstdc++-docs.patch b/gcc12-libstdc++-docs.patch
index 25aa718..cdcd435 100644
--- a/gcc12-libstdc++-docs.patch
+++ b/gcc12-libstdc++-docs.patch
@@ -4,7 +4,7 @@
FSF
-+ Release 12.0.0
++ Release 12.0.1
+
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
@@ -17,7 +17,7 @@
- The API documentation, rendered into HTML, can be viewed online
+ The API documentation, rendered into HTML, can be viewed locally
-+ for the 12.0.0 release,
++ for the 12.0.1 release,
+ online
for each GCC release
and
diff --git a/gcc12-pr104025.patch b/gcc12-pr104025.patch
new file mode 100644
index 0000000..3010236
--- /dev/null
+++ b/gcc12-pr104025.patch
@@ -0,0 +1,42 @@
+2022-01-18 Jakub Jelinek
+
+ PR c++/104025
+ * parser.cc (cp_parser_id_expression): Save and restore input_location
+ around cp_parser_skip_entire_template_parameter_list call for
+ -Wmissing-template-keyword.
+
+ * g++.dg/warn/pr104025.C: New test.
+
+--- gcc/cp/parser.cc.jj 2022-01-17 18:05:04.797307506 +0100
++++ gcc/cp/parser.cc 2022-01-17 20:27:33.642711859 +0100
+@@ -6254,6 +6254,7 @@ cp_parser_id_expression (cp_parser *pars
+ OPT_Wmissing_template_keyword))
+ {
+ saved_token_sentinel toks (parser->lexer, STS_ROLLBACK);
++ iloc_sentinel ils (UNKNOWN_LOCATION);
+ if (cp_parser_skip_entire_template_parameter_list (parser)
+ /* An operator after the > suggests that the > ends a
+ template-id; a name or literal suggests that the > is an
+--- gcc/testsuite/g++.dg/warn/pr104025.C.jj 2022-01-17 20:31:17.320591249 +0100
++++ gcc/testsuite/g++.dg/warn/pr104025.C 2022-01-17 20:31:09.068706373 +0100
+@@ -0,0 +1,20 @@
++// PR c++/104025
++// { dg-do compile }
++// { dg-options "-Wmissing-template-keyword -fcompare-debug" }
++
++void bar (int);
++
++struct S { int i; };
++
++template
++struct T
++{
++ int m;
++ C c;
++ void foo ()
++ {
++ bar (c.i < m);
++ }
++};
++
++template void T::foo ();
diff --git a/sources b/sources
index 62293b2..5e6f821 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-12.0.0-20220115.tar.xz) = 27eb968a3dc3387ef381c8b58a874eec2db6c57cf71ca9c6492d9078776b9d5d29e2d4ccd643568e6e4967ec7a6b531690d51d9355e2ef66bb2978dc08b8005f
+SHA512 (gcc-12.0.1-20220118.tar.xz) = 903418bda48240537a0f7b74687e70042d56cea7bc079319380098c3465079d064083e5d6bad4d9d44bcf7e7f929dd6f692ab638ff40824e8f2f2712991f9290
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 4592048..b9e8330 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-12.0.0-$d/ $1 | xz -9e > gcc-12.0.0-$d.tar.xz
+git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-12.0.1-$d/ $1 | xz -9e > gcc-12.0.1-$d.tar.xz
rm -rf gcc-dir.tmp
From 1d6884964d93b8c51c5da6c9f20c7661169c50e7 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 18 Jan 2022 14:52:08 +0100
Subject: [PATCH 006/215] 12.0.1-0.1.1
---
gcc.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gcc.spec b/gcc.spec
index 29ddb2f..10fce4c 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}.1%{?dist}
+Release: %{gcc_release}.1.1%{?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
@@ -995,6 +995,9 @@ CONFIGURE_OPTS="\
%ifarch sparc sparcv9 sparc64 ppc ppc64 ppc64le ppc64p7 s390 s390x alpha
--with-long-double-128 \
%endif
+%ifarch ppc64le
+ --with-long-double-format=ieee \
+%endif
%ifarch sparc
--disable-linux-futex \
%endif
@@ -3148,6 +3151,9 @@ end
%endif
%changelog
+* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.1.1
+- default to -mabi=ieeelongdouble on ppc64le
+
* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.1
- update from trunk
- PRs c++/104031, c/63272, fortran/83079, fortran/87711, fortran/97896,
From b2295576ca1b84d438365cd3b1d6063e958c0284 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 18 Jan 2022 21:54:19 +0100
Subject: [PATCH 007/215] 12.0.0-0.2
---
gcc.spec | 16 ++++--
gcc12-pr104103.patch | 20 +++++++
gcc12-pr104104.patch | 121 +++++++++++++++++++++++++++++++++++++++++++
sources | 2 +-
4 files changed, 155 insertions(+), 4 deletions(-)
create mode 100644 gcc12-pr104103.patch
create mode 100644 gcc12-pr104104.patch
diff --git a/gcc.spec b/gcc.spec
index 10fce4c..5379e6f 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
%global DATE 20220118
-%global gitrev 880787aef7a985a80f88a14f830fb554a33b1a87
+%global gitrev c682bc883d1a29c3f697f065af23759f3d6757bc
%global gcc_version 12.0.1
%global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to
@@ -119,7 +119,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.1.1%{?dist}
+Release: %{gcc_release}.2%{?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
@@ -270,6 +270,8 @@ Patch9: gcc12-Wno-format-security.patch
Patch10: gcc12-rh1574936.patch
Patch11: gcc12-d-shared-libphobos.patch
Patch12: gcc12-pr104025.patch
+Patch13: gcc12-pr104103.patch
+Patch14: gcc12-pr104104.patch
Patch100: gcc12-fortran-fdec-duplicates.patch
Patch101: gcc12-fortran-flogical-as-integer.patch
@@ -792,6 +794,8 @@ to NVidia PTX capable devices if available.
%endif
%patch11 -p0 -b .d-shared-libphobos~
%patch12 -p0 -b .pr104025~
+%patch13 -p0 -b .pr104103~
+%patch14 -p0 -b .pr104104~
%if 0%{?rhel} >= 9
%patch100 -p1 -b .fortran-fdec-duplicates~
@@ -3151,8 +3155,14 @@ end
%endif
%changelog
-* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.1.1
+* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.2
+- update from trunk
+ - PRs c++/104007, c++/104074, fortran/103692, ipa/103989, libstdc++/101124,
+ libstdc++/104098, middle-end/103163, tree-optimization/103987,
+ tree-optimization/104038
- default to -mabi=ieeelongdouble on ppc64le
+- fix -Wdangling-pointer with -fsanitize=address (PR middle-end/104103)
+- fix -masm=intel (PR target/104104)
* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.1
- update from trunk
diff --git a/gcc12-pr104103.patch b/gcc12-pr104103.patch
new file mode 100644
index 0000000..cdf421d
--- /dev/null
+++ b/gcc12-pr104103.patch
@@ -0,0 +1,20 @@
+2022-01-18 Jakub Jelinek
+
+ PR middle-end/104103
+ * gimple-ssa-warn-access.cc (pass_waccess::check_call): Don't check
+ .ASAN_MARK calls.
+
+--- gcc/gimple-ssa-warn-access.cc.jj 2022-01-16 20:55:46.783932110 +0100
++++ gcc/gimple-ssa-warn-access.cc 2022-01-18 20:56:13.697780325 +0100
+@@ -4232,6 +4232,11 @@ pass_waccess::check_call (gcall *stmt)
+ if (gimple_call_builtin_p (stmt, BUILT_IN_NORMAL))
+ check_builtin (stmt);
+
++ /* .ASAN_MARK doesn't access any vars, only modifies shadow memory. */
++ if (gimple_call_internal_p (stmt)
++ && gimple_call_internal_fn (stmt) == IFN_ASAN_MARK)
++ return;
++
+ if (!m_early_checks_p)
+ if (tree callee = gimple_call_fndecl (stmt))
+ {
diff --git a/gcc12-pr104104.patch b/gcc12-pr104104.patch
new file mode 100644
index 0000000..d81b3f0
--- /dev/null
+++ b/gcc12-pr104104.patch
@@ -0,0 +1,121 @@
+2022-01-18 Jakub Jelinek
+
+ PR target/104104
+ * config/i386/sse.md
+ (__,
+ avx512fp16_sh_v8hf,
+ avx512dq_mul3, _permvar,
+ avx2_perm_1, avx512f_perm_1,
+ avx512dq_rangep,
+ avx512dq_ranges,
+ _getmant,
+ avx512f_vgetmant):
+ Use vxorps\t%x0, %x0, %x0 instead of vxorps\t{%x0, %x0, %x0}.
+
+ * gcc.target/i386/pr104104.c: New test.
+
+--- gcc/config/i386/sse.md.jj 2022-01-18 11:58:59.156988142 +0100
++++ gcc/config/i386/sse.md 2022-01-18 21:20:40.022477778 +0100
+@@ -6539,7 +6539,7 @@ (define_insn "__<
+ {
+ if (TARGET_DEST_FALSE_DEP_FOR_GLC
+ && )
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "v\t{%2, %1, %0|%0, %1, %2}";
+ }
+ [(set_attr "type" "ssemul")
+@@ -6750,7 +6750,7 @@ (define_insn "avx512fp16_
+ {
+ if (TARGET_DEST_FALSE_DEP_FOR_GLC
+ && )
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vsh\t{%2, %1, %0|%0, %1, %2}";
+ }
+ [(set_attr "type" "ssemul")
+@@ -15222,7 +15222,7 @@ (define_insn "avx512dq_mul3
+ && !reg_mentioned_p (operands[0], operands[1])
+ && !reg_mentioned_p (operands[0], operands[2]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vpmullq\t{%2, %1, %0|%0, %1, %2}";
+ }
+ [(set_attr "type" "sseimul")
+@@ -24658,7 +24658,7 @@ (define_insn "_permvar
+ && !reg_mentioned_p (operands[0], operands[1])
+ && !reg_mentioned_p (operands[0], operands[2]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vperm\t{%1, %2, %0|%0, %2, %1}";
+ }
+ [(set_attr "type" "sselog")
+@@ -24900,7 +24900,7 @@ (define_insn "avx2_perm_1
+ && !reg_mentioned_p (operands[0], operands[1]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vperm\t{%2, %1, %0|%0, %1, %2}";
+ }
+ [(set_attr "type" "sselog")
+@@ -24975,7 +24975,7 @@ (define_insn "avx512f_perm_1
+ && !reg_mentioned_p (operands[0], operands[1]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vperm\t{%2, %1, %0|%0, %1, %2}";
+ }
+ [(set_attr "type" "sselog")
+@@ -26880,7 +26880,7 @@ (define_insn "avx512dq_rangep
+ && !reg_mentioned_p (operands[0], operands[1])
+ && !reg_mentioned_p (operands[0], operands[2]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vrange\t{%3, %2, %1, %0|%0, %1, %2, %3}";
+ }
+ [(set_attr "type" "sse")
+@@ -26903,7 +26903,7 @@ (define_insn "avx512dq_ranges
+ && !reg_mentioned_p (operands[0], operands[1])
+ && !reg_mentioned_p (operands[0], operands[2]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vrange\t{%3, %2, %1, %0|%0, %1, %2, %3}";
+ }
+ [(set_attr "type" "sse")
+@@ -26949,7 +26949,7 @@ (define_insn "_getmant
+ && MEM_P (operands[1]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vgetmant\t{%2, %1, %0|%0, %1, %2}";
+ }
+ [(set_attr "prefix" "evex")
+@@ -26971,7 +26971,7 @@ (define_insn "avx512f_vgetmant
+ && !reg_mentioned_p (operands[0], operands[1])
+ && !reg_mentioned_p (operands[0], operands[2]))
+- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
++ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
+ return "vgetmant\t{%3, %2, %1, %0|%0, %1, %2, %3}";
+ }
+ [(set_attr "prefix" "evex")
+--- gcc/testsuite/gcc.target/i386/pr104104.c.jj 2022-01-18 21:38:17.007906673 +0100
++++ gcc/testsuite/gcc.target/i386/pr104104.c 2022-01-18 21:36:10.475623148 +0100
+@@ -0,0 +1,10 @@
++/* PR target/104104 */
++/* { dg-do assemble { target vect_simd_clones } } */
++/* { dg-require-effective-target masm_intel } */
++/* { dg-options "-march=alderlake -masm=intel -O1 -fallow-store-data-races -funroll-all-loops" } */
++
++__attribute__ ((simd)) short int
++foo (void)
++{
++ return 0;
++}
diff --git a/sources b/sources
index 5e6f821..43d2957 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-12.0.1-20220118.tar.xz) = 903418bda48240537a0f7b74687e70042d56cea7bc079319380098c3465079d064083e5d6bad4d9d44bcf7e7f929dd6f692ab638ff40824e8f2f2712991f9290
+SHA512 (gcc-12.0.1-20220118.tar.xz) = 5fab239e915e71a8986a122e3f897f2236f21f0f183da33cad2ace8f34823cd8f32c7c0dfceffbfeae17cd99b656f242d30ddeb94eaafe3edf858ea88ec59016
SHA512 (isl-0.18.tar.bz2) = 85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) = 002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) = f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
From dc6e17c8c28155f3e0da86ad723ff5b15c85b11a Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Wed, 19 Jan 2022 17:00:04 +0100
Subject: [PATCH 008/215] Fix up gcc12-fortran-fdec-promotion.patch patch.
---
gcc12-fortran-fdec-promotion.patch | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/gcc12-fortran-fdec-promotion.patch b/gcc12-fortran-fdec-promotion.patch
index a20d151..870d62a 100644
--- a/gcc12-fortran-fdec-promotion.patch
+++ b/gcc12-fortran-fdec-promotion.patch
@@ -180,7 +180,7 @@ diff --git a/gcc/fortran/iresolve.cc b/gcc/fortran/iresolve.cc
index e17fe45f080..b9cdaff2499 100644
--- a/gcc/fortran/iresolve.cc
+++ b/gcc/fortran/iresolve.cc
-@@ -817,19 +817,22 @@ gfc_resolve_dble (gfc_expr *f, gfc_expr *a)
+@@ -834,19 +834,22 @@ gfc_resolve_dble (gfc_expr *f, gfc_expr
void
gfc_resolve_dim (gfc_expr *f, gfc_expr *a, gfc_expr *p)
{
@@ -211,8 +211,8 @@ index e17fe45f080..b9cdaff2499 100644
+ f->ts = a->ts;
f->value.function.name
- = gfc_get_string ("__dim_%c%d", gfc_type_letter (f->ts.type), f->ts.kind);
-@@ -1606,14 +1609,17 @@ gfc_resolve_minmax (const char *name, gfc_expr *f, gfc_actual_arglist *args)
+ = gfc_get_string ("__dim_%c%d", gfc_type_letter (f->ts.type),
+@@ -1622,14 +1625,17 @@ gfc_resolve_minmax (const char *name, gf
/* Find the largest type kind. */
for (a = args->next; a; a = a->next)
{
@@ -232,7 +232,7 @@ index e17fe45f080..b9cdaff2499 100644
gfc_convert_type (a->expr, &f->ts, 2);
}
-@@ -2106,19 +2112,22 @@ gfc_resolve_minval (gfc_expr *f, gfc_expr *array, gfc_expr *dim,
+@@ -2130,19 +2136,22 @@ gfc_resolve_minval (gfc_expr *f, gfc_exp
void
gfc_resolve_mod (gfc_expr *f, gfc_expr *a, gfc_expr *p)
{
@@ -263,8 +263,8 @@ index e17fe45f080..b9cdaff2499 100644
+ f->ts = a->ts;
f->value.function.name
- = gfc_get_string ("__mod_%c%d", gfc_type_letter (f->ts.type), f->ts.kind);
-@@ -2128,19 +2137,22 @@ gfc_resolve_mod (gfc_expr *f, gfc_expr *a, gfc_expr *p)
+ = gfc_get_string ("__mod_%c%d", gfc_type_letter (f->ts.type),
+@@ -2153,19 +2162,22 @@ gfc_resolve_mod (gfc_expr *f, gfc_expr *
void
gfc_resolve_modulo (gfc_expr *f, gfc_expr *a, gfc_expr *p)
{
@@ -296,7 +296,7 @@ index e17fe45f080..b9cdaff2499 100644
f->value.function.name
= gfc_get_string ("__modulo_%c%d", gfc_type_letter (f->ts.type),
-@@ -2515,9 +2527,26 @@ gfc_resolve_shift (gfc_expr *f, gfc_expr *i, gfc_expr *shift ATTRIBUTE_UNUSED)
+@@ -2543,9 +2555,26 @@ gfc_resolve_shift (gfc_expr *f, gfc_expr
void
@@ -323,8 +323,8 @@ index e17fe45f080..b9cdaff2499 100644
+ f->ts = a->ts;
+ }
f->value.function.name
- = gfc_get_string ("__sign_%c%d", gfc_type_letter (a->ts.type), a->ts.kind);
- }
+ = gfc_get_string ("__sign_%c%d", gfc_type_letter (a->ts.type),
+ gfc_type_abi_kind (&a->ts));
diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt
index d886c2f33ed..4ca2f93f2df 100644
--- a/gcc/fortran/lang.opt
From b8dc449a650a5ad7fb9ff5d23af2f654916ca91c Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Thu, 20 Jan 2022 03:59:43 +0000
Subject: [PATCH 009/215] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
gcc.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gcc.spec b/gcc.spec
index 5379e6f..05b55f8 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}.2%{?dist}
+Release: %{gcc_release}.2%{?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
@@ -3155,6 +3155,9 @@ end
%endif
%changelog
+* Thu Jan 20 2022 Fedora Release Engineering - 12.0.1-0.2.1
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.2
- update from trunk
- PRs c++/104007, c++/104074, fortran/103692, ipa/103989, libstdc++/101124,
From 067e0a8c2ecb0694dc7815cd7bffc799b4c96d9a Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 25 Jan 2022 14:02:53 +0100
Subject: [PATCH 010/215] 12.0.1-0.3
---
.gitignore | 1 +
gcc.spec | 47 +-
gcc12-ifcvt-revert.patch | 1054 ++++++++++++++++++++++++++++++++++++++
gcc12-pr104025.patch | 42 --
gcc12-pr104103.patch | 20 -
gcc12-pr104104.patch | 121 -----
gcc12-pr104194.patch | 92 ++++
gcc12-pr94193.patch | 39 ++
sources | 2 +-
9 files changed, 1226 insertions(+), 192 deletions(-)
create mode 100644 gcc12-ifcvt-revert.patch
delete mode 100644 gcc12-pr104025.patch
delete mode 100644 gcc12-pr104103.patch
delete mode 100644 gcc12-pr104104.patch
create mode 100644 gcc12-pr104194.patch
create mode 100644 gcc12-pr94193.patch
diff --git a/.gitignore b/.gitignore
index 21dcf61..990b516 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,3 +58,4 @@
/gcc-12.0.0-20220112.tar.xz
/gcc-12.0.0-20220115.tar.xz
/gcc-12.0.1-20220118.tar.xz
+/gcc-12.0.1-20220125.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 5379e6f..49a94f6 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,4 +1,4 @@
-%global DATE 20220118
+%global DATE 20220125
%global gitrev c682bc883d1a29c3f697f065af23759f3d6757bc
%global gcc_version 12.0.1
%global gcc_major 12
@@ -11,6 +11,7 @@
%global _performance_build 1
# Hardening slows the compiler way too much.
%undefine _hardened_build
+%undefine _auto_set_build_flags
%if 0%{?fedora} > 27 || 0%{?rhel} > 7
# Until annobin is fixed (#1519165).
%undefine _annotated_build
@@ -119,7 +120,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.2%{?dist}
+Release: %{gcc_release}.3%{?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
@@ -269,9 +270,9 @@ Patch8: gcc12-no-add-needed.patch
Patch9: gcc12-Wno-format-security.patch
Patch10: gcc12-rh1574936.patch
Patch11: gcc12-d-shared-libphobos.patch
-Patch12: gcc12-pr104025.patch
-Patch13: gcc12-pr104103.patch
-Patch14: gcc12-pr104104.patch
+Patch12: gcc12-pr104194.patch
+Patch13: gcc12-pr94193.patch
+Patch14: gcc12-ifcvt-revert.patch
Patch100: gcc12-fortran-fdec-duplicates.patch
Patch101: gcc12-fortran-flogical-as-integer.patch
@@ -793,9 +794,9 @@ to NVidia PTX capable devices if available.
%patch10 -p0 -b .rh1574936~
%endif
%patch11 -p0 -b .d-shared-libphobos~
-%patch12 -p0 -b .pr104025~
-%patch13 -p0 -b .pr104103~
-%patch14 -p0 -b .pr104104~
+%patch12 -p0 -b .pr104194~
+%patch13 -p0 -b .pr94193~
+%patch14 -p0 -b .ifcvt-revert~
%if 0%{?rhel} >= 9
%patch100 -p1 -b .fortran-fdec-duplicates~
@@ -3155,6 +3156,36 @@ end
%endif
%changelog
+* Tue Jan 24 2022 Jakub Jelinek 12.0.1-0.3
+- update from trunk
+ - PRs ada/103538, analyzer/94362, analyzer/103685, analyzer/104062,
+ analyzer/104089, analyzer/104150, analyzer/104159, bootstrap/104135,
+ bootstrap/104170, c++/20040, c++/55227, c++/91911, c++/101072,
+ c++/101405, c++/101715, c++/102300, c++/102338, c++/103631,
+ c++/103672, c++/103681, c++/104025, c++/104055, c++/104084,
+ c++/104134, c++/104139, c++/104148, c++/104173, c++/104182,
+ c++/104197, c/104115, debug/103874, fortran/102621, fortran/103695,
+ fortran/104127, libgcc/104207, libstdc++/87193, libstdc++/104019,
+ libstdc++/104032, libstdc++/104099, libstdc++/104101,
+ libstdc++/104123, libstdc++/104174, middle-end/100786,
+ middle-end/102860, middle-end/104069, middle-end/104076,
+ middle-end/104140, other/104176, other/104181, preprocessor/104030,
+ rtl-optimization/102478, sanitizer/99673, sanitizer/104158,
+ target/64821, target/94193, target/100784, target/102517,
+ target/103676, target/103771, target/104090, target/104136,
+ target/104188, testsuite/102833, testsuite/103763, testsuite/104021,
+ testsuite/104022, testsuite/104109, tree-optimization/100089,
+ tree-optimization/100740, tree-optimization/101508,
+ tree-optimization/101972, tree-optimization/102087,
+ tree-optimization/102131, tree-optimization/103721,
+ tree-optimization/103997, tree-optimization/104112,
+ tree-optimization/104114, tree-optimization/104152,
+ tree-optimization/104156, tree-optimization/104214
+ - don't emit C++ mangling aliases for compatibility with GCC 8.1 ppc64le
+ IEEE quad long double (PR target/104172)
+- mark IEEE quad long double in DWARF as implicit typedef to _Float128
+ (PR debug/104194)
+
* Tue Jan 18 2022 Jakub Jelinek 12.0.1-0.2
- update from trunk
- PRs c++/104007, c++/104074, fortran/103692, ipa/103989, libstdc++/101124,
diff --git a/gcc12-ifcvt-revert.patch b/gcc12-ifcvt-revert.patch
new file mode 100644
index 0000000..2261669
--- /dev/null
+++ b/gcc12-ifcvt-revert.patch
@@ -0,0 +1,1054 @@
+Revert r12-674{3,4,5,6,7,8,9}, as there are several PRs reported against
+those changes: PR104153, PR104154 and PR104198 at least.
+
+--- gcc/config/rs6000/rs6000.cc
++++ gcc/config/rs6000/rs6000.cc
+@@ -16373,10 +16373,10 @@ rs6000_emit_minmax (rtx dest, enum rtx_code code, rtx op0, rtx op1)
+ c = GEU;
+
+ if (code == SMAX || code == UMAX)
+- target = emit_conditional_move (dest, { c, op0, op1, mode },
++ target = emit_conditional_move (dest, c, op0, op1, mode,
+ op0, op1, mode, 0);
+ else
+- target = emit_conditional_move (dest, { c, op0, op1, mode },
++ target = emit_conditional_move (dest, c, op0, op1, mode,
+ op1, op0, mode, 0);
+ gcc_assert (target);
+ if (target != dest)
+@@ -22769,7 +22769,7 @@ rs6000_emit_swsqrt (rtx dst, rtx src, bool recip)
+
+ if (mode == SFmode)
+ {
+- rtx target = emit_conditional_move (e, { GT, src, zero, mode },
++ rtx target = emit_conditional_move (e, GT, src, zero, mode,
+ e, zero, mode, 0);
+ if (target != e)
+ emit_move_insn (e, target);
+--- gcc/expmed.cc
++++ gcc/expmed.cc
+@@ -4124,8 +4124,8 @@ expand_sdiv_pow2 (scalar_int_mode mode, rtx op0, HOST_WIDE_INT d)
+ temp = force_reg (mode, temp);
+
+ /* Construct "temp2 = (temp2 < 0) ? temp : temp2". */
+- temp2 = emit_conditional_move (temp2, { LT, temp2, const0_rtx, mode },
+- temp, temp2, mode, 0);
++ temp2 = emit_conditional_move (temp2, LT, temp2, const0_rtx,
++ mode, temp, temp2, mode, 0);
+ if (temp2)
+ {
+ rtx_insn *seq = get_insns ();
+@@ -6127,10 +6127,10 @@ emit_store_flag (rtx target, enum rtx_code code, rtx op0, rtx op1,
+ return 0;
+
+ if (and_them)
+- tem = emit_conditional_move (target, { code, op0, op1, mode },
++ tem = emit_conditional_move (target, code, op0, op1, mode,
+ tem, const0_rtx, GET_MODE (tem), 0);
+ else
+- tem = emit_conditional_move (target, { code, op0, op1, mode },
++ tem = emit_conditional_move (target, code, op0, op1, mode,
+ trueval, tem, GET_MODE (tem), 0);
+
+ if (tem == 0)
+--- gcc/expr.cc
++++ gcc/expr.cc
+@@ -8824,9 +8824,8 @@ expand_cond_expr_using_cmove (tree treeop0 ATTRIBUTE_UNUSED,
+ op2 = gen_lowpart (mode, op2);
+
+ /* Try to emit the conditional move. */
+- insn = emit_conditional_move (temp,
+- { comparison_code, op00, op01,
+- comparison_mode },
++ insn = emit_conditional_move (temp, comparison_code,
++ op00, op01, comparison_mode,
+ op1, op2, mode,
+ unsignedp);
+
+@@ -9717,9 +9716,8 @@ expand_expr_real_2 (sepops ops, rtx target, machine_mode tmode,
+ start_sequence ();
+
+ /* Try to emit the conditional move. */
+- insn = emit_conditional_move (target,
+- { comparison_code,
+- op0, cmpop1, mode },
++ insn = emit_conditional_move (target, comparison_code,
++ op0, cmpop1, mode,
+ op0, op1, mode,
+ unsignedp);
+
+--- gcc/ifcvt.cc
++++ gcc/ifcvt.cc
+@@ -83,7 +83,7 @@ static rtx_insn *last_active_insn (basic_block, int);
+ static rtx_insn *find_active_insn_before (basic_block, rtx_insn *);
+ static rtx_insn *find_active_insn_after (basic_block, rtx_insn *);
+ static basic_block block_fallthru (basic_block);
+-static rtx cond_exec_get_condition (rtx_insn *, bool);
++static rtx cond_exec_get_condition (rtx_insn *);
+ static rtx noce_get_condition (rtx_insn *, rtx_insn **, bool);
+ static int noce_operand_ok (const_rtx);
+ static void merge_if_block (ce_if_block *);
+@@ -98,14 +98,6 @@ static int dead_or_predicable (basic_block, basic_block, basic_block,
+ edge, int);
+ static void noce_emit_move_insn (rtx, rtx);
+ static rtx_insn *block_has_only_trap (basic_block);
+-static void need_cmov_or_rewire (basic_block, hash_set *,
+- hash_map *);
+-static bool noce_convert_multiple_sets_1 (struct noce_if_info *,
+- hash_set *,
+- hash_map *,
+- auto_vec *,
+- auto_vec *,
+- auto_vec *, int *);
+
+ /* Count the number of non-jump active insns in BB. */
+
+@@ -433,7 +425,7 @@ cond_exec_process_insns (ce_if_block *ce_info ATTRIBUTE_UNUSED,
+ /* Return the condition for a jump. Do not do any special processing. */
+
+ static rtx
+-cond_exec_get_condition (rtx_insn *jump, bool get_reversed = false)
++cond_exec_get_condition (rtx_insn *jump)
+ {
+ rtx test_if, cond;
+
+@@ -445,10 +437,8 @@ cond_exec_get_condition (rtx_insn *jump, bool get_reversed = false)
+
+ /* If this branches to JUMP_LABEL when the condition is false,
+ reverse the condition. */
+- if (get_reversed
+- || (GET_CODE (XEXP (test_if, 2)) == LABEL_REF
+- && label_ref_label (XEXP (test_if, 2))
+- == JUMP_LABEL (jump)))
++ if (GET_CODE (XEXP (test_if, 2)) == LABEL_REF
++ && label_ref_label (XEXP (test_if, 2)) == JUMP_LABEL (jump))
+ {
+ enum rtx_code rev = reversed_comparison_code (cond, jump);
+ if (rev == UNKNOWN)
+@@ -780,7 +770,7 @@ static int noce_try_addcc (struct noce_if_info *);
+ static int noce_try_store_flag_constants (struct noce_if_info *);
+ static int noce_try_store_flag_mask (struct noce_if_info *);
+ static rtx noce_emit_cmove (struct noce_if_info *, rtx, enum rtx_code, rtx,
+- rtx, rtx, rtx, rtx = NULL, rtx = NULL);
++ rtx, rtx, rtx);
+ static int noce_try_cmove (struct noce_if_info *);
+ static int noce_try_cmove_arith (struct noce_if_info *);
+ static rtx noce_get_alt_condition (struct noce_if_info *, rtx, rtx_insn **);
+@@ -1719,8 +1709,7 @@ noce_try_store_flag_mask (struct noce_if_info *if_info)
+
+ static rtx
+ noce_emit_cmove (struct noce_if_info *if_info, rtx x, enum rtx_code code,
+- rtx cmp_a, rtx cmp_b, rtx vfalse, rtx vtrue, rtx cc_cmp,
+- rtx rev_cc_cmp)
++ rtx cmp_a, rtx cmp_b, rtx vfalse, rtx vtrue)
+ {
+ rtx target ATTRIBUTE_UNUSED;
+ int unsignedp ATTRIBUTE_UNUSED;
+@@ -1752,30 +1741,23 @@ noce_emit_cmove (struct noce_if_info *if_info, rtx x, enum rtx_code code,
+ end_sequence ();
+ }
+
+- unsignedp = (code == LTU || code == GEU
+- || code == LEU || code == GTU);
+-
+- if (cc_cmp != NULL_RTX && rev_cc_cmp != NULL_RTX)
+- target = emit_conditional_move (x, cc_cmp, rev_cc_cmp,
+- vtrue, vfalse, GET_MODE (x));
+- else
++ /* Don't even try if the comparison operands are weird
++ except that the target supports cbranchcc4. */
++ if (! general_operand (cmp_a, GET_MODE (cmp_a))
++ || ! general_operand (cmp_b, GET_MODE (cmp_b)))
+ {
+- /* Don't even try if the comparison operands are weird
+- except that the target supports cbranchcc4. */
+- if (! general_operand (cmp_a, GET_MODE (cmp_a))
+- || ! general_operand (cmp_b, GET_MODE (cmp_b)))
+- {
+- if (!have_cbranchcc4
+- || GET_MODE_CLASS (GET_MODE (cmp_a)) != MODE_CC
+- || cmp_b != const0_rtx)
+- return NULL_RTX;
+- }
+-
+- target = emit_conditional_move (x, { code, cmp_a, cmp_b, VOIDmode },
+- vtrue, vfalse, GET_MODE (x),
+- unsignedp);
++ if (!have_cbranchcc4
++ || GET_MODE_CLASS (GET_MODE (cmp_a)) != MODE_CC
++ || cmp_b != const0_rtx)
++ return NULL_RTX;
+ }
+
++ unsignedp = (code == LTU || code == GEU
++ || code == LEU || code == GTU);
++
++ target = emit_conditional_move (x, code, cmp_a, cmp_b, VOIDmode,
++ vtrue, vfalse, GET_MODE (x),
++ unsignedp);
+ if (target)
+ return target;
+
+@@ -1811,9 +1793,8 @@ noce_emit_cmove (struct noce_if_info *if_info, rtx x, enum rtx_code code,
+
+ promoted_target = gen_reg_rtx (GET_MODE (reg_vtrue));
+
+- target = emit_conditional_move (promoted_target,
+- { code, cmp_a, cmp_b, VOIDmode },
+- reg_vtrue, reg_vfalse,
++ target = emit_conditional_move (promoted_target, code, cmp_a, cmp_b,
++ VOIDmode, reg_vtrue, reg_vfalse,
+ GET_MODE (reg_vtrue), unsignedp);
+ /* Nope, couldn't do it in that mode either. */
+ if (!target)
+@@ -3160,50 +3141,6 @@ bb_valid_for_noce_process_p (basic_block test_bb, rtx cond,
+ return false;
+ }
+
+-/* Helper function to emit a cmov sequence encapsulated in
+- start_sequence () and end_sequence (). If NEED_CMOV is true
+- we call noce_emit_cmove to create a cmove sequence. Otherwise emit
+- a simple move. If successful, store the first instruction of the
+- sequence in TEMP_DEST and the sequence costs in SEQ_COST. */
+-
+-static rtx_insn*
+-try_emit_cmove_seq (struct noce_if_info *if_info, rtx temp,
+- rtx cond, rtx new_val, rtx old_val, bool need_cmov,
+- unsigned *cost, rtx *temp_dest,
+- rtx cc_cmp = NULL, rtx rev_cc_cmp = NULL)
+-{
+- rtx_insn *seq = NULL;
+- *cost = 0;
+-
+- rtx x = XEXP (cond, 0);
+- rtx y = XEXP (cond, 1);
+- rtx_code cond_code = GET_CODE (cond);
+-
+- start_sequence ();
+-
+- if (need_cmov)
+- *temp_dest = noce_emit_cmove (if_info, temp, cond_code,
+- x, y, new_val, old_val, cc_cmp, rev_cc_cmp);
+- else
+- {
+- *temp_dest = temp;
+- if (if_info->then_else_reversed)
+- noce_emit_move_insn (temp, old_val);
+- else
+- noce_emit_move_insn (temp, new_val);
+- }
+-
+- if (*temp_dest != NULL_RTX)
+- {
+- seq = get_insns ();
+- *cost = seq_cost (seq, if_info->speed_p);
+- }
+-
+- end_sequence ();
+-
+- return seq;
+-}
+-
+ /* We have something like:
+
+ if (x > y)
+@@ -3261,6 +3198,7 @@ noce_convert_multiple_sets (struct noce_if_info *if_info)
+ rtx cond = noce_get_condition (jump, &cond_earliest, false);
+ rtx x = XEXP (cond, 0);
+ rtx y = XEXP (cond, 1);
++ rtx_code cond_code = GET_CODE (cond);
+
+ /* The true targets for a conditional move. */
+ auto_vec targets;
+@@ -3269,139 +3207,8 @@ noce_convert_multiple_sets (struct noce_if_info *if_info)
+ auto_vec temporaries;
+ /* The insns we've emitted. */
+ auto_vec unmodified_insns;
+-
+- hash_set need_no_cmov;
+- hash_map rewired_src;
+-
+- need_cmov_or_rewire (then_bb, &need_no_cmov, &rewired_src);
+-
+- int last_needs_comparison = -1;
+-
+- bool ok = noce_convert_multiple_sets_1
+- (if_info, &need_no_cmov, &rewired_src, &targets, &temporaries,
+- &unmodified_insns, &last_needs_comparison);
+- if (!ok)
+- return false;
+-
+- /* If there are insns that overwrite part of the initial
+- comparison, we can still omit creating temporaries for
+- the last of them.
+- As the second try will always create a less expensive,
+- valid sequence, we do not need to compare and can discard
+- the first one. */
+- if (last_needs_comparison != -1)
+- {
+- end_sequence ();
+- start_sequence ();
+- ok = noce_convert_multiple_sets_1
+- (if_info, &need_no_cmov, &rewired_src, &targets, &temporaries,
+- &unmodified_insns, &last_needs_comparison);
+- /* Actually we should not fail anymore if we reached here,
+- but better still check. */
+- if (!ok)
+- return false;
+- }
+-
+- /* We must have seen some sort of insn to insert, otherwise we were
+- given an empty BB to convert, and we can't handle that. */
+- gcc_assert (!unmodified_insns.is_empty ());
+-
+- /* Now fixup the assignments. */
+- for (unsigned i = 0; i < targets.length (); i++)
+- if (targets[i] != temporaries[i])
+- noce_emit_move_insn (targets[i], temporaries[i]);
+-
+- /* Actually emit the sequence if it isn't too expensive. */
+- rtx_insn *seq = get_insns ();
+-
+- if (!targetm.noce_conversion_profitable_p (seq, if_info))
+- {
+- end_sequence ();
+- return FALSE;
+- }
+-
+- for (insn = seq; insn; insn = NEXT_INSN (insn))
+- set_used_flags (insn);
+-
+- /* Mark all our temporaries and targets as used. */
+- for (unsigned i = 0; i < targets.length (); i++)
+- {
+- set_used_flags (temporaries[i]);
+- set_used_flags (targets[i]);
+- }
+-
+- set_used_flags (cond);
+- set_used_flags (x);
+- set_used_flags (y);
+-
+- unshare_all_rtl_in_chain (seq);
+- end_sequence ();
+-
+- if (!seq)
+- return FALSE;
+-
+- for (insn = seq; insn; insn = NEXT_INSN (insn))
+- if (JUMP_P (insn)
+- || recog_memoized (insn) == -1)
+- return FALSE;
+-
+- emit_insn_before_setloc (seq, if_info->jump,
+- INSN_LOCATION (unmodified_insns.last ()));
+-
+- /* Clean up THEN_BB and the edges in and out of it. */
+- remove_edge (find_edge (test_bb, join_bb));
+- remove_edge (find_edge (then_bb, join_bb));
+- redirect_edge_and_branch_force (single_succ_edge (test_bb), join_bb);
+- delete_basic_block (then_bb);
+- num_true_changes++;
+-
+- /* Maybe merge blocks now the jump is simple enough. */
+- if (can_merge_blocks_p (test_bb, join_bb))
+- {
+- merge_blocks (test_bb, join_bb);
+- num_true_changes++;
+- }
+-
+- num_updated_if_blocks++;
+- if_info->transform_name = "noce_convert_multiple_sets";
+- return TRUE;
+-}
+-
+-/* This goes through all relevant insns of IF_INFO->then_bb and tries to
+- create conditional moves. In case a simple move sufficis the insn
+- should be listed in NEED_NO_CMOV. The rewired-src cases should be
+- specified via REWIRED_SRC. TARGETS, TEMPORARIES and UNMODIFIED_INSNS
+- are specified and used in noce_convert_multiple_sets and should be passed
+- to this function.. */
+-
+-static bool
+-noce_convert_multiple_sets_1 (struct noce_if_info *if_info,
+- hash_set *need_no_cmov,
+- hash_map *rewired_src,
+- auto_vec *targets,
+- auto_vec *temporaries,
+- auto_vec *unmodified_insns,
+- int *last_needs_comparison)
+-{
+- basic_block then_bb = if_info->then_bb;
+- rtx_insn *jump = if_info->jump;
+- rtx_insn *cond_earliest;
+-
+- /* Decompose the condition attached to the jump. */
+- rtx cond = noce_get_condition (jump, &cond_earliest, false);
+-
+- rtx cc_cmp = cond_exec_get_condition (jump);
+- rtx rev_cc_cmp = cond_exec_get_condition (jump, /* get_reversed */ true);
+-
+- rtx_insn *insn;
+ int count = 0;
+
+- targets->truncate (0);
+- temporaries->truncate (0);
+- unmodified_insns->truncate (0);
+-
+- bool second_try = *last_needs_comparison != -1;
+-
+ FOR_BB_INSNS (then_bb, insn)
+ {
+ /* Skip over non-insns. */
+@@ -3412,53 +3219,26 @@ noce_convert_multiple_sets_1 (struct noce_if_info *if_info,
+ gcc_checking_assert (set);
+
+ rtx target = SET_DEST (set);
+- rtx temp;
+-
++ rtx temp = gen_reg_rtx (GET_MODE (target));
+ rtx new_val = SET_SRC (set);
+- if (int *ii = rewired_src->get (insn))
+- new_val = simplify_replace_rtx (new_val, (*targets)[*ii],
+- (*temporaries)[*ii]);
+ rtx old_val = target;
+
+- /* As we are transforming
+- if (x > y)
+- {
+- a = b;
+- c = d;
+- }
+- into
+- a = (x > y) ...
+- c = (x > y) ...
+-
+- we potentially check x > y before every set.
+- Even though the check might be removed by subsequent passes, this means
+- that we cannot transform
+- if (x > y)
+- {
+- x = y;
+- ...
+- }
+- into
+- x = (x > y) ...
+- ...
+- since this would invalidate x and the following to-be-removed checks.
+- Therefore we introduce a temporary every time we are about to
+- overwrite a variable used in the check. Costing of a sequence with
+- these is going to be inaccurate so only use temporaries when
+- needed.
+-
+- If performing a second try, we know how many insns require a
+- temporary. For the last of these, we can omit creating one. */
+- if (reg_overlap_mentioned_p (target, cond)
+- && (!second_try || count < *last_needs_comparison))
+- temp = gen_reg_rtx (GET_MODE (target));
+- else
+- temp = target;
+-
+- /* We have identified swap-style idioms before. A normal
+- set will need to be a cmov while the first instruction of a swap-style
+- idiom can be a regular move. This helps with costing. */
+- bool need_cmov = !need_no_cmov->contains (insn);
++ /* If we were supposed to read from an earlier write in this block,
++ we've changed the register allocation. Rewire the read. While
++ we are looking, also try to catch a swap idiom. */
++ for (int i = count - 1; i >= 0; --i)
++ if (reg_overlap_mentioned_p (new_val, targets[i]))
++ {
++ /* Catch a "swap" style idiom. */
++ if (find_reg_note (insn, REG_DEAD, new_val) != NULL_RTX)
++ /* The write to targets[i] is only live until the read
++ here. As the condition codes match, we can propagate
++ the set to here. */
++ new_val = SET_SRC (single_set (unmodified_insns[i]));
++ else
++ new_val = temporaries[i];
++ break;
++ }
+
+ /* If we had a non-canonical conditional jump (i.e. one where
+ the fallthrough is to the "else" case) we need to reverse
+@@ -3478,9 +3258,7 @@ noce_convert_multiple_sets_1 (struct noce_if_info *if_info,
+ we'll end up trying to emit r4:HI = cond ? (r1:SI) : (r3:HI).
+ Wrap the two cmove operands into subregs if appropriate to prevent
+ that. */
+-
+- if (!CONSTANT_P (new_val)
+- && GET_MODE (new_val) != GET_MODE (temp))
++ if (GET_MODE (new_val) != GET_MODE (temp))
+ {
+ machine_mode src_mode = GET_MODE (new_val);
+ machine_mode dst_mode = GET_MODE (temp);
+@@ -3491,8 +3269,7 @@ noce_convert_multiple_sets_1 (struct noce_if_info *if_info,
+ }
+ new_val = lowpart_subreg (dst_mode, new_val, src_mode);
+ }
+- if (!CONSTANT_P (old_val)
+- && GET_MODE (old_val) != GET_MODE (temp))
++ if (GET_MODE (old_val) != GET_MODE (temp))
+ {
+ machine_mode src_mode = GET_MODE (old_val);
+ machine_mode dst_mode = GET_MODE (temp);
+@@ -3504,80 +3281,101 @@ noce_convert_multiple_sets_1 (struct noce_if_info *if_info,
+ old_val = lowpart_subreg (dst_mode, old_val, src_mode);
+ }
+
+- /* Try emitting a conditional move passing the backend the
+- canonicalized comparison. The backend is then able to
+- recognize expressions like
+-
+- if (x > y)
+- y = x;
+-
+- as min/max and emit an insn, accordingly. */
+- unsigned cost1 = 0, cost2 = 0;
+- rtx_insn *seq, *seq1, *seq2;
+- rtx temp_dest = NULL_RTX, temp_dest1 = NULL_RTX, temp_dest2 = NULL_RTX;
++ /* Actually emit the conditional move. */
++ rtx temp_dest = noce_emit_cmove (if_info, temp, cond_code,
++ x, y, new_val, old_val);
+
+- seq1 = try_emit_cmove_seq (if_info, temp, cond,
+- new_val, old_val, need_cmov,
+- &cost1, &temp_dest1);
+-
+- /* Here, we try to pass the backend a non-canonicalized cc comparison
+- as well. This allows the backend to emit a cmov directly without
+- creating an additional compare for each. If successful, costing
+- is easier and this sequence is usually preferred. */
+- seq2 = try_emit_cmove_seq (if_info, target, cond,
+- new_val, old_val, need_cmov,
+- &cost2, &temp_dest2, cc_cmp, rev_cc_cmp);
+-
+- /* Check which version is less expensive. */
+- if (seq1 != NULL_RTX && (cost1 <= cost2 || seq2 == NULL_RTX))
+- {
+- seq = seq1;
+- temp_dest = temp_dest1;
+- if (!second_try)
+- *last_needs_comparison = count;
+- }
+- else if (seq2 != NULL_RTX)
+- {
+- seq = seq2;
+- temp_dest = temp_dest2;
+- }
+- else
++ /* If we failed to expand the conditional move, drop out and don't
++ try to continue. */
++ if (temp_dest == NULL_RTX)
+ {
+- /* Nothing worked, bail out. */
+ end_sequence ();
+ return FALSE;
+ }
+
+- /* End the sub sequence and emit to the main sequence. */
+- emit_insn (seq);
+-
+ /* Bookkeeping. */
+ count++;
+- targets->safe_push (target);
+- temporaries->safe_push (temp_dest);
+- unmodified_insns->safe_push (insn);
++ targets.safe_push (target);
++ temporaries.safe_push (temp_dest);
++ unmodified_insns.safe_push (insn);
+ }
+
+- return true;
+-}
++ /* We must have seen some sort of insn to insert, otherwise we were
++ given an empty BB to convert, and we can't handle that. */
++ gcc_assert (!unmodified_insns.is_empty ());
++
++ /* Now fixup the assignments. */
++ for (int i = 0; i < count; i++)
++ noce_emit_move_insn (targets[i], temporaries[i]);
++
++ /* Actually emit the sequence if it isn't too expensive. */
++ rtx_insn *seq = get_insns ();
++
++ if (!targetm.noce_conversion_profitable_p (seq, if_info))
++ {
++ end_sequence ();
++ return FALSE;
++ }
++
++ for (insn = seq; insn; insn = NEXT_INSN (insn))
++ set_used_flags (insn);
++
++ /* Mark all our temporaries and targets as used. */
++ for (int i = 0; i < count; i++)
++ {
++ set_used_flags (temporaries[i]);
++ set_used_flags (targets[i]);
++ }
+
++ set_used_flags (cond);
++ set_used_flags (x);
++ set_used_flags (y);
+
++ unshare_all_rtl_in_chain (seq);
++ end_sequence ();
++
++ if (!seq)
++ return FALSE;
++
++ for (insn = seq; insn; insn = NEXT_INSN (insn))
++ if (JUMP_P (insn)
++ || recog_memoized (insn) == -1)
++ return FALSE;
++
++ emit_insn_before_setloc (seq, if_info->jump,
++ INSN_LOCATION (unmodified_insns.last ()));
++
++ /* Clean up THEN_BB and the edges in and out of it. */
++ remove_edge (find_edge (test_bb, join_bb));
++ remove_edge (find_edge (then_bb, join_bb));
++ redirect_edge_and_branch_force (single_succ_edge (test_bb), join_bb);
++ delete_basic_block (then_bb);
++ num_true_changes++;
++
++ /* Maybe merge blocks now the jump is simple enough. */
++ if (can_merge_blocks_p (test_bb, join_bb))
++ {
++ merge_blocks (test_bb, join_bb);
++ num_true_changes++;
++ }
++
++ num_updated_if_blocks++;
++ if_info->transform_name = "noce_convert_multiple_sets";
++ return TRUE;
++}
+
+ /* Return true iff basic block TEST_BB is comprised of only
+ (SET (REG) (REG)) insns suitable for conversion to a series
+ of conditional moves. Also check that we have more than one set
+ (other routines can handle a single set better than we would), and
+- fewer than PARAM_MAX_RTL_IF_CONVERSION_INSNS sets. While going
+- through the insns store the sum of their potential costs in COST. */
++ fewer than PARAM_MAX_RTL_IF_CONVERSION_INSNS sets. */
+
+ static bool
+-bb_ok_for_noce_convert_multiple_sets (basic_block test_bb, unsigned *cost)
++bb_ok_for_noce_convert_multiple_sets (basic_block test_bb)
+ {
+ rtx_insn *insn;
+ unsigned count = 0;
+ unsigned param = param_max_rtl_if_conversion_insns;
+- bool speed_p = optimize_bb_for_speed_p (test_bb);
+- unsigned potential_cost = 0;
+
+ FOR_BB_INSNS (test_bb, insn)
+ {
+@@ -3600,9 +3398,9 @@ bb_ok_for_noce_convert_multiple_sets (basic_block test_bb, unsigned *cost)
+ if (!REG_P (dest))
+ return false;
+
+- if (!((REG_P (src) || CONSTANT_P (src))
+- || (GET_CODE (src) == SUBREG && REG_P (SUBREG_REG (src))
+- && subreg_lowpart_p (src))))
++ if (!(REG_P (src)
++ || (GET_CODE (src) == SUBREG && REG_P (SUBREG_REG (src))
++ && subreg_lowpart_p (src))))
+ return false;
+
+ /* Destination must be appropriate for a conditional write. */
+@@ -3613,13 +3411,9 @@ bb_ok_for_noce_convert_multiple_sets (basic_block test_bb, unsigned *cost)
+ if (!can_conditionally_move_p (GET_MODE (dest)))
+ return false;
+
+- potential_cost += insn_cost (insn, speed_p);
+-
+ count++;
+ }
+
+- *cost += potential_cost;
+-
+ /* If we would only put out one conditional move, the other strategies
+ this pass tries are better optimized and will be more appropriate.
+ Some targets want to strictly limit the number of conditional moves
+@@ -3667,24 +3461,11 @@ noce_process_if_block (struct noce_if_info *if_info)
+ to calculate a value for x.
+ ??? For future expansion, further expand the "multiple X" rules. */
+
+- /* First look for multiple SETS. The original costs already include
+- a base cost of COSTS_N_INSNS (2): one instruction for the compare
+- (which we will be needing either way) and one instruction for the
+- branch. When comparing costs we want to use the branch instruction
+- cost and the sets vs. the cmovs generated here. Therefore subtract
+- the costs of the compare before checking.
+- ??? Actually, instead of the branch instruction costs we might want
+- to use COSTS_N_INSNS (BRANCH_COST ()) as in other places. */
+-
+- unsigned potential_cost = if_info->original_cost - COSTS_N_INSNS (1);
+- unsigned old_cost = if_info->original_cost;
++ /* First look for multiple SETS. */
+ if (!else_bb
+ && HAVE_conditional_move
+- && bb_ok_for_noce_convert_multiple_sets (then_bb, &potential_cost))
++ && bb_ok_for_noce_convert_multiple_sets (then_bb))
+ {
+- /* Temporarily set the original costs to what we estimated so
+- we can determine if the transformation is worth it. */
+- if_info->original_cost = potential_cost;
+ if (noce_convert_multiple_sets (if_info))
+ {
+ if (dump_file && if_info->transform_name)
+@@ -3692,9 +3473,6 @@ noce_process_if_block (struct noce_if_info *if_info)
+ if_info->transform_name);
+ return TRUE;
+ }
+-
+- /* Restore the original costs. */
+- if_info->original_cost = old_cost;
+ }
+
+ bool speed_p = optimize_bb_for_speed_p (test_bb);
+@@ -4036,89 +3814,6 @@ check_cond_move_block (basic_block bb,
+ return TRUE;
+ }
+
+-/* Find local swap-style idioms in BB and mark the first insn (1)
+- that is only a temporary as not needing a conditional move as
+- it is going to be dead afterwards anyway.
+-
+- (1) int tmp = a;
+- a = b;
+- b = tmp;
+-
+- ifcvt
+- -->
+-
+- tmp = a;
+- a = cond ? b : a_old;
+- b = cond ? tmp : b_old;
+-
+- Additionally, store the index of insns like (2) when a subsequent
+- SET reads from their destination.
+-
+- (2) int c = a;
+- int d = c;
+-
+- ifcvt
+- -->
+-
+- c = cond ? a : c_old;
+- d = cond ? d : c; // Need to use c rather than c_old here.
+-*/
+-
+-static void
+-need_cmov_or_rewire (basic_block bb,
+- hash_set *need_no_cmov,
+- hash_map *rewired_src)
+-{
+- rtx_insn *insn;
+- int count = 0;
+- auto_vec insns;
+- auto_vec dests;
+-
+- /* Iterate over all SETs, storing the destinations
+- in DEST.
+- - If we hit a SET that reads from a destination
+- that we have seen before and the corresponding register
+- is dead afterwards, the register does not need to be
+- moved conditionally.
+- - If we encounter a previously changed register,
+- rewire the read to the original source. */
+- FOR_BB_INSNS (bb, insn)
+- {
+- rtx set, src, dest;
+-
+- if (!active_insn_p (insn))
+- continue;
+-
+- set = single_set (insn);
+- if (set == NULL_RTX)
+- continue;
+-
+- src = SET_SRC (set);
+- if (SUBREG_P (src))
+- src = SUBREG_REG (src);
+- dest = SET_DEST (set);
+-
+- /* Check if the current SET's source is the same
+- as any previously seen destination.
+- This is quadratic but the number of insns in BB
+- is bounded by PARAM_MAX_RTL_IF_CONVERSION_INSNS. */
+- if (REG_P (src))
+- for (int i = count - 1; i >= 0; --i)
+- if (reg_overlap_mentioned_p (src, dests[i]))
+- {
+- if (find_reg_note (insn, REG_DEAD, src) != NULL_RTX)
+- need_no_cmov->add (insns[i]);
+- else
+- rewired_src->put (insn, i);
+- }
+-
+- insns.safe_push (insn);
+- dests.safe_push (dest);
+-
+- count++;
+- }
+-}
+-
+ /* Given a basic block BB suitable for conditional move conversion,
+ a condition COND, and pointer maps THEN_VALS and ELSE_VALS containing
+ the register values depending on COND, emit the insns in the block as
+--- gcc/optabs.cc
++++ gcc/optabs.cc
+@@ -52,8 +52,6 @@ static void prepare_float_lib_cmp (rtx, rtx, enum rtx_code, rtx *,
+ static rtx expand_unop_direct (machine_mode, optab, rtx, rtx, int);
+ static void emit_libcall_block_1 (rtx_insn *, rtx, rtx, rtx, bool);
+
+-static rtx emit_conditional_move_1 (rtx, rtx, rtx, rtx, machine_mode);
+-
+ /* Debug facility for use in GDB. */
+ void debug_optab_libfuncs (void);
+
+@@ -626,13 +624,12 @@ expand_doubleword_shift_condmove (scalar_int_mode op1_mode, optab binoptab,
+
+ /* Select between them. Do the INTO half first because INTO_SUPERWORD
+ might be the current value of OUTOF_TARGET. */
+- if (!emit_conditional_move (into_target, { cmp_code, cmp1, cmp2, op1_mode },
++ if (!emit_conditional_move (into_target, cmp_code, cmp1, cmp2, op1_mode,
+ into_target, into_superword, word_mode, false))
+ return false;
+
+ if (outof_target != 0)
+- if (!emit_conditional_move (outof_target,
+- { cmp_code, cmp1, cmp2, op1_mode },
++ if (!emit_conditional_move (outof_target, cmp_code, cmp1, cmp2, op1_mode,
+ outof_target, outof_superword,
+ word_mode, false))
+ return false;
+@@ -4854,8 +4851,8 @@ emit_indirect_jump (rtx loc)
+ is not supported. */
+
+ rtx
+-emit_conditional_move (rtx target, struct rtx_comparison comp,
+- rtx op2, rtx op3,
++emit_conditional_move (rtx target, enum rtx_code code, rtx op0, rtx op1,
++ machine_mode cmode, rtx op2, rtx op3,
+ machine_mode mode, int unsignedp)
+ {
+ rtx comparison;
+@@ -4877,33 +4874,31 @@ emit_conditional_move (rtx target, struct rtx_comparison comp,
+ /* If one operand is constant, make it the second one. Only do this
+ if the other operand is not constant as well. */
+
+- if (swap_commutative_operands_p (comp.op0, comp.op1))
++ if (swap_commutative_operands_p (op0, op1))
+ {
+- std::swap (comp.op0, comp.op1);
+- comp.code = swap_condition (comp.code);
++ std::swap (op0, op1);
++ code = swap_condition (code);
+ }
+
+ /* get_condition will prefer to generate LT and GT even if the old
+ comparison was against zero, so undo that canonicalization here since
+ comparisons against zero are cheaper. */
++ if (code == LT && op1 == const1_rtx)
++ code = LE, op1 = const0_rtx;
++ else if (code == GT && op1 == constm1_rtx)
++ code = GE, op1 = const0_rtx;
+
+- if (comp.code == LT && comp.op1 == const1_rtx)
+- comp.code = LE, comp.op1 = const0_rtx;
+- else if (comp.code == GT && comp.op1 == constm1_rtx)
+- comp.code = GE, comp.op1 = const0_rtx;
+-
+- if (comp.mode == VOIDmode)
+- comp.mode = GET_MODE (comp.op0);
++ if (cmode == VOIDmode)
++ cmode = GET_MODE (op0);
+
+- enum rtx_code orig_code = comp.code;
++ enum rtx_code orig_code = code;
+ bool swapped = false;
+ if (swap_commutative_operands_p (op2, op3)
+- && ((reversed =
+- reversed_comparison_code_parts (comp.code, comp.op0, comp.op1, NULL))
+- != UNKNOWN))
++ && ((reversed = reversed_comparison_code_parts (code, op0, op1, NULL))
++ != UNKNOWN))
+ {
+ std::swap (op2, op3);
+- comp.code = reversed;
++ code = reversed;
+ swapped = true;
+ }
+
+@@ -4920,10 +4915,8 @@ emit_conditional_move (rtx target, struct rtx_comparison comp,
+
+ for (int pass = 0; ; pass++)
+ {
+- comp.code = unsignedp ? unsigned_condition (comp.code) : comp.code;
+- comparison =
+- simplify_gen_relational (comp.code, VOIDmode,
+- comp.mode, comp.op0, comp.op1);
++ code = unsignedp ? unsigned_condition (code) : code;
++ comparison = simplify_gen_relational (code, VOIDmode, cmode, op0, op1);
+
+ /* We can get const0_rtx or const_true_rtx in some circumstances. Just
+ punt and let the caller figure out how best to deal with this
+@@ -4934,16 +4927,24 @@ emit_conditional_move (rtx target, struct rtx_comparison comp,
+ save_pending_stack_adjust (&save);
+ last = get_last_insn ();
+ do_pending_stack_adjust ();
+- machine_mode cmpmode = comp.mode;
++ machine_mode cmpmode = cmode;
+ prepare_cmp_insn (XEXP (comparison, 0), XEXP (comparison, 1),
+ GET_CODE (comparison), NULL_RTX, unsignedp,
+ OPTAB_WIDEN, &comparison, &cmpmode);
+ if (comparison)
+ {
+- rtx res = emit_conditional_move_1 (target, comparison,
+- op2, op3, mode);
+- if (res != NULL_RTX)
+- return res;
++ class expand_operand ops[4];
++
++ create_output_operand (&ops[0], target, mode);
++ create_fixed_operand (&ops[1], comparison);
++ create_input_operand (&ops[2], op2, mode);
++ create_input_operand (&ops[3], op3, mode);
++ if (maybe_expand_insn (icode, 4, ops))
++ {
++ if (ops[0].value != target)
++ convert_move (target, ops[0].value, false);
++ return target;
++ }
+ }
+ delete_insns_since (last);
+ restore_pending_stack_adjust (&save);
+@@ -4955,88 +4956,17 @@ emit_conditional_move (rtx target, struct rtx_comparison comp,
+ /* If the preferred op2/op3 order is not usable, retry with other
+ operand order, perhaps it will expand successfully. */
+ if (swapped)
+- comp.code = orig_code;
+- else if ((reversed =
+- reversed_comparison_code_parts (orig_code, comp.op0, comp.op1,
++ code = orig_code;
++ else if ((reversed = reversed_comparison_code_parts (orig_code, op0, op1,
+ NULL))
+ != UNKNOWN)
+- comp.code = reversed;
++ code = reversed;
+ else
+ return NULL_RTX;
+ std::swap (op2, op3);
+ }
+ }
+
+-/* Helper function that, in addition to COMPARISON, also tries
+- the reversed REV_COMPARISON with swapped OP2 and OP3. As opposed
+- to when we pass the specific constituents of a comparison, no
+- additional insns are emitted for it. It might still be necessary
+- to emit more than one insn for the final conditional move, though. */
+-
+-rtx
+-emit_conditional_move (rtx target, rtx comparison, rtx rev_comparison,
+- rtx op2, rtx op3, machine_mode mode)
+-{
+- rtx res = emit_conditional_move_1 (target, comparison, op2, op3, mode);
+-
+- if (res != NULL_RTX)
+- return res;
+-
+- return emit_conditional_move_1 (target, rev_comparison, op3, op2, mode);
+-}
+-
+-/* Helper for emitting a conditional move. */
+-
+-static rtx
+-emit_conditional_move_1 (rtx target, rtx comparison,
+- rtx op2, rtx op3, machine_mode mode)
+-{
+- enum insn_code icode;
+-
+- if (comparison == NULL_RTX || !COMPARISON_P (comparison))
+- return NULL_RTX;
+-
+- /* If the two source operands are identical, that's just a move.
+- As the comparison comes in non-canonicalized, we must make
+- sure not to discard any possible side effects. If there are
+- side effects, just let the target handle it. */
+- if (!side_effects_p (comparison) && rtx_equal_p (op2, op3))
+- {
+- if (!target)
+- target = gen_reg_rtx (mode);
+-
+- emit_move_insn (target, op3);
+- return target;
+- }
+-
+- if (mode == VOIDmode)
+- mode = GET_MODE (op2);
+-
+- icode = direct_optab_handler (movcc_optab, mode);
+-
+- if (icode == CODE_FOR_nothing)
+- return NULL_RTX;
+-
+- if (!target)
+- target = gen_reg_rtx (mode);
+-
+- class expand_operand ops[4];
+-
+- create_output_operand (&ops[0], target, mode);
+- create_fixed_operand (&ops[1], comparison);
+- create_input_operand (&ops[2], op2, mode);
+- create_input_operand (&ops[3], op3, mode);
+-
+- if (maybe_expand_insn (icode, 4, ops))
+- {
+- if (ops[0].value != target)
+- convert_move (target, ops[0].value, false);
+- return target;
+- }
+-
+- return NULL_RTX;
+-}
+-
+
+ /* Emit a conditional negate or bitwise complement using the
+ negcc or notcc optabs if available. Return NULL_RTX if such operations
+--- gcc/optabs.h
++++ gcc/optabs.h
+@@ -279,8 +279,8 @@ extern void emit_indirect_jump (rtx);
+ #endif
+
+ /* Emit a conditional move operation. */
+-rtx emit_conditional_move (rtx, rtx_comparison, rtx, rtx, machine_mode, int);
+-rtx emit_conditional_move (rtx, rtx, rtx, rtx, rtx, machine_mode);
++rtx emit_conditional_move (rtx, enum rtx_code, rtx, rtx, machine_mode,
++ rtx, rtx, machine_mode, int);
+
+ /* Emit a conditional negate or bitwise complement operation. */
+ rtx emit_conditional_neg_or_complement (rtx, rtx_code, machine_mode, rtx,
+--- gcc/rtl.h
++++ gcc/rtl.h
+@@ -4604,16 +4604,7 @@ word_register_operation_p (const_rtx x)
+ return true;
+ }
+ }
+-
+-/* Holds an rtx comparison to simplify passing many parameters pertaining to a
+- single comparison. */
+-
+-struct rtx_comparison {
+- rtx_code code;
+- rtx op0, op1;
+- machine_mode mode;
+-};
+-
++
+ /* gtype-desc.cc. */
+ extern void gt_ggc_mx (rtx &);
+ extern void gt_pch_nx (rtx &);
diff --git a/gcc12-pr104025.patch b/gcc12-pr104025.patch
deleted file mode 100644
index 3010236..0000000
--- a/gcc12-pr104025.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-2022-01-18 Jakub Jelinek
-
- PR c++/104025
- * parser.cc (cp_parser_id_expression): Save and restore input_location
- around cp_parser_skip_entire_template_parameter_list call for
- -Wmissing-template-keyword.
-
- * g++.dg/warn/pr104025.C: New test.
-
---- gcc/cp/parser.cc.jj 2022-01-17 18:05:04.797307506 +0100
-+++ gcc/cp/parser.cc 2022-01-17 20:27:33.642711859 +0100
-@@ -6254,6 +6254,7 @@ cp_parser_id_expression (cp_parser *pars
- OPT_Wmissing_template_keyword))
- {
- saved_token_sentinel toks (parser->lexer, STS_ROLLBACK);
-+ iloc_sentinel ils (UNKNOWN_LOCATION);
- if (cp_parser_skip_entire_template_parameter_list (parser)
- /* An operator after the > suggests that the > ends a
- template-id; a name or literal suggests that the > is an
---- gcc/testsuite/g++.dg/warn/pr104025.C.jj 2022-01-17 20:31:17.320591249 +0100
-+++ gcc/testsuite/g++.dg/warn/pr104025.C 2022-01-17 20:31:09.068706373 +0100
-@@ -0,0 +1,20 @@
-+// PR c++/104025
-+// { dg-do compile }
-+// { dg-options "-Wmissing-template-keyword -fcompare-debug" }
-+
-+void bar (int);
-+
-+struct S { int i; };
-+
-+template
-+struct T
-+{
-+ int m;
-+ C c;
-+ void foo ()
-+ {
-+ bar (c.i < m);
-+ }
-+};
-+
-+template void T::foo ();
diff --git a/gcc12-pr104103.patch b/gcc12-pr104103.patch
deleted file mode 100644
index cdf421d..0000000
--- a/gcc12-pr104103.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-2022-01-18 Jakub Jelinek
-
- PR middle-end/104103
- * gimple-ssa-warn-access.cc (pass_waccess::check_call): Don't check
- .ASAN_MARK calls.
-
---- gcc/gimple-ssa-warn-access.cc.jj 2022-01-16 20:55:46.783932110 +0100
-+++ gcc/gimple-ssa-warn-access.cc 2022-01-18 20:56:13.697780325 +0100
-@@ -4232,6 +4232,11 @@ pass_waccess::check_call (gcall *stmt)
- if (gimple_call_builtin_p (stmt, BUILT_IN_NORMAL))
- check_builtin (stmt);
-
-+ /* .ASAN_MARK doesn't access any vars, only modifies shadow memory. */
-+ if (gimple_call_internal_p (stmt)
-+ && gimple_call_internal_fn (stmt) == IFN_ASAN_MARK)
-+ return;
-+
- if (!m_early_checks_p)
- if (tree callee = gimple_call_fndecl (stmt))
- {
diff --git a/gcc12-pr104104.patch b/gcc12-pr104104.patch
deleted file mode 100644
index d81b3f0..0000000
--- a/gcc12-pr104104.patch
+++ /dev/null
@@ -1,121 +0,0 @@
-2022-01-18 Jakub Jelinek
-
- PR target/104104
- * config/i386/sse.md
- (__,
- avx512fp16_sh_v8hf,
- avx512dq_mul3, _permvar,
- avx2_perm_1, avx512f_perm_1,
- avx512dq_rangep,
- avx512dq_ranges,
- _getmant,
- avx512f_vgetmant):
- Use vxorps\t%x0, %x0, %x0 instead of vxorps\t{%x0, %x0, %x0}.
-
- * gcc.target/i386/pr104104.c: New test.
-
---- gcc/config/i386/sse.md.jj 2022-01-18 11:58:59.156988142 +0100
-+++ gcc/config/i386/sse.md 2022-01-18 21:20:40.022477778 +0100
-@@ -6539,7 +6539,7 @@ (define_insn "__<
- {
- if (TARGET_DEST_FALSE_DEP_FOR_GLC
- && )
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "v\t{%2, %1, %0|%0, %1, %2}";
- }
- [(set_attr "type" "ssemul")
-@@ -6750,7 +6750,7 @@ (define_insn "avx512fp16_
- {
- if (TARGET_DEST_FALSE_DEP_FOR_GLC
- && )
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vsh\t{%2, %1, %0|%0, %1, %2}";
- }
- [(set_attr "type" "ssemul")
-@@ -15222,7 +15222,7 @@ (define_insn "avx512dq_mul3
- && !reg_mentioned_p (operands[0], operands[1])
- && !reg_mentioned_p (operands[0], operands[2]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vpmullq\t{%2, %1, %0|%0, %1, %2}";
- }
- [(set_attr "type" "sseimul")
-@@ -24658,7 +24658,7 @@ (define_insn "_permvar
- && !reg_mentioned_p (operands[0], operands[1])
- && !reg_mentioned_p (operands[0], operands[2]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vperm\t{%1, %2, %0|%0, %2, %1}";
- }
- [(set_attr "type" "sselog")
-@@ -24900,7 +24900,7 @@ (define_insn "avx2_perm_1
- && !reg_mentioned_p (operands[0], operands[1]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vperm\t{%2, %1, %0|%0, %1, %2}";
- }
- [(set_attr "type" "sselog")
-@@ -24975,7 +24975,7 @@ (define_insn "avx512f_perm_1
- && !reg_mentioned_p (operands[0], operands[1]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vperm\t{%2, %1, %0|%0, %1, %2}";
- }
- [(set_attr "type" "sselog")
-@@ -26880,7 +26880,7 @@ (define_insn "avx512dq_rangep
- && !reg_mentioned_p (operands[0], operands[1])
- && !reg_mentioned_p (operands[0], operands[2]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vrange\t{%3, %2, %1, %0|%0, %1, %2, %3}";
- }
- [(set_attr "type" "sse")
-@@ -26903,7 +26903,7 @@ (define_insn "avx512dq_ranges
- && !reg_mentioned_p (operands[0], operands[1])
- && !reg_mentioned_p (operands[0], operands[2]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vrange\t{%3, %2, %1, %0|%0, %1, %2, %3}";
- }
- [(set_attr "type" "sse")
-@@ -26949,7 +26949,7 @@ (define_insn "_getmant
- && MEM_P (operands[1]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vgetmant\t{%2, %1, %0|%0, %1, %2}";
- }
- [(set_attr "prefix" "evex")
-@@ -26971,7 +26971,7 @@ (define_insn "avx512f_vgetmant
- && !reg_mentioned_p (operands[0], operands[1])
- && !reg_mentioned_p (operands[0], operands[2]))
-- output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
-+ output_asm_insn ("vxorps\t%x0, %x0, %x0", operands);
- return "vgetmant\t{%3, %2, %1, %0|%0, %1, %2, %3}";
- }
- [(set_attr "prefix" "evex")
---- gcc/testsuite/gcc.target/i386/pr104104.c.jj 2022-01-18 21:38:17.007906673 +0100
-+++ gcc/testsuite/gcc.target/i386/pr104104.c 2022-01-18 21:36:10.475623148 +0100
-@@ -0,0 +1,10 @@
-+/* PR target/104104 */
-+/* { dg-do assemble { target vect_simd_clones } } */
-+/* { dg-require-effective-target masm_intel } */
-+/* { dg-options "-march=alderlake -masm=intel -O1 -fallow-store-data-races -funroll-all-loops" } */
-+
-+__attribute__ ((simd)) short int
-+foo (void)
-+{
-+ return 0;
-+}
diff --git a/gcc12-pr104194.patch b/gcc12-pr104194.patch
new file mode 100644
index 0000000..f0747c7
--- /dev/null
+++ b/gcc12-pr104194.patch
@@ -0,0 +1,92 @@
+2022-01-25 Jakub Jelinek
+
+ PR debug/104194
+ * dwarf2out.cc (long_double_as_float128): New function.
+ (modified_type_die): For powerpc64le IEEE 754 quad long double
+ and complex long double emit those as DW_TAG_typedef to
+ _Float128 or complex _Float128 base type.
+
+--- gcc/dwarf2out.cc.jj 2022-01-25 05:47:53.987454934 +0100
++++ gcc/dwarf2out.cc 2022-01-25 11:54:25.100522089 +0100
+@@ -13568,6 +13568,47 @@ qualified_die_p (dw_die_ref die, int *ma
+ return type;
+ }
+
++/* If TYPE is long double or complex long double that
++ should be emitted as artificial typedef to _Float128 or
++ complex _Float128, return the type it should be emitted as.
++ This is done in case the target already supports 16-byte
++ composite floating point type (ibm_extended_format). */
++
++static tree
++long_double_as_float128 (tree type)
++{
++ if (type != long_double_type_node
++ && type != complex_long_double_type_node)
++ return NULL_TREE;
++
++ machine_mode mode, fmode;
++ if (TREE_CODE (type) == COMPLEX_TYPE)
++ mode = TYPE_MODE (TREE_TYPE (type));
++ else
++ mode = TYPE_MODE (type);
++ if (known_eq (GET_MODE_SIZE (mode), 16) && !MODE_COMPOSITE_P (mode))
++ FOR_EACH_MODE_IN_CLASS (fmode, MODE_FLOAT)
++ if (known_eq (GET_MODE_SIZE (fmode), 16)
++ && MODE_COMPOSITE_P (fmode))
++ {
++ if (type == long_double_type_node)
++ {
++ if (float128_type_node
++ && (TYPE_MODE (float128_type_node)
++ == TYPE_MODE (type)))
++ return float128_type_node;
++ return NULL_TREE;
++ }
++ for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
++ if (COMPLEX_FLOATN_NX_TYPE_NODE (i) != NULL_TREE
++ && (TYPE_MODE (COMPLEX_FLOATN_NX_TYPE_NODE (i))
++ == TYPE_MODE (type)))
++ return COMPLEX_FLOATN_NX_TYPE_NODE (i);
++ }
++
++ return NULL_TREE;
++}
++
+ /* Given a pointer to an arbitrary ..._TYPE tree node, return a debugging
+ entry that chains the modifiers specified by CV_QUALS in front of the
+ given type. REVERSE is true if the type is to be interpreted in the
+@@ -13848,7 +13889,32 @@ modified_type_die (tree type, int cv_qua
+ }
+ else if (is_base_type (type))
+ {
+- mod_type_die = base_type_die (type, reverse);
++ /* If a target supports long double as different floating point
++ modes with the same 16-byte size, use normal DW_TAG_base_type
++ only for the composite (ibm_extended_real_format) type and
++ for the other for the time being emit instead a "_Float128"
++ or "complex _Float128" DW_TAG_base_type and a "long double"
++ or "complex long double" typedef to it. */
++ if (tree other_type = long_double_as_float128 (type))
++ {
++ dw_die_ref other_die;
++ if (TYPE_NAME (other_type))
++ other_die
++ = modified_type_die (other_type, TYPE_UNQUALIFIED, reverse,
++ context_die);
++ else
++ {
++ other_die = base_type_die (type, reverse);
++ add_child_die (comp_unit_die (), other_die);
++ add_name_attribute (other_die,
++ TREE_CODE (type) == COMPLEX_TYPE
++ ? "complex _Float128" : "_Float128");
++ }
++ mod_type_die = new_die_raw (DW_TAG_typedef);
++ add_AT_die_ref (mod_type_die, DW_AT_type, other_die);
++ }
++ else
++ mod_type_die = base_type_die (type, reverse);
+
+ /* The DIE with DW_AT_endianity is placed right after the naked DIE. */
+ if (reverse_base_type)
diff --git a/gcc12-pr94193.patch b/gcc12-pr94193.patch
new file mode 100644
index 0000000..e669a81
--- /dev/null
+++ b/gcc12-pr94193.patch
@@ -0,0 +1,39 @@
+2022-01-25 Jakub Jelinek
+
+ PR target/94193
+ * config/rs6000/rs6000.md (feclearexceptsi, feraiseexceptsi):
+ Use general_operand instead of const_int_operand, drop constraint
+ and FAIL if operands[1] is not CONST_INT_P.
+
+--- gcc/config/rs6000/rs6000.md.jj 2022-01-25 05:48:01.497340303 +0100
++++ gcc/config/rs6000/rs6000.md 2022-01-25 13:48:13.752709482 +0100
+@@ -6959,12 +6959,12 @@ (define_expand "fegetroundsi"
+ ;; Because of these restrictions, this only expands on the desired
+ ;; cases and fallback to a call to libc on any other case.
+ (define_expand "feclearexceptsi"
+- [(use (match_operand:SI 1 "const_int_operand" "n"))
++ [(use (match_operand:SI 1 "general_operand"))
+ (set (match_operand:SI 0 "gpc_reg_operand")
+ (const_int 0))]
+ "TARGET_HARD_FLOAT"
+ {
+- if (!OPTION_GLIBC)
++ if (!OPTION_GLIBC || !CONST_INT_P (operands[1]))
+ FAIL;
+
+ unsigned int fe = INTVAL (operands[1]);
+@@ -6999,12 +6999,12 @@ (define_expand "feclearexceptsi"
+ ;; Because of these restrictions, this only expands on the desired
+ ;; cases and fallback to a call to libc on any other case.
+ (define_expand "feraiseexceptsi"
+- [(use (match_operand:SI 1 "const_int_operand" "n"))
++ [(use (match_operand:SI 1 "general_operand"))
+ (set (match_operand:SI 0 "gpc_reg_operand")
+ (const_int 0))]
+ "TARGET_HARD_FLOAT"
+ {
+- if (!OPTION_GLIBC)
++ if (!OPTION_GLIBC || !CONST_INT_P (operands[1]))
+ FAIL;
+
+ unsigned int fe = INTVAL (operands[1]);
diff --git a/sources b/sources
index 43d2957..fcd533a 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-12.0.1-20220118.tar.xz) = 5fab239e915e71a8986a122e3f897f2236f21f0f183da33cad2ace8f34823cd8f32c7c0dfceffbfeae17cd99b656f242d30ddeb94eaafe3edf858ea88ec59016
+SHA512 (gcc-12.0.1-20220125.tar.xz) = 09c4b7d7fe3e8a2c0f4181da717e476c0868b2bb1c86cdd22482ee4235aebb9eb0c89b5f87b9a0e6852e0cc2876b652c60457996a86dc6e9b9b02ca2ff87613f
SHA512 (isl-0.18.tar.bz2) = 85d0b40f4dbf14cb99d17aa07048cdcab2dc3eb527d2fbb1e84c41b2de5f351025370e57448b63b2b8a8cf8a0843a089c3263f9baee1542d5c2e1cb37ed39d94
SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) = 002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) = f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
From 7e47121cf7dc9330f7e6b32ef1fab8dad37a9702 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 25 Jan 2022 14:26:06 +0100
Subject: [PATCH 011/215] 12.0.1-0.3
---
gcc.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc.spec b/gcc.spec
index 49a94f6..c788889 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -3156,7 +3156,7 @@ end
%endif
%changelog
-* Tue Jan 24 2022 Jakub Jelinek 12.0.1-0.3
+* Tue Jan 25 2022 Jakub Jelinek 12.0.1-0.3
- update from trunk
- PRs ada/103538, analyzer/94362, analyzer/103685, analyzer/104062,
analyzer/104089, analyzer/104150, analyzer/104159, bootstrap/104135,
From f5c21772fcce386eafbc1fa45a6321254a572dd8 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 25 Jan 2022 15:24:01 +0100
Subject: [PATCH 012/215] 12.0.1-0.3
---
gcc12-Wno-format-security.patch | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc12-Wno-format-security.patch b/gcc12-Wno-format-security.patch
index 3abf63b..43e482a 100644
--- a/gcc12-Wno-format-security.patch
+++ b/gcc12-Wno-format-security.patch
@@ -10,7 +10,7 @@
--- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100
+++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100
-@@ -480,7 +480,7 @@ AC_ARG_ENABLE(build-format-warnings,
+@@ -570,7 +570,7 @@ AC_ARG_ENABLE(build-format-warnings,
AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
[],[enable_build_format_warnings=yes])
AS_IF([test $enable_build_format_warnings = no],
@@ -18,10 +18,10 @@
+ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
ACX_PROG_CXX_WARNING_OPTS(
m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
- [-Wcast-qual -Wno-error=format-diag $wf_opt])),
+ [-Wcast-qual $wf_opt])),
--- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100
+++ gcc/configure 2017-02-25 12:42:50.041946391 +0100
-@@ -6647,7 +6647,7 @@ else
+@@ -7077,7 +7077,7 @@ else
fi
if test $enable_build_format_warnings = no; then :
From 66ac9cc1b62a4ac8582403acc5b7a572b8f354df Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 25 Jan 2022 16:15:16 +0100
Subject: [PATCH 013/215] Fix gitrev.
---
gcc.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc.spec b/gcc.spec
index c788889..805b3e8 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
%global DATE 20220125
-%global gitrev c682bc883d1a29c3f697f065af23759f3d6757bc
+%global gitrev 03182470d2d2b272f06500184acab6b8ed78d8ad
%global gcc_version 12.0.1
%global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to
From 398138b5f3809856b98eb4241b3c9f70da3fce9b Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Sat, 29 Jan 2022 11:05:44 +0100
Subject: [PATCH 014/215] 12.0.1-0.4
---
.gitignore | 1 +
gcc.spec | 47 +++++++--
gcc12-pr103514-revert.patch | 27 +++++
gcc12-pr104194.patch | 92 -----------------
gcc12-pr104253.patch | 200 ++++++++++++++++++++++++++++++++++++
gcc12-pr94193.patch | 39 -------
gcc12-pr95424-revert.patch | 27 +++++
sources | 2 +-
8 files changed, 295 insertions(+), 140 deletions(-)
create mode 100644 gcc12-pr103514-revert.patch
delete mode 100644 gcc12-pr104194.patch
create mode 100644 gcc12-pr104253.patch
delete mode 100644 gcc12-pr94193.patch
create mode 100644 gcc12-pr95424-revert.patch
diff --git a/.gitignore b/.gitignore
index 990b516..147c853 100644
--- a/.gitignore
+++ b/.gitignore
@@ -59,3 +59,4 @@
/gcc-12.0.0-20220115.tar.xz
/gcc-12.0.1-20220118.tar.xz
/gcc-12.0.1-20220125.tar.xz
+/gcc-12.0.1-20220129.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 805b3e8..c7723e4 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20220125
-%global gitrev 03182470d2d2b272f06500184acab6b8ed78d8ad
+%global DATE 20220129
+%global gitrev 8b49e9256e108bb3d436946b481cfa6bb11bd1c8
%global gcc_version 12.0.1
%global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to
@@ -120,7 +120,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.3%{?dist}
+Release: %{gcc_release}.4%{?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
@@ -270,9 +270,10 @@ Patch8: gcc12-no-add-needed.patch
Patch9: gcc12-Wno-format-security.patch
Patch10: gcc12-rh1574936.patch
Patch11: gcc12-d-shared-libphobos.patch
-Patch12: gcc12-pr104194.patch
-Patch13: gcc12-pr94193.patch
+Patch12: gcc12-pr103514-revert.patch
+Patch13: gcc12-pr95424-revert.patch
Patch14: gcc12-ifcvt-revert.patch
+Patch15: gcc12-pr104253.patch
Patch100: gcc12-fortran-fdec-duplicates.patch
Patch101: gcc12-fortran-flogical-as-integer.patch
@@ -794,9 +795,10 @@ to NVidia PTX capable devices if available.
%patch10 -p0 -b .rh1574936~
%endif
%patch11 -p0 -b .d-shared-libphobos~
-%patch12 -p0 -b .pr104194~
-%patch13 -p0 -b .pr94193~
+%patch12 -p0 -b .pr103514-revert~
+%patch13 -p0 -b .pr95424-revert~
%patch14 -p0 -b .ifcvt-revert~
+%patch15 -p0 -b .pr104253~
%if 0%{?rhel} >= 9
%patch100 -p1 -b .fortran-fdec-duplicates~
@@ -973,6 +975,7 @@ CONFIGURE_OPTS="\
%endif
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
--enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only \
+ --enable-libstdcxx-backtrace \
%ifnarch %{mips}
--with-linker-hash-style=gnu \
%endif
@@ -1530,6 +1533,7 @@ mv ../../../../%{_lib}/liblsan_preinit.o liblsan_preinit.o
fi
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++fs.*a $FULLLPATH/
+mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++_libbacktrace.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libsupc++.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libgfortran.*a $FULLLPATH/
%if %{build_objc}
@@ -1661,6 +1665,8 @@ ln -sf lib32/libstdc++.a libstdc++.a
ln -sf ../lib64/libstdc++.a 64/libstdc++.a
ln -sf lib32/libstdc++fs.a libstdc++fs.a
ln -sf ../lib64/libstdc++fs.a 64/libstdc++fs.a
+ln -sf lib32/libstdc++_libbacktrace.a libstdc++_libbacktrace.a
+ln -sf ../lib64/libstdc++_libbacktrace.a 64/libstdc++_libbacktrace.a
ln -sf lib32/libsupc++.a libsupc++.a
ln -sf ../lib64/libsupc++.a 64/libsupc++.a
%if %{build_libquadmath}
@@ -1762,6 +1768,8 @@ ln -sf ../lib32/libstdc++.a 32/libstdc++.a
ln -sf lib64/libstdc++.a libstdc++.a
ln -sf ../lib32/libstdc++fs.a 32/libstdc++fs.a
ln -sf lib64/libstdc++fs.a libstdc++fs.a
+ln -sf ../lib32/libstdc++_libbacktrace.a 32/libstdc++_libbacktrace.a
+ln -sf lib64/libstdc++_libbacktrace.a libstdc++_libbacktrace.a
ln -sf ../lib32/libsupc++.a 32/libsupc++.a
ln -sf lib64/libsupc++.a libsupc++.a
%if %{build_libquadmath}
@@ -1809,6 +1817,7 @@ ln -sf lib64/adalib adalib
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libgfortran.a 32/libgfortran.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++.a 32/libstdc++.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++fs.a 32/libstdc++fs.a
+ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++_libbacktrace.a 32/libstdc++_libbacktrace.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libsupc++.a 32/libsupc++.a
%if %{build_libquadmath}
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libquadmath.a 32/libquadmath.a
@@ -1856,7 +1865,7 @@ for d in . $FULLLSUBDIR; do
-o -name libitm.a -o -name liblsan.a \
-o -name libobjc.a -o -name libgdruntime.a -o -name libgphobos.a \
-o -name libquadmath.a -o -name libstdc++.a \
- -o -name libstdc++fs.a -o -name libsupc++.a \
+ -o -name libstdc++fs.a -o -name libstdc++_libbacktrace.a -o -name libsupc++.a \
-o -name libtsan.a -o -name libubsan.a \) -a -type f`; do
cp -a $f $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/$d/
done
@@ -2498,6 +2507,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++fs.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++_libbacktrace.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libsupc++.a
%endif
%ifarch %{multilib_64_archs}
@@ -2505,6 +2515,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++fs.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++_libbacktrace.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libsupc++.a
%endif
%ifarch sparcv9 ppc %{multilib_64_archs}
@@ -2513,6 +2524,7 @@ end
%ifarch sparcv9 sparc64 ppc ppc64 ppc64p7
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_libbacktrace.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsupc++.a
%endif
%doc rpm.doc/changelogs/gcc/cp/ChangeLog*
@@ -2545,13 +2557,16 @@ end
%ifarch sparcv9 ppc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++fs.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++_libbacktrace.a
%endif
%ifarch sparc64 ppc64 ppc64p7
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++fs.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++_libbacktrace.a
%endif
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_libbacktrace.a
%endif
%doc rpm.doc/changelogs/libstdc++-v3/ChangeLog* libstdc++-v3/README*
@@ -3156,6 +3171,22 @@ end
%endif
%changelog
+* Sat Jan 29 2022 Jakub Jelinek 12.0.1-0.4
+- update from trunk
+ - PRs ada/104258, analyzer/104224, analyzer/104247, bootstrap/67102,
+ c++/51344, c++/59950, c++/82632, c++/92752, c++/92944, c++/99895,
+ c++/100030, c++/100198, c++/100282, c++/101532, c++/101988,
+ c++/103057, c++/103341, c++/103678, c++/104206, c++/104225,
+ c++/104226, c++/104235, c++/104245, fortran/84784, fortran/103790,
+ fortran/104128, fortran/104212, fortran/104227, libfortran/104233,
+ libstdc++/100516, libstdc++/104161, libstdc++/104217,
+ libstdc++/104259, lto/104237, middle-end/103642, target/103702,
+ target/104201, target/104213, target/104239, testsuite/70230,
+ tree-optimization/104196, tree-optimization/104203,
+ tree-optimization/104263, tree-optimization/104267, web/104254
+- configure with --enable-libstdcxx-backtrace and package
+ libstdc++_libbacktrace.a
+
* Tue Jan 25 2022 Jakub Jelinek 12.0.1-0.3
- update from trunk
- PRs ada/103538, analyzer/94362, analyzer/103685, analyzer/104062,
diff --git a/gcc12-pr103514-revert.patch b/gcc12-pr103514-revert.patch
new file mode 100644
index 0000000..ac95059
--- /dev/null
+++ b/gcc12-pr103514-revert.patch
@@ -0,0 +1,27 @@
+2022-01-28 Navid Rahimi
+
+gcc/
+ PR tree-optimization/103514
+ * match.pd (a & b) ^ (a == b) -> !(a | b): New optimization.
+ (a & b) == (a ^ b) -> !(a | b): New optimization.
+
+gcc/testsuite
+ * gcc.dg/tree-ssa/pr103514.c: Testcase for this optimization.
+
+--- gcc/match.pd
++++ gcc/match.pd
+@@ -1784,14 +1784,6 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
+ (negate (nop_convert? (bit_not @0)))
+ (plus (view_convert @0) { build_each_one_cst (type); }))
+
+-/* (a & b) ^ (a == b) -> !(a | b) */
+-/* (a & b) == (a ^ b) -> !(a | b) */
+-(for first_op (bit_xor eq)
+- second_op (eq bit_xor)
+- (simplify
+- (first_op:c (bit_and:c truth_valued_p@0 truth_valued_p@1) (second_op:c @0 @1))
+- (bit_not (bit_ior @0 @1))))
+-
+ /* Convert ~ (A - 1) or ~ (A + -1) to -A. */
+ (simplify
+ (bit_not (convert? (minus @0 integer_each_onep)))
diff --git a/gcc12-pr104194.patch b/gcc12-pr104194.patch
deleted file mode 100644
index f0747c7..0000000
--- a/gcc12-pr104194.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-2022-01-25 Jakub Jelinek
-
- PR debug/104194
- * dwarf2out.cc (long_double_as_float128): New function.
- (modified_type_die): For powerpc64le IEEE 754 quad long double
- and complex long double emit those as DW_TAG_typedef to
- _Float128 or complex _Float128 base type.
-
---- gcc/dwarf2out.cc.jj 2022-01-25 05:47:53.987454934 +0100
-+++ gcc/dwarf2out.cc 2022-01-25 11:54:25.100522089 +0100
-@@ -13568,6 +13568,47 @@ qualified_die_p (dw_die_ref die, int *ma
- return type;
- }
-
-+/* If TYPE is long double or complex long double that
-+ should be emitted as artificial typedef to _Float128 or
-+ complex _Float128, return the type it should be emitted as.
-+ This is done in case the target already supports 16-byte
-+ composite floating point type (ibm_extended_format). */
-+
-+static tree
-+long_double_as_float128 (tree type)
-+{
-+ if (type != long_double_type_node
-+ && type != complex_long_double_type_node)
-+ return NULL_TREE;
-+
-+ machine_mode mode, fmode;
-+ if (TREE_CODE (type) == COMPLEX_TYPE)
-+ mode = TYPE_MODE (TREE_TYPE (type));
-+ else
-+ mode = TYPE_MODE (type);
-+ if (known_eq (GET_MODE_SIZE (mode), 16) && !MODE_COMPOSITE_P (mode))
-+ FOR_EACH_MODE_IN_CLASS (fmode, MODE_FLOAT)
-+ if (known_eq (GET_MODE_SIZE (fmode), 16)
-+ && MODE_COMPOSITE_P (fmode))
-+ {
-+ if (type == long_double_type_node)
-+ {
-+ if (float128_type_node
-+ && (TYPE_MODE (float128_type_node)
-+ == TYPE_MODE (type)))
-+ return float128_type_node;
-+ return NULL_TREE;
-+ }
-+ for (int i = 0; i < NUM_FLOATN_NX_TYPES; i++)
-+ if (COMPLEX_FLOATN_NX_TYPE_NODE (i) != NULL_TREE
-+ && (TYPE_MODE (COMPLEX_FLOATN_NX_TYPE_NODE (i))
-+ == TYPE_MODE (type)))
-+ return COMPLEX_FLOATN_NX_TYPE_NODE (i);
-+ }
-+
-+ return NULL_TREE;
-+}
-+
- /* Given a pointer to an arbitrary ..._TYPE tree node, return a debugging
- entry that chains the modifiers specified by CV_QUALS in front of the
- given type. REVERSE is true if the type is to be interpreted in the
-@@ -13848,7 +13889,32 @@ modified_type_die (tree type, int cv_qua
- }
- else if (is_base_type (type))
- {
-- mod_type_die = base_type_die (type, reverse);
-+ /* If a target supports long double as different floating point
-+ modes with the same 16-byte size, use normal DW_TAG_base_type
-+ only for the composite (ibm_extended_real_format) type and
-+ for the other for the time being emit instead a "_Float128"
-+ or "complex _Float128" DW_TAG_base_type and a "long double"
-+ or "complex long double" typedef to it. */
-+ if (tree other_type = long_double_as_float128 (type))
-+ {
-+ dw_die_ref other_die;
-+ if (TYPE_NAME (other_type))
-+ other_die
-+ = modified_type_die (other_type, TYPE_UNQUALIFIED, reverse,
-+ context_die);
-+ else
-+ {
-+ other_die = base_type_die (type, reverse);
-+ add_child_die (comp_unit_die (), other_die);
-+ add_name_attribute (other_die,
-+ TREE_CODE (type) == COMPLEX_TYPE
-+ ? "complex _Float128" : "_Float128");
-+ }
-+ mod_type_die = new_die_raw (DW_TAG_typedef);
-+ add_AT_die_ref (mod_type_die, DW_AT_type, other_die);
-+ }
-+ else
-+ mod_type_die = base_type_die (type, reverse);
-
- /* The DIE with DW_AT_endianity is placed right after the naked DIE. */
- if (reverse_base_type)
diff --git a/gcc12-pr104253.patch b/gcc12-pr104253.patch
new file mode 100644
index 0000000..5560524
--- /dev/null
+++ b/gcc12-pr104253.patch
@@ -0,0 +1,200 @@
+If you are on a PowerPC system where the default long double is IEEE
+128-bit, GCC will use the wrong names for some of the conversion functions
+for the __ibm128 type.
+
+What is happening is when the defult long double is IEEE 128-bit, the
+various convert, truncation, and extend functions did not specify a
+default name for the conversion. The machine indepentent portions of the
+compiler would construct a call with an 'if' name (IFmode being the mode
+for IBM 128-bit floating point). This patch specifies to use the
+tradiational 'tf' name for these conversion functions.
+
+2022-01-28 Michael Meissner
+
+gcc/
+ PR target/104253
+ * config/rs6000/rs6000.cc (init_float128_ibm): Use the TF names
+ for builtin conversions between __ibm128 and DImode when long
+ double uses the IEEE 128-bit format.
+
+gcc/testsuite/
+ PR target/104253
+ * gcc.target/powerpc/pr104253.c: New test.
+---
+ gcc/config/rs6000/rs6000.cc | 6 +
+ gcc/testsuite/gcc.target/powerpc/pr104253.c | 154 ++++++++++++++++++++
+ 2 files changed, 160 insertions(+)
+ create mode 100644 gcc/testsuite/gcc.target/powerpc/pr104253.c
+
+--- gcc/config/rs6000/rs6000.cc
++++ gcc/config/rs6000/rs6000.cc
+@@ -11113,6 +11113,12 @@ init_float128_ibm (machine_mode mode)
+ set_conv_libfunc (trunc_optab, DDmode, mode, "__dpd_trunctfdd");
+ set_conv_libfunc (sext_optab, TDmode, mode, "__dpd_extendtftd");
+
++ set_conv_libfunc (sfix_optab, DImode, mode, "__fixtfdi");
++ set_conv_libfunc (ufix_optab, DImode, mode, "__fixunstfdi");
++
++ set_conv_libfunc (sfloat_optab, mode, DImode, "__floatditf");
++ set_conv_libfunc (ufloat_optab, mode, DImode, "__floatunditf");
++
+ if (TARGET_POWERPC64)
+ {
+ set_conv_libfunc (sfix_optab, TImode, mode, "__fixtfti");
+--- gcc/testsuite/gcc.target/powerpc/pr104253.c
++++ gcc/testsuite/gcc.target/powerpc/pr104253.c
+@@ -0,0 +1,154 @@
++/*
++ * Require float128 support because __ibm128 currently is not enabled unless we
++ * also have __float128 support.
++ */
++
++/* { dg-do run } */
++/* { require-effective-target ppc_float128_sw } */
++/* { dg-options "-O2 -mvsx -mfloat128" } */
++
++/*
++ * PR target/104253
++ *
++ * Verify that the various conversions to and from __ibm128 work. When the
++ * default for long double is changed to IEEE 128-bit, originally GCC would
++ * call the functions using an 'if' name instead of 'tf.
++ */
++
++#include
++
++extern float ibm128_to_sf (__ibm128) __attribute__((noinline));
++extern double ibm128_to_df (__ibm128) __attribute__((noinline));
++extern int ibm128_to_si (__ibm128) __attribute__((noinline));
++extern long long ibm128_to_di (__ibm128) __attribute__((noinline));
++extern unsigned int ibm128_to_usi (__ibm128) __attribute__((noinline));
++extern unsigned long long ibm128_to_udi (__ibm128) __attribute__((noinline));
++
++extern __ibm128 sf_to_ibm128 (float) __attribute__((noinline));
++extern __ibm128 df_to_ibm128 (double) __attribute__((noinline));
++extern __ibm128 si_to_ibm128 (int) __attribute__((noinline));
++extern __ibm128 di_to_ibm128 (long long) __attribute__((noinline));
++extern __ibm128 usi_to_ibm128 (unsigned int) __attribute__((noinline));
++extern __ibm128 udi_to_ibm128 (unsigned long long) __attribute__((noinline));
++
++float
++ibm128_to_sf (__ibm128 x)
++{
++ return x;
++}
++
++double
++ibm128_to_df (__ibm128 x)
++{
++ return x;
++}
++
++int
++ibm128_to_si (__ibm128 x)
++{
++ return x;
++}
++
++long long
++ibm128_to_di (__ibm128 x)
++{
++ return x;
++}
++
++unsigned int
++ibm128_to_usi (__ibm128 x)
++{
++ return x;
++}
++
++unsigned long long
++ibm128_to_udi (__ibm128 x)
++{
++ return x;
++}
++
++__ibm128
++sf_to_ibm128 (float x)
++{
++ return x;
++}
++
++__ibm128
++df_to_ibm128 (double x)
++{
++ return x;
++}
++
++__ibm128
++si_to_ibm128 (int x)
++{
++ return x;
++}
++
++__ibm128
++di_to_ibm128 (long long x)
++{
++ return x;
++}
++
++__ibm128
++usi_to_ibm128 (unsigned int x)
++{
++ return x;
++}
++
++__ibm128
++udi_to_ibm128 (unsigned long long x)
++{
++ return x;
++}
++
++volatile float seven_sf = 7.0f;
++volatile double seven_df = 7.0;
++volatile int seven_si = 7;
++volatile long long seven_di = 7LL;
++volatile unsigned int seven_usi = 7U;
++volatile unsigned long long seven_udi = 7ULL;
++volatile __ibm128 seven_ibm128 = 7.0;
++
++int
++main (void)
++{
++ if (seven_ibm128 != sf_to_ibm128 (seven_sf))
++ abort ();
++
++ if (seven_ibm128 != df_to_ibm128 (seven_df))
++ abort ();
++
++ if (seven_ibm128 != si_to_ibm128 (seven_si))
++ abort ();
++
++ if (seven_ibm128 != di_to_ibm128 (seven_di))
++ abort ();
++
++ if (seven_ibm128 != usi_to_ibm128 (seven_usi))
++ abort ();
++
++ if (seven_ibm128 != udi_to_ibm128 (seven_udi))
++ abort ();
++
++ if (seven_sf != ibm128_to_sf (seven_ibm128))
++ abort ();
++
++ if (seven_df != ibm128_to_df (seven_ibm128))
++ abort ();
++
++ if (seven_si != ibm128_to_si (seven_ibm128))
++ abort ();
++
++ if (seven_di != ibm128_to_di (seven_ibm128))
++ abort ();
++
++ if (seven_usi != ibm128_to_usi (seven_ibm128))
++ abort ();
++
++ if (seven_udi != ibm128_to_udi (seven_ibm128))
++ abort ();
++
++ return 0;
++}
diff --git a/gcc12-pr94193.patch b/gcc12-pr94193.patch
deleted file mode 100644
index e669a81..0000000
--- a/gcc12-pr94193.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-2022-01-25 Jakub Jelinek