diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2019-12-30 13:23:40 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2019-12-30 13:23:40 +0000 |
commit | 04e4997a567142f56dc83eba67b9590c0431d7da (patch) | |
tree | 4e9336e6cb50d2d78040a5f54b7d2abb69f7a81a /libcc1 | |
parent | 9332e5acbf0d79cda8321365a688fc22d7b5e261 (diff) | |
download | gcc-04e4997a567142f56dc83eba67b9590c0431d7da.zip gcc-04e4997a567142f56dc83eba67b9590c0431d7da.tar.gz gcc-04e4997a567142f56dc83eba67b9590c0431d7da.tar.bz2 |
decl2.c (delete_sanity): Add location_t parameter and use it throughout.
/gcc/cp
2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
* decl2.c (delete_sanity): Add location_t parameter and use
it throughout.
* init.c (build_vec_delete_1): Likewise.
(build_delete): Likewise.
(build_vec_delete): Likewise.
(perform_target_ctor): Adjust call.
(perform_member_init): Likewise.
(build_vec_init): Likewise.
* decl.c (cxx_maybe_build_cleanup): Likewise.
* pt.c (tsubst_copy_and_build): Likewise.
* parser.c (cp_parser_delete_expression): Likewise, pass the
combined_loc.
* cp-tree.h: Update declarations.
/libcc1
2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
* libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
call.
/gcc/testsuite
2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/init/delete1.C: Check locations too.
* g++.dg/ipa/pr85607.C: Likewise.
* g++.dg/warn/Wdelete-incomplete-1.C: Likewise.
* g++.dg/warn/delete-non-virtual-dtor.C: Likewise.
* g++.dg/warn/incomplete1.C: Likewise.
From-SVN: r279768
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/ChangeLog | 5 | ||||
-rw-r--r-- | libcc1/libcp1plugin.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index a56deb5..21622bd 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,8 @@ +2019-12-30 Paolo Carlini <paolo.carlini@oracle.com> + + * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity + call. + 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com> * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 56eaf9b..aae19ac 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -2812,7 +2812,8 @@ plugin_build_unary_expr (cc1_plugin::connection *self, case DELETE_EXPR: case VEC_DELETE_EXPR: - result = delete_sanity (op0, NULL_TREE, opcode == VEC_DELETE_EXPR, + result = delete_sanity (input_location, op0, NULL_TREE, + opcode == VEC_DELETE_EXPR, global_scope_p, tf_error); break; |