diff options
author | Joseph Benden <joe@benden.us> | 2019-05-08 11:52:56 -0700 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-06-16 16:40:08 +0200 |
commit | 88c07c655262ea63c342e7c9df67cfe36fe3e5df (patch) | |
tree | 249f0c4db7f90c33210d986937d0828d5c183106 /toolchain/gcc/patches/9.1.0/975-g++-ICE-with-generic-lambda.patch | |
parent | 9b53201d9c53cd7021455ac9748b3dba744b468b (diff) | |
download | upstream-88c07c655262ea63c342e7c9df67cfe36fe3e5df.tar.gz upstream-88c07c655262ea63c342e7c9df67cfe36fe3e5df.tar.bz2 upstream-88c07c655262ea63c342e7c9df67cfe36fe3e5df.zip |
toolchain: Add GCC 9.1.0 release
Most of the patches are copied over from GCC 8.3.
The following patches are backported from the GCC 9.X development branch:
toolchain/gcc/patches/9.1.0/970-recompute-dom-fast-queries-before-vn.patch
toolchain/gcc/patches/9.1.0/975-g++-ICE-with-generic-lambda.patch
The specs file changed with gcc 9, now it contains "%@{L*}" instead of
"%{L*}" in older GCC versions.
Signed-off-by: Joseph Benden <joe@benden.us>
Diffstat (limited to 'toolchain/gcc/patches/9.1.0/975-g++-ICE-with-generic-lambda.patch')
-rw-r--r-- | toolchain/gcc/patches/9.1.0/975-g++-ICE-with-generic-lambda.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/9.1.0/975-g++-ICE-with-generic-lambda.patch b/toolchain/gcc/patches/9.1.0/975-g++-ICE-with-generic-lambda.patch new file mode 100644 index 0000000000..2adc9cfabe --- /dev/null +++ b/toolchain/gcc/patches/9.1.0/975-g++-ICE-with-generic-lambda.patch @@ -0,0 +1,43 @@ +From 7a1606168f60622f73a7dd90778e2a148a2c520c Mon Sep 17 00:00:00 2001 +From: mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Mon, 6 May 2019 17:08:08 +0000 +Subject: [PATCH] PR c++/90265 - ICE with generic lambda. * pt.c + (tsubst_copy_and_build): Use a dedicated variable for the last + element in the vector. + + * g++.dg/cpp1y/lambda-generic-90265.C: New test. + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-9-branch@270919 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + gcc/cp/ChangeLog | 6 ++++++ + gcc/cp/pt.c | 3 ++- + gcc/testsuite/ChangeLog | 5 +++++ + gcc/testsuite/g++.dg/cpp1y/lambda-generic-90265.C | 4 ++++ + 4 files changed, 17 insertions(+), 1 deletion(-) + create mode 100644 gcc/testsuite/g++.dg/cpp1y/lambda-generic-90265.C + +--- a/gcc/cp/ChangeLog ++++ b/gcc/cp/ChangeLog +@@ -1,3 +1,9 @@ ++2019-05-06 Marek Polacek <polacek@redhat.com> ++ ++ PR c++/90265 - ICE with generic lambda. ++ * pt.c (tsubst_copy_and_build): Use a dedicated variable for the last ++ element in the vector. ++ + 2019-05-03 Release Manager + + * GCC 9.1.0 released. +--- a/gcc/cp/pt.c ++++ b/gcc/cp/pt.c +@@ -18881,7 +18881,8 @@ tsubst_copy_and_build (tree t, + if (thisarg) + { + /* Shift the other args over to make room. */ +- vec_safe_push (call_args, (*call_args)[nargs-1]); ++ tree last = (*call_args)[nargs - 1]; ++ vec_safe_push (call_args, last); + for (int i = nargs-1; i > 0; --i) + (*call_args)[i] = (*call_args)[i-1]; + (*call_args)[0] = thisarg; |