Commit 3fa35298 by Marc Glisse Committed by Marc Glisse

tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle BIT_FIELD_REF.

2013-04-03  Marc Glisse  <marc.glisse@inria.fr>

	* tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
	BIT_FIELD_REF.

From-SVN: r197409
parent 46e1f4bf
2013-04-03 Marc Glisse <marc.glisse@inria.fr>
* tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
BIT_FIELD_REF.
2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
......
......@@ -1246,7 +1246,13 @@ get_addr_base_and_unit_offset_1 (tree exp, HOST_WIDE_INT *poffset,
switch (TREE_CODE (exp))
{
case BIT_FIELD_REF:
return NULL_TREE;
{
HOST_WIDE_INT this_off = TREE_INT_CST_LOW (TREE_OPERAND (exp, 2));
if (this_off % BITS_PER_UNIT)
return NULL_TREE;
byte_offset += this_off / BITS_PER_UNIT;
}
break;
case COMPONENT_REF:
{
......
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