From 52a79c17eeea5055a27e26fd90a7fed7c7ffcff6 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Tue, 18 Apr 2023 18:35:23 +0200
Subject: [PATCH 1/5] 13.0.1-0.14
---
.gitignore | 1 +
gcc.spec | 31 ++++++++++++++++++++++++++++---
gcc13-pr108969.patch | 29 +++++++++++++++++++++++++++++
sources | 2 +-
4 files changed, 59 insertions(+), 4 deletions(-)
create mode 100644 gcc13-pr108969.patch
diff --git a/.gitignore b/.gitignore
index b85279e..1f178dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -100,3 +100,4 @@
/gcc-13.0.1-20230329.tar.xz
/gcc-13.0.1-20230401.tar.xz
/gcc-13.0.1-20230404.tar.xz
+/gcc-13.0.1-20230418.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 3947873..f518905 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20230404
-%global gitrev f9101c02b26988d799233db0b778732f7e56259f
+%global DATE 20230418
+%global gitrev 90e2966fefb872b610765ac4f89ad9bcab43d72c
%global gcc_version 13.0.1
%global gcc_major 13
# Note, gcc_release must be integer, if you want to add suffixes to
@@ -136,7 +136,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.13%{?dist}
+Release: %{gcc_release}.14%{?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
@@ -286,6 +286,7 @@ Patch8: gcc13-no-add-needed.patch
Patch9: gcc13-Wno-format-security.patch
Patch10: gcc13-rh1574936.patch
Patch11: gcc13-d-shared-libphobos.patch
+Patch12: gcc13-pr108969.patch
Patch50: isl-rh2155127.patch
@@ -862,6 +863,7 @@ so that there cannot be any synchronization problems.
%patch -P10 -p0 -b .rh1574936~
%endif
%patch -P11 -p0 -b .d-shared-libphobos~
+%patch -P12 -p0 -b .pr108969~
%patch -P50 -p0 -b .rh2155127~
touch -r isl-0.24/m4/ax_prog_cxx_for_build.m4 isl-0.24/m4/ax_prog_cc_for_build.m4
@@ -3458,6 +3460,29 @@ end
%endif
%changelog
+* Tue Apr 18 2023 Jakub Jelinek 13.0.1-0.14
+- update from trunk and releases/gcc-13 branch
+ - PRs analyzer/108722, bootstrap/109510, c++/109277, c++/109357, c++/109420,
+ c++/109514, c++/109531, driver/108241, fortran/61615, fortran/85686,
+ fortran/87477, fortran/88247, fortran/91941, fortran/92779,
+ fortran/93339, fortran/93813, fortran/98408, fortran/99982,
+ fortran/100948, fortran/102106, fortran/104272, fortran/104312,
+ fortran/104349, fortran/105205, fortran/106918, fortran/109492,
+ fortran/109511, ipa/107769, ipa/108959, ipa/109318, libstdc++/108291,
+ libstdc++/108827, libstdc++/108969, libstdc++/109482,
+ libstdc++/109525, modula2/109423, modula2/109488, modula2/109496,
+ modula2/109497, target/54816, target/70243, target/99708,
+ target/104989, target/108812, target/108892, target/108947,
+ target/109040, target/109104, target/109374, target/109402,
+ target/109458, target/109479, target/109508, testsuite/108809,
+ testsuite/108815, tree-optimization/108139, tree-optimization/109392,
+ tree-optimization/109410, tree-optimization/109417,
+ tree-optimization/109427, tree-optimization/109434,
+ tree-optimization/109462, tree-optimization/109469,
+ tree-optimization/109473, tree-optimization/109491,
+ tree-optimization/109502, tree-optimization/109524,
+ tree-optimization/109539
+
* Tue Apr 4 2023 Jakub Jelinek 13.0.1-0.13
- update from trunk
- PRs c++/53164, c++/105848, c++/107484, c++/109160, c++/109300, ipa/109303,
diff --git a/gcc13-pr108969.patch b/gcc13-pr108969.patch
new file mode 100644
index 0000000..88b4d4b
--- /dev/null
+++ b/gcc13-pr108969.patch
@@ -0,0 +1,29 @@
+libstdc++: Fix preprocessor condition in linker script [PR108969]
+
+The linker script is preprocessed with $(top_builddir)/config.h not the
+include/$target/bits/c++config.h version, which means that configure
+macros do not have the _GLIBCXX_ prefix yet.
+
+The _GLIBCXX_SYMVER_GNU and _GLIBCXX_SHARED checks are redundant,
+because the gnu.ver file is only used for _GLIBCXX_SYMVER_GNU and the
+linker script is only used for the shared library. Remove those.
+
+libstdc++-v3/ChangeLog:
+
+ PR libstdc++/108969
+ * config/abi/pre/gnu.ver: Fix preprocessor condition.
+
+--- libstdc++-v3/config/abi/pre/gnu.ver
++++ libstdc++-v3/config/abi/pre/gnu.ver
+@@ -2512,9 +2512,8 @@ GLIBCXX_3.4.31 {
+ _ZNKSt12__shared_ptrINSt10filesystem28recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEcvbEv;
+ _ZNKSt12__shared_ptrINSt10filesystem7__cxx1128recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEcvbEv;
+
+-#if defined(_GLIBCXX_SYMVER_GNU) && defined(_GLIBCXX_SHARED) \
+- && defined(_GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE) \
+- && defined(_GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT)
++#if defined(HAVE_AS_SYMVER_DIRECTIVE) \
++ && defined(HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT)
+ # See src/c++98/globals_io.cc
+ _ZSt3cin;
+ _ZSt4cout;
diff --git a/sources b/sources
index 6f2abd1..9c0b2e6 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-13.0.1-20230404.tar.xz) = d7c177e5bcf0efe6f3e48af4da5ab601c44eadad48b4af30bfcd833f256e615593e3ae5979ded5249b3d88417f482093a548dfab353e0d44bc1743afee295a79
+SHA512 (gcc-13.0.1-20230418.tar.xz) = 2015b135608474d16dde00cccf03a405898494eb2988048e781b9ae64e3b8a7a6d3b4faf3ca30185ec9e18cd7728d5fdc195aaedc25c75ccc59c5105d1424fcd
SHA512 (isl-0.24.tar.bz2) = aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
SHA512 (newlib-cygwin-9e09d6ed83cce4777a5950412647ccc603040409.tar.xz) = bef3fa04f7b1a915fc1356ebed114698b5cc835e9fa04b0becff05a9efc76c59fb376482990873d222d7acdcfee3c4f30f5a4cb7f3be1f291f1fa5f1c7a9d983
SHA512 (nvptx-tools-93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b.tar.xz) = c719fad8689b2b6f3c888d0308604ddef884037d71ec3e755c68052d30075a181c29358fda516833ace437921b17602b147be7886317be94ec9736faa8cb52be
From 6fdcb2b9e5dab07004c3473d382272d2d1cabd0e Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Wed, 19 Apr 2023 21:27:34 +0200
Subject: [PATCH 2/5] 13.0.1-0.15
---
.gitignore | 1 +
gcc.spec | 13 ++++++++-----
gcc13-pr108969.patch | 29 -----------------------------
sources | 2 +-
4 files changed, 10 insertions(+), 35 deletions(-)
delete mode 100644 gcc13-pr108969.patch
diff --git a/.gitignore b/.gitignore
index 1f178dc..3db1818 100644
--- a/.gitignore
+++ b/.gitignore
@@ -101,3 +101,4 @@
/gcc-13.0.1-20230401.tar.xz
/gcc-13.0.1-20230404.tar.xz
/gcc-13.0.1-20230418.tar.xz
+/gcc-13.0.1-20230419.tar.xz
diff --git a/gcc.spec b/gcc.spec
index f518905..c3a5fe9 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20230418
-%global gitrev 90e2966fefb872b610765ac4f89ad9bcab43d72c
+%global DATE 20230419
+%global gitrev fa3dfe9cf38be8a7cb0e7d0c11c67e8767f8e008
%global gcc_version 13.0.1
%global gcc_major 13
# Note, gcc_release must be integer, if you want to add suffixes to
@@ -136,7 +136,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.14%{?dist}
+Release: %{gcc_release}.15%{?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
@@ -286,7 +286,6 @@ Patch8: gcc13-no-add-needed.patch
Patch9: gcc13-Wno-format-security.patch
Patch10: gcc13-rh1574936.patch
Patch11: gcc13-d-shared-libphobos.patch
-Patch12: gcc13-pr108969.patch
Patch50: isl-rh2155127.patch
@@ -863,7 +862,6 @@ so that there cannot be any synchronization problems.
%patch -P10 -p0 -b .rh1574936~
%endif
%patch -P11 -p0 -b .d-shared-libphobos~
-%patch -P12 -p0 -b .pr108969~
%patch -P50 -p0 -b .rh2155127~
touch -r isl-0.24/m4/ax_prog_cxx_for_build.m4 isl-0.24/m4/ax_prog_cc_for_build.m4
@@ -3460,6 +3458,11 @@ end
%endif
%changelog
+* Wed Apr 19 2023 Jakub Jelinek 13.0.1-0.15
+- update from trunk and releases/gcc-13 branch
+ - GCC 13.1-rc2
+ - PRs c++/109556, target/106602
+
* Tue Apr 18 2023 Jakub Jelinek 13.0.1-0.14
- update from trunk and releases/gcc-13 branch
- PRs analyzer/108722, bootstrap/109510, c++/109277, c++/109357, c++/109420,
diff --git a/gcc13-pr108969.patch b/gcc13-pr108969.patch
deleted file mode 100644
index 88b4d4b..0000000
--- a/gcc13-pr108969.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-libstdc++: Fix preprocessor condition in linker script [PR108969]
-
-The linker script is preprocessed with $(top_builddir)/config.h not the
-include/$target/bits/c++config.h version, which means that configure
-macros do not have the _GLIBCXX_ prefix yet.
-
-The _GLIBCXX_SYMVER_GNU and _GLIBCXX_SHARED checks are redundant,
-because the gnu.ver file is only used for _GLIBCXX_SYMVER_GNU and the
-linker script is only used for the shared library. Remove those.
-
-libstdc++-v3/ChangeLog:
-
- PR libstdc++/108969
- * config/abi/pre/gnu.ver: Fix preprocessor condition.
-
---- libstdc++-v3/config/abi/pre/gnu.ver
-+++ libstdc++-v3/config/abi/pre/gnu.ver
-@@ -2512,9 +2512,8 @@ GLIBCXX_3.4.31 {
- _ZNKSt12__shared_ptrINSt10filesystem28recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEcvbEv;
- _ZNKSt12__shared_ptrINSt10filesystem7__cxx1128recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEcvbEv;
-
--#if defined(_GLIBCXX_SYMVER_GNU) && defined(_GLIBCXX_SHARED) \
-- && defined(_GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE) \
-- && defined(_GLIBCXX_HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT)
-+#if defined(HAVE_AS_SYMVER_DIRECTIVE) \
-+ && defined(HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT)
- # See src/c++98/globals_io.cc
- _ZSt3cin;
- _ZSt4cout;
diff --git a/sources b/sources
index 9c0b2e6..f12246b 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-13.0.1-20230418.tar.xz) = 2015b135608474d16dde00cccf03a405898494eb2988048e781b9ae64e3b8a7a6d3b4faf3ca30185ec9e18cd7728d5fdc195aaedc25c75ccc59c5105d1424fcd
+SHA512 (gcc-13.0.1-20230419.tar.xz) = 4723c151479826238cd53f32577eb91578f0314aedda77598ce3d2e7b5287fd57789bfc42c3511e6716775fd895716a2974ad7a1afda248629af27445982deea
SHA512 (isl-0.24.tar.bz2) = aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
SHA512 (newlib-cygwin-9e09d6ed83cce4777a5950412647ccc603040409.tar.xz) = bef3fa04f7b1a915fc1356ebed114698b5cc835e9fa04b0becff05a9efc76c59fb376482990873d222d7acdcfee3c4f30f5a4cb7f3be1f291f1fa5f1c7a9d983
SHA512 (nvptx-tools-93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b.tar.xz) = c719fad8689b2b6f3c888d0308604ddef884037d71ec3e755c68052d30075a181c29358fda516833ace437921b17602b147be7886317be94ec9736faa8cb52be
From ee018dc183d14211ea8016a8bf4a8c22c6174d1e Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Fri, 21 Apr 2023 14:38:09 +0200
Subject: [PATCH 3/5] 13.0.1-0.16
---
.gitignore | 1 +
gcc.spec | 16 ++++++++++++---
gcc13-pr109583.patch | 48 ++++++++++++++++++++++++++++++++++++++++++++
sources | 2 +-
4 files changed, 63 insertions(+), 4 deletions(-)
create mode 100644 gcc13-pr109583.patch
diff --git a/.gitignore b/.gitignore
index 3db1818..3beff17 100644
--- a/.gitignore
+++ b/.gitignore
@@ -102,3 +102,4 @@
/gcc-13.0.1-20230404.tar.xz
/gcc-13.0.1-20230418.tar.xz
/gcc-13.0.1-20230419.tar.xz
+/gcc-13.0.1-20230421.tar.xz
diff --git a/gcc.spec b/gcc.spec
index c3a5fe9..8436907 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,5 +1,5 @@
-%global DATE 20230419
-%global gitrev fa3dfe9cf38be8a7cb0e7d0c11c67e8767f8e008
+%global DATE 20230421
+%global gitrev 4be14f2db84d42993908d17f2b66a655b5bc050d
%global gcc_version 13.0.1
%global gcc_major 13
# Note, gcc_release must be integer, if you want to add suffixes to
@@ -136,7 +136,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.15%{?dist}
+Release: %{gcc_release}.16%{?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
@@ -286,6 +286,7 @@ Patch8: gcc13-no-add-needed.patch
Patch9: gcc13-Wno-format-security.patch
Patch10: gcc13-rh1574936.patch
Patch11: gcc13-d-shared-libphobos.patch
+Patch12: gcc13-pr109583.patch
Patch50: isl-rh2155127.patch
@@ -862,6 +863,7 @@ so that there cannot be any synchronization problems.
%patch -P10 -p0 -b .rh1574936~
%endif
%patch -P11 -p0 -b .d-shared-libphobos~
+%patch -P12 -p0 -b .pr109583~
%patch -P50 -p0 -b .rh2155127~
touch -r isl-0.24/m4/ax_prog_cxx_for_build.m4 isl-0.24/m4/ax_prog_cc_for_build.m4
@@ -2488,6 +2490,7 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxfp16intrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/prfchiintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/raointintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxcomplexintrin.h
%endif
%ifarch ia64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia64intrin.h
@@ -3458,6 +3461,13 @@ end
%endif
%changelog
+* Fri Apr 21 2023 Jakub Jelinek 13.0.1-0.16
+- update from trunk and releases/gcc-13 branch
+ - GCC 13.1-rc3
+ - PRs tree-optimization/109564
+- fix ICE on fneg/fadd optimization (PR tree-optimization/109583)
+- include amxcomplexintrin.h header on x86 (#2188608)
+
* Wed Apr 19 2023 Jakub Jelinek 13.0.1-0.15
- update from trunk and releases/gcc-13 branch
- GCC 13.1-rc2
diff --git a/gcc13-pr109583.patch b/gcc13-pr109583.patch
new file mode 100644
index 0000000..537ca34
--- /dev/null
+++ b/gcc13-pr109583.patch
@@ -0,0 +1,48 @@
+2023-04-21 Jakub Jelinek
+
+ PR tree-optimization/109583
+ * match.pd (fneg/fadd simplify): Don't call related_vector_mode
+ if vec_mode is not VECTOR_MODE_P.
+
+ * gcc.dg/pr109583.c: New test.
+
+--- gcc/match.pd.jj 2023-04-18 11:01:38.867871375 +0200
++++ gcc/match.pd 2023-04-21 13:26:01.250166206 +0200
+@@ -8103,7 +8103,8 @@ and,
+ poly_uint64 wide_nunits;
+ scalar_mode inner_mode = GET_MODE_INNER (vec_mode);
+ }
+- (if (sel.series_p (0, 2, 0, 2)
++ (if (VECTOR_MODE_P (vec_mode)
++ && sel.series_p (0, 2, 0, 2)
+ && sel.series_p (1, 2, nelts + 1, 2)
+ && GET_MODE_2XWIDER_MODE (inner_mode).exists (&wide_elt_mode)
+ && multiple_p (GET_MODE_NUNITS (vec_mode), 2, &wide_nunits)
+--- gcc/testsuite/gcc.dg/pr109583.c.jj 2023-04-21 13:28:36.462911138 +0200
++++ gcc/testsuite/gcc.dg/pr109583.c 2023-04-21 13:28:06.746342736 +0200
+@@ -0,0 +1,25 @@
++/* PR tree-optimization/109583 */
++/* { dg-do compile } */
++/* { dg-options "-O1 -Wno-psabi" } */
++/* { dg-additional-options "-mno-avx" { target i?86-*-* x86_64-*-* } } */
++
++typedef float v8sf __attribute__((vector_size (8 * sizeof (float))));
++typedef int v8si __attribute__((vector_size (8 * sizeof (int))));
++
++#if __SIZEOF_INT__ == __SIZEOF_FLOAT__
++v8sf
++foo (v8sf x, v8sf y)
++{
++ v8sf a = x - y;
++ v8sf b = x + y;
++ return __builtin_shuffle (a, b, (v8si) { 0, 9, 2, 11, 4, 13, 6, 15 });
++}
++
++v8sf
++bar (v8sf x, v8sf y)
++{
++ v8sf a = x + y;
++ v8sf b = x - y;
++ return __builtin_shuffle (a, b, (v8si) { 0, 9, 2, 11, 4, 13, 6, 15 });
++}
++#endif
diff --git a/sources b/sources
index f12246b..57ed1a1 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-13.0.1-20230419.tar.xz) = 4723c151479826238cd53f32577eb91578f0314aedda77598ce3d2e7b5287fd57789bfc42c3511e6716775fd895716a2974ad7a1afda248629af27445982deea
+SHA512 (gcc-13.0.1-20230421.tar.xz) = 75b36b5018e014e9c187f86de4333494c05760b0f1ddf02b46e969f477202d7998aadbbb6b3ee1f0a1ed950e764e4ad706f7040ae2845339c56d671fd812e148
SHA512 (isl-0.24.tar.bz2) = aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
SHA512 (newlib-cygwin-9e09d6ed83cce4777a5950412647ccc603040409.tar.xz) = bef3fa04f7b1a915fc1356ebed114698b5cc835e9fa04b0becff05a9efc76c59fb376482990873d222d7acdcfee3c4f30f5a4cb7f3be1f291f1fa5f1c7a9d983
SHA512 (nvptx-tools-93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b.tar.xz) = c719fad8689b2b6f3c888d0308604ddef884037d71ec3e755c68052d30075a181c29358fda516833ace437921b17602b147be7886317be94ec9736faa8cb52be
From e31a1bddc0554b632b7fa2ee587e387c3ef9f6c2 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Fri, 21 Apr 2023 14:51:27 +0200
Subject: [PATCH 4/5] 13.0.1-0.16
---
gcc13-pr109583.patch | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/gcc13-pr109583.patch b/gcc13-pr109583.patch
index 537ca34..1eb3708 100644
--- a/gcc13-pr109583.patch
+++ b/gcc13-pr109583.patch
@@ -8,16 +8,16 @@
--- gcc/match.pd.jj 2023-04-18 11:01:38.867871375 +0200
+++ gcc/match.pd 2023-04-21 13:26:01.250166206 +0200
-@@ -8103,7 +8103,8 @@ and,
- poly_uint64 wide_nunits;
- scalar_mode inner_mode = GET_MODE_INNER (vec_mode);
- }
-- (if (sel.series_p (0, 2, 0, 2)
-+ (if (VECTOR_MODE_P (vec_mode)
-+ && sel.series_p (0, 2, 0, 2)
- && sel.series_p (1, 2, nelts + 1, 2)
- && GET_MODE_2XWIDER_MODE (inner_mode).exists (&wide_elt_mode)
- && multiple_p (GET_MODE_NUNITS (vec_mode), 2, &wide_nunits)
+@@ -8095,7 +8095,8 @@ and,
+ poly_uint64 wide_nunits;
+ scalar_mode inner_mode = GET_MODE_INNER (vec_mode);
+ }
+- (if (sel.series_p (0, 2, 0, 2)
++ (if (VECTOR_MODE_P (vec_mode)
++ && sel.series_p (0, 2, 0, 2)
+ && sel.series_p (1, 2, nelts + 1, 2)
+ && GET_MODE_2XWIDER_MODE (inner_mode).exists (&wide_elt_mode)
+ && multiple_p (GET_MODE_NUNITS (vec_mode), 2, &wide_nunits)
--- gcc/testsuite/gcc.dg/pr109583.c.jj 2023-04-21 13:28:36.462911138 +0200
+++ gcc/testsuite/gcc.dg/pr109583.c 2023-04-21 13:28:06.746342736 +0200
@@ -0,0 +1,25 @@
From ca788bfdffb0f4bd7b210e848f2007cec8829de9 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek
Date: Wed, 26 Apr 2023 10:58:06 +0200
Subject: [PATCH 5/5] 13.1.1-1
---
.gitignore | 1 +
gcc.spec | 17 ++++++++------
gcc13-libstdc++-docs.patch | 4 ++--
gcc13-pr109583.patch | 48 --------------------------------------
sources | 2 +-
update-gcc.sh | 2 +-
6 files changed, 15 insertions(+), 59 deletions(-)
delete mode 100644 gcc13-pr109583.patch
diff --git a/.gitignore b/.gitignore
index 3beff17..d54fd05 100644
--- a/.gitignore
+++ b/.gitignore
@@ -103,3 +103,4 @@
/gcc-13.0.1-20230418.tar.xz
/gcc-13.0.1-20230419.tar.xz
/gcc-13.0.1-20230421.tar.xz
+/gcc-13.1.1-20230426.tar.xz
diff --git a/gcc.spec b/gcc.spec
index 8436907..f562329 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,10 +1,10 @@
-%global DATE 20230421
-%global gitrev 4be14f2db84d42993908d17f2b66a655b5bc050d
-%global gcc_version 13.0.1
+%global DATE 20230426
+%global gitrev 99aa4c60d1f6a96b09f65b669d44bbab206f0a75
+%global gcc_version 13.1.1
%global gcc_major 13
# 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 0
+%global gcc_release 1
%global nvptx_tools_gitrev 93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b
%global newlib_cygwin_gitrev 9e09d6ed83cce4777a5950412647ccc603040409
%global _unpackaged_files_terminate_build 0
@@ -136,7 +136,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.16%{?dist}
+Release: %{gcc_release}%{?dist}
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
# GCC Runtime Exception.
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
@@ -286,7 +286,6 @@ Patch8: gcc13-no-add-needed.patch
Patch9: gcc13-Wno-format-security.patch
Patch10: gcc13-rh1574936.patch
Patch11: gcc13-d-shared-libphobos.patch
-Patch12: gcc13-pr109583.patch
Patch50: isl-rh2155127.patch
@@ -863,7 +862,6 @@ so that there cannot be any synchronization problems.
%patch -P10 -p0 -b .rh1574936~
%endif
%patch -P11 -p0 -b .d-shared-libphobos~
-%patch -P12 -p0 -b .pr109583~
%patch -P50 -p0 -b .rh2155127~
touch -r isl-0.24/m4/ax_prog_cxx_for_build.m4 isl-0.24/m4/ax_prog_cc_for_build.m4
@@ -3461,6 +3459,11 @@ end
%endif
%changelog
+* Wed Apr 26 2023 Jakub Jelinek 13.1.1-1
+- update from releases/gcc-13 branch
+ - GCC 13.1 release
+ - PRs c/107041, target/109566
+
* Fri Apr 21 2023 Jakub Jelinek 13.0.1-0.16
- update from trunk and releases/gcc-13 branch
- GCC 13.1-rc3
diff --git a/gcc13-libstdc++-docs.patch b/gcc13-libstdc++-docs.patch
index 5a2fe27..6dffae6 100644
--- a/gcc13-libstdc++-docs.patch
+++ b/gcc13-libstdc++-docs.patch
@@ -4,7 +4,7 @@
FSF
-+ Release 13.0.1
++ Release 13.1.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 13.0.1 release,
++ for the 13.1.1 release,
+ online
for each GCC release
and
diff --git a/gcc13-pr109583.patch b/gcc13-pr109583.patch
deleted file mode 100644
index 1eb3708..0000000
--- a/gcc13-pr109583.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-2023-04-21 Jakub Jelinek
-
- PR tree-optimization/109583
- * match.pd (fneg/fadd simplify): Don't call related_vector_mode
- if vec_mode is not VECTOR_MODE_P.
-
- * gcc.dg/pr109583.c: New test.
-
---- gcc/match.pd.jj 2023-04-18 11:01:38.867871375 +0200
-+++ gcc/match.pd 2023-04-21 13:26:01.250166206 +0200
-@@ -8095,7 +8095,8 @@ and,
- poly_uint64 wide_nunits;
- scalar_mode inner_mode = GET_MODE_INNER (vec_mode);
- }
-- (if (sel.series_p (0, 2, 0, 2)
-+ (if (VECTOR_MODE_P (vec_mode)
-+ && sel.series_p (0, 2, 0, 2)
- && sel.series_p (1, 2, nelts + 1, 2)
- && GET_MODE_2XWIDER_MODE (inner_mode).exists (&wide_elt_mode)
- && multiple_p (GET_MODE_NUNITS (vec_mode), 2, &wide_nunits)
---- gcc/testsuite/gcc.dg/pr109583.c.jj 2023-04-21 13:28:36.462911138 +0200
-+++ gcc/testsuite/gcc.dg/pr109583.c 2023-04-21 13:28:06.746342736 +0200
-@@ -0,0 +1,25 @@
-+/* PR tree-optimization/109583 */
-+/* { dg-do compile } */
-+/* { dg-options "-O1 -Wno-psabi" } */
-+/* { dg-additional-options "-mno-avx" { target i?86-*-* x86_64-*-* } } */
-+
-+typedef float v8sf __attribute__((vector_size (8 * sizeof (float))));
-+typedef int v8si __attribute__((vector_size (8 * sizeof (int))));
-+
-+#if __SIZEOF_INT__ == __SIZEOF_FLOAT__
-+v8sf
-+foo (v8sf x, v8sf y)
-+{
-+ v8sf a = x - y;
-+ v8sf b = x + y;
-+ return __builtin_shuffle (a, b, (v8si) { 0, 9, 2, 11, 4, 13, 6, 15 });
-+}
-+
-+v8sf
-+bar (v8sf x, v8sf y)
-+{
-+ v8sf a = x + y;
-+ v8sf b = x - y;
-+ return __builtin_shuffle (a, b, (v8si) { 0, 9, 2, 11, 4, 13, 6, 15 });
-+}
-+#endif
diff --git a/sources b/sources
index 57ed1a1..ffb1707 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-SHA512 (gcc-13.0.1-20230421.tar.xz) = 75b36b5018e014e9c187f86de4333494c05760b0f1ddf02b46e969f477202d7998aadbbb6b3ee1f0a1ed950e764e4ad706f7040ae2845339c56d671fd812e148
+SHA512 (gcc-13.1.1-20230426.tar.xz) = 7a588d7720c67fce57ab483168684195810a168f3234667151d0b76638d15ae50d8f9de0c9f2c2aaa1345e45c46577575b717dbb73f8cccce79932c37cacac5a
SHA512 (isl-0.24.tar.bz2) = aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
SHA512 (newlib-cygwin-9e09d6ed83cce4777a5950412647ccc603040409.tar.xz) = bef3fa04f7b1a915fc1356ebed114698b5cc835e9fa04b0becff05a9efc76c59fb376482990873d222d7acdcfee3c4f30f5a4cb7f3be1f291f1fa5f1c7a9d983
SHA512 (nvptx-tools-93e00909ceb9cbbc104f0fcba56c0361ffb3ca4b.tar.xz) = c719fad8689b2b6f3c888d0308604ddef884037d71ec3e755c68052d30075a181c29358fda516833ace437921b17602b147be7886317be94ec9736faa8cb52be
diff --git a/update-gcc.sh b/update-gcc.sh
index b6c0315..0c357f3 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-13.0.1-$d/ $1 | xz -9e > gcc-13.0.1-$d.tar.xz
+git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-13.1.1-$d/ $1 | xz -9e > gcc-13.1.1-$d.tar.xz
rm -rf gcc-dir.tmp