vapier      17/02/11 16:38:55

  Modified:             78_all_gcc-5-pr71442.patch
  Log:
  document patch

Revision  Changes    Path
1.2                  src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch?r1=1.1&r2=1.2

Index: 78_all_gcc-5-pr71442.patch
===================================================================
RCS file: 
/var/cvsroot/gentoo/src/patchsets/gcc/5.4.0/gentoo/78_all_gcc-5-pr71442.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 78_all_gcc-5-pr71442.patch  1 Feb 2017 21:03:53 -0000       1.1
+++ 78_all_gcc-5-pr71442.patch  11 Feb 2017 16:38:55 -0000      1.2
@@ -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 @@
  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  <[email protected]>
-+
-+      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  <[email protected]>
+
+       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




Reply via email to