aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-07-05 22:51:44 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-07-05 22:51:44 +0200
commit99e4ed786384cceafd7db5dbe21d1d36bcaa35a6 (patch)
treefd558d4e8269bdf2f630216464760fbb710a7056 /gcc
parent9eb5f744ae21f805a1e5b80aabc6d86306f3b3d7 (diff)
downloadgcc-99e4ed786384cceafd7db5dbe21d1d36bcaa35a6.zip
gcc-99e4ed786384cceafd7db5dbe21d1d36bcaa35a6.tar.gz
gcc-99e4ed786384cceafd7db5dbe21d1d36bcaa35a6.tar.bz2
re PR c++/67184 (Missed optimization with C++11 final specifier)
PR c++/67184 PR c++/69445 * call.c (build_new_method_call_1): Remove set but not used variable binfo. From-SVN: r273149
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/call.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 05e4555..1967c9b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2019-07-05 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/67184
+ PR c++/69445
+ * call.c (build_new_method_call_1): Remove set but not used variable
+ binfo.
+
2019-07-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67184 (again)
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 90116f4..e597d7a 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -9564,7 +9564,7 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
struct z_candidate *candidates = 0, *cand;
tree explicit_targs = NULL_TREE;
tree basetype = NULL_TREE;
- tree access_binfo, binfo;
+ tree access_binfo;
tree optype;
tree first_mem_arg = NULL_TREE;
tree name;
@@ -9603,7 +9603,6 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
if (!conversion_path)
conversion_path = BASELINK_BINFO (fns);
access_binfo = BASELINK_ACCESS_BINFO (fns);
- binfo = BASELINK_BINFO (fns);
optype = BASELINK_OPTYPE (fns);
fns = BASELINK_FUNCTIONS (fns);
if (TREE_CODE (fns) == TEMPLATE_ID_EXPR)