summaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2019-05-20 13:49:53 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2019-05-20 13:49:53 +0000
commit6db76e48c18bae5432634a83643542dacf2273e9 (patch)
tree6d3edd79956d8bce5509eb3ddbba1ccf9ba719f5 /libcc1
parenteb061601564dfe61d8a2fe8519a7b6057af2b17d (diff)
[C++ PATCH] Commonixe using directive finishing
https://gcc.gnu.org/ml/gcc-patches/2019-05/msg01251.html gcc/cp/ * name-lookup.c (finish_namespace_using_directive) (finish_local_using_directive): Merge to ... (finish_using_directive): ... here. Handle both contexts. * name-lookup.h (finish_namespace_using_directive) (finish_local_using_directive): Replace with ... (finish_using_directive): ... this. * parser.c (cp_parser_using_directive): Adjust. * pt.c (tsubst_expr): Likewise. libcc1/ * libcp1plugin.cc (plugin_add_using_namespace): Call renamed finish_using_directive. From-SVN: r271420
Diffstat (limited to 'libcc1')
-rw-r--r--libcc1/ChangeLog5
-rw-r--r--libcc1/libcp1plugin.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog
index 0570304b9b7..376e3622410 100644
--- a/libcc1/ChangeLog
+++ b/libcc1/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-20 Nathan Sidwell <nathan@acm.org>
+
+ * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
+ finish_using_directive.
+
2019-01-01 Jakub Jelinek <jakub@redhat.com>
Update copyright years.
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc
index 2aab488ba2a..eed94662f85 100644
--- a/libcc1/libcp1plugin.cc
+++ b/libcc1/libcp1plugin.cc
@@ -941,7 +941,7 @@ plugin_add_using_namespace (cc1_plugin::connection *,
gcc_assert (TREE_CODE (used_ns) == NAMESPACE_DECL);
- finish_namespace_using_directive (used_ns, NULL_TREE);
+ finish_using_directive (used_ns, NULL_TREE);
return 1;
}