diff options
author | glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-03 12:54:50 +0000 |
---|---|---|
committer | glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-03 12:54:50 +0000 |
commit | 872e3ff8fa4b3cffcaf8f4a6d67e70fc249994c3 (patch) | |
tree | 6b7c7c72bff2b1fe534b35aeca0f7784c1776826 /gcc | |
parent | 5f78e41db413d107bb22a9c8247437b682c10871 (diff) | |
download | gcc-872e3ff8fa4b3cffcaf8f4a6d67e70fc249994c3.tar.gz |
2013-04-03 Marc Glisse <marc.glisse@inria.fr>
* tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
BIT_FIELD_REF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197409 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-flow-inline.h | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a9120a42c3e..1acdadbcd4f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index e3a70bf203e..d5b2185102c 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -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: { |