summaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-07-12 19:46:33 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2017-07-12 19:46:33 +0000
commit9f827c183940125f1a88b5abe6c1ad4bf1faf3b7 (patch)
tree552c5ae2713e55640d5187d60bf48cf8b65a30e9 /libcc1
parentc0a09bf1d6017a3fbc69cd004173bb869cb2acc7 (diff)
downloadgcc-9f827c183940125f1a88b5abe6c1ad4bf1faf3b7.tar.gz
* libcp1plugin.cc (plugin_build_decl): Use
DECL_CXX_{CON,DE}STRUCTOR directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250159 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcc1')
-rw-r--r--libcc1/ChangeLog5
-rw-r--r--libcc1/libcp1plugin.cc4
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 <nathan@acm.org>
+
+ * libcp1plugin.cc (plugin_build_decl): Use
+ DECL_CXX_{CON,DE}STRUCTOR directly.
+
2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
* 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
{