From f0baea16ed1970584af5d6a92c7ef3dbfcb3a161 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 11 Feb 2017 16:38:55 +0000 Subject: document patch --- 5.4.0/gentoo/78_all_gcc-5-pr71442.patch | 36 ++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to '5.4.0') diff --git a/5.4.0/gentoo/78_all_gcc-5-pr71442.patch b/5.4.0/gentoo/78_all_gcc-5-pr71442.patch index 1398a3b..ba5eb3a 100644 --- a/5.4.0/gentoo/78_all_gcc-5-pr71442.patch +++ b/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 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 -+ -+ 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 + + 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 -- cgit v1.2.3-65-gdbad