diff mbox

Use SET_DECL_MODE in libcc1

Message ID 87k23mkify.fsf@linaro.org
State New
Headers show

Commit Message

Richard Sandiford July 5, 2017, 3:32 p.m. UTC
Applied as obvious after testing on aarch64-linux-gnu and x86_64-linux-gnu.

Richard


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

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

Patch

Index: libcc1/libcp1plugin.cc
===================================================================
--- libcc1/libcp1plugin.cc	2017-07-02 09:32:31.826745247 +0100
+++ libcc1/libcp1plugin.cc	2017-07-05 16:31:20.451371750 +0100
@@ -1887,7 +1887,7 @@  plugin_build_field (cc1_plugin::connecti
 	= 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));