From: Richard Sandiford Date: Wed, 5 Jul 2017 15:32:37 +0000 (+0000) Subject: Use SET_DECL_MODE in libcc1 X-Git-Tag: basepoints/gcc-9~6117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8448c583ef6ce71f2ee46749ee24d0218df6907;p=thirdparty%2Fgcc.git Use SET_DECL_MODE in libcc1 2017-07-05 Richard Sandiford libcc1/ * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE. From-SVN: r250004 --- diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index ec795c78fcd5..dc1073410c51 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 7397888373b4..ad33d7a78070 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));