From 75f8b378927f86757eedbbca6745467d0c3d6212 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 12 Jul 2017 19:46:33 +0000 Subject: [PATCH] libcp1plugin.cc (plugin_build_decl): Use DECL_CXX_{CON,DE}STRUCTOR directly. * libcp1plugin.cc (plugin_build_decl): Use DECL_CXX_{CON,DE}STRUCTOR directly. From-SVN: r250159 --- libcc1/ChangeLog | 5 +++++ libcc1/libcp1plugin.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index dc1073410c5..a5acf0df000 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,8 @@ +2017-07-12 Nathan Sidwell + + * libcp1plugin.cc (plugin_build_decl): Use + DECL_CXX_{CON,DE}STRUCTOR directly. + 2017-07-05 Richard Sandiford * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE. diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index ad33d7a7807..8dd5e673838 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -1419,9 +1419,9 @@ plugin_build_decl (cc1_plugin::connection *self, if (ctor || dtor) { if (ctor) - DECL_CONSTRUCTOR_P (decl) = 1; + DECL_CXX_CONSTRUCTOR_P (decl) = 1; if (dtor) - DECL_DESTRUCTOR_P (decl) = 1; + DECL_CXX_DESTRUCTOR_P (decl) = 1; } else { -- 2.30.2