expr.c (get_bit_range): Handle *MEM_REF's.

* expr.c (get_bit_range): Handle *MEM_REF's.

From-SVN: r176891
This commit is contained in:
Aldy Hernandez 2011-07-28 19:48:48 +00:00 committed by Aldy Hernandez
parent dc0ff1c802
commit 86f9864124
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-07-28 Aldy Hernandez <aldyh@redhat.com>
* expr.c (get_bit_range): Handle *MEM_REF's.
2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
* rtlanal.c (tablejump_p): False for returns.

View File

@ -4158,7 +4158,10 @@ get_bit_range (unsigned HOST_WIDE_INT *bitstart,
/* If other threads can't see this value, no need to restrict stores. */
if (ALLOW_STORE_DATA_RACES
|| (!ptr_deref_may_alias_global_p (innerdecl)
|| ((TREE_CODE (innerdecl) == MEM_REF
|| TREE_CODE (innerdecl) == TARGET_MEM_REF)
&& !ptr_deref_may_alias_global_p (TREE_OPERAND (innerdecl, 0)))
|| (DECL_P (innerdecl)
&& (DECL_THREAD_LOCAL_P (innerdecl)
|| !TREE_STATIC (innerdecl))))
{