summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2017-02-11 16:38:55 +0000
committerMike Frysinger <vapier@gentoo.org>2017-02-11 16:38:55 +0000
commitaa82d317688fab6af48ade001ea32227066a7d57 (patch)
treeb628b387cbce1fc1be65c17f8cf5ea3df0da3a4d
parentadd upstream fix for #602968 and prepare for ~arch (diff)
downloadgentoo-aa82d317688fab6af48ade001ea32227066a7d57.tar.gz
gentoo-aa82d317688fab6af48ade001ea32227066a7d57.tar.bz2
gentoo-aa82d317688fab6af48ade001ea32227066a7d57.zip
document patch
-rw-r--r--src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch b/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch
index 1398a3b651..ba5eb3ad39 100644
--- a/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch
+++ b/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch
@@ -1,11 +1,23 @@
+https://bugs.gentoo.org/586052
+https://gcc.gnu.org/PR71442
+https://gcc.gnu.org/ml/gcc-patches/2016-06/msg00494.html
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=237234
+
From 79a00c21567bb5e7a8868a25aa5b3b87cae6f0a9 Mon Sep 17 00:00:00 2001
From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 8 Jun 2016 18:05:38 +0000
-Subject: [PATCH] PR c++/71442 * pt.c (tsubst_copy): Only set
- TREE_USED on DECLs.
+Subject: [C++ PATCH] Fix -Wunused-* regression (PR c++/71442)
- * g++.dg/cpp0x/Wunused-variable-1.C: New test.
+Marek has recently added code to set TREE_USED bits on the elements of
+TREE_VEC referenced in SIZEOF_EXPR.
+But, as the testcase shows, it can be used on various parameter/argument
+packs, some of them have types as elements, others decls.
+And IMHO we want to set TREE_USED only on the decls listed in those,
+for types TREE_USED should be a property of the type regardless of whether
+the type is mentioned in sizeof... or not, otherwise we suddenly stop
+diagnosing any unused vars with those types.
+Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/6.2/5.5?
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@237234 138bc75d-0d04-0410-961f-82ee72b054a4
---
@@ -16,19 +28,11 @@ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@237234 138bc75d-
4 files changed, 49 insertions(+), 1 deletion(-)
create mode 100644 gcc/testsuite/g++.dg/cpp0x/Wunused-variable-1.C
-diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
-index 5c93ca4..06fb12a 100644
---- a/gcc/cp/ChangeLog
-+++ b/gcc/cp/ChangeLog
-@@ -1,3 +1,8 @@
-+2016-06-08 Jakub Jelinek <jakub@redhat.com>
-+
-+ PR c++/71442
-+ * pt.c (tsubst_copy): Only set TREE_USED on DECLs.
-+
- 2016-06-03 Release Manager
-
- * GCC 5.4.0 released.
+2016-06-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/71442
+ * pt.c (tsubst_copy): Only set TREE_USED on DECLs.
+
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 2889795..7bbde32 100644
--- a/gcc/cp/pt.c