aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-02-25 09:58:47 -0500
committerJason Merrill <jason@redhat.com>2022-05-04 09:54:02 -0400
commit9c6a4beeed572f9e235f881e00ad8c63b6bcc9df (patch)
tree356ad0232c7b7fa9861bd7124187ec792219087d /libcpp
parenteca04dc8555f5fae462fbd16386da9aaf38a0711 (diff)
downloadgcc-9c6a4beeed572f9e235f881e00ad8c63b6bcc9df.zip
gcc-9c6a4beeed572f9e235f881e00ad8c63b6bcc9df.tar.gz
gcc-9c6a4beeed572f9e235f881e00ad8c63b6bcc9df.tar.bz2
c++: Remove cdtor_label
Jakub pointed out that cdtor_label is unnecessary, we should get all the desired semantics with a normal return. gcc/cp/ChangeLog: * cp-tree.h (struct language_function): Remove x_cdtor_label. (cdtor_label, LABEL_DECL_CDTOR): Remove. * constexpr.cc (returns): Don't check LABEL_DECL_CDTOR. (cxx_eval_constant_expression): Don't call returns. * decl.cc (check_goto): Don't check cdtor_label. (start_preparsed_function): And don't set it. (finish_constructor_body, finish_destructor_body): Remove. (finish_function_body): Don't call them. * typeck.cc (check_return_expr): Handle cdtor_returns_this here. * semantics.cc (finish_return_stmt): Not here.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions