diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-10-05 12:10:55 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-10-05 12:10:55 +0000 |
commit | 87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123 (patch) | |
tree | 2d41124961ddfd8ba4e2c6256e1ea90ef095ee6d /gcc/cp/except.c | |
parent | 9eabdc5e16a1fe10028244f779cde7b01bca7629 (diff) | |
download | gcc-87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123.zip gcc-87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123.tar.gz gcc-87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123.tar.bz2 |
[C++ PATCH] Kill IDENTIFIER_GLOBAL_VALUE
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00239.html
Kill IDENTIFIER_GLOBAL_VALUE, SET_IDENTIFIER_GLOBAL_VALUE
* cp-tree.h (IDENTIFIER_GLOBAL_VALUE,
SET_IDENTIFIER_GLOBAL_VALUE): Delete.
* name-lookup.h (set_global_binding): Remove NAME parm.
(get_global_binding): New inline fn.
* name-lookup.c (set_global_binding): Remove NAME parm. Adjust.
(identifier_global_value): Move to ...
* cp-objcp-common.c (identifier_global_value): ... here.
* class.c (build_ctor_vtbl_group, build_vtbl_initializer): Adjust.
* decl.c (record_builtin_type, expand_static_init,
grokdeclarator): Adjust.
* decl2.c (get_guard, get_local_tls_init_fn, get_tls_init_fn,
get_tls_wrapper_fn, maybe_warn_sized_delete): Adjust.
* except.c (declare_library_fn, build_throw): Adjust.
* init.c (throw_bad_array_length): Adjust.
* rtti.c (throw_bad_cast, throw_bad_typeid, get_tinfo_decl): Adjust.
From-SVN: r253444
Diffstat (limited to 'gcc/cp/except.c')
-rw-r--r-- | gcc/cp/except.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 2ee7e97..ecc8941 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -147,7 +147,7 @@ declare_library_fn (const char *name, tree rtype, tree ptype, int ecf, int tm_ecf) { tree ident = get_identifier (name); - tree res = IDENTIFIER_GLOBAL_VALUE (ident); + tree res = get_global_binding (ident); if (!res) { tree type = build_function_type_list (rtype, ptype, NULL_TREE); @@ -158,7 +158,7 @@ declare_library_fn (const char *name, tree rtype, tree ptype, char *tm_name = concat ("_ITM_", name + 2, NULL_TREE); tree tm_ident = get_identifier (tm_name); free (tm_name); - tree tm_fn = IDENTIFIER_GLOBAL_VALUE (tm_ident); + tree tm_fn = get_global_binding (tm_ident); if (!tm_fn) tm_fn = push_library_fn (tm_ident, type, except, ecf | tm_ecf); record_tm_replacement (res, tm_fn); @@ -609,7 +609,7 @@ build_throw (tree exp) if (!throw_fn) { tree name = get_identifier ("__cxa_throw"); - throw_fn = IDENTIFIER_GLOBAL_VALUE (name); + throw_fn = get_global_binding (name); if (!throw_fn) { /* Declare void __cxa_throw (void*, void*, void (*)(void*)). */ @@ -622,7 +622,7 @@ build_throw (tree exp) if (flag_tm) { tree itm_name = get_identifier ("_ITM_cxa_throw"); - tree itm_fn = IDENTIFIER_GLOBAL_VALUE (itm_name); + tree itm_fn = get_global_binding (itm_name); if (!itm_fn) itm_fn = push_throw_library_fn (itm_name, tmp); apply_tm_attr (itm_fn, get_identifier ("transaction_pure")); @@ -764,7 +764,7 @@ build_throw (tree exp) if (!rethrow_fn) { tree name = get_identifier ("__cxa_rethrow"); - rethrow_fn = IDENTIFIER_GLOBAL_VALUE (name); + rethrow_fn = get_global_binding (name); if (!rethrow_fn) /* Declare void __cxa_rethrow (void). */ rethrow_fn = push_throw_library_fn |