Commit d8448c58 by Richard Sandiford Committed by Richard Sandiford

Use SET_DECL_MODE in libcc1

2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>

libcc1/
	* libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.

From-SVN: r250004
parent b8506a8a
2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
* libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
2017-06-30 Nathan Sidwell <nathan@acm.org> 2017-06-30 Nathan Sidwell <nathan@acm.org>
* libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name. * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
......
...@@ -1887,7 +1887,7 @@ plugin_build_field (cc1_plugin::connection *, ...@@ -1887,7 +1887,7 @@ plugin_build_field (cc1_plugin::connection *,
= c_build_bitfield_integer_type (bitsize, TYPE_UNSIGNED (field_type)); = 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. // There's no way to recover this from DWARF.
SET_DECL_OFFSET_ALIGN (decl, TYPE_PRECISION (pointer_sized_int_node)); SET_DECL_OFFSET_ALIGN (decl, TYPE_PRECISION (pointer_sized_int_node));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment