From d8448c583ef6ce71f2ee46749ee24d0218df6907 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 5 Jul 2017 15:32:37 +0000 Subject: [PATCH] Use SET_DECL_MODE in libcc1 2017-07-05 Richard Sandiford libcc1/ * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE. From-SVN: r250004 --- libcc1/ChangeLog | 4 ++++ libcc1/libcp1plugin.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index ec795c78fcd..dc1073410c5 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,7 @@ +2017-07-05 Richard Sandiford + + * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE. + 2017-06-30 Nathan Sidwell * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name. diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 7397888373b..ad33d7a7807 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -1887,7 +1887,7 @@ plugin_build_field (cc1_plugin::connection *, = c_build_bitfield_integer_type (bitsize, TYPE_UNSIGNED (field_type)); } - DECL_MODE (decl) = TYPE_MODE (TREE_TYPE (decl)); + SET_DECL_MODE (decl, TYPE_MODE (TREE_TYPE (decl))); // There's no way to recover this from DWARF. SET_DECL_OFFSET_ALIGN (decl, TYPE_PRECISION (pointer_sized_int_node)); -- 2.30.2