X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Falias.c;h=49f2c6b11471241af00e91474e0f62ed7e8dc62d;hb=1e5fcbe2009a34584768d8b8833756bc8de97dc3;hp=e096cbf6bc3d5b654975e636e7906d5eec45c66d;hpb=b056d8127419206eaa5c4eb583f3eb70804ea922;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/alias.c b/gcc/alias.c index e096cbf6bc3..49f2c6b1147 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -450,9 +450,7 @@ get_alias_set (tree t) } /* Check for accesses through restrict-qualified pointers. */ - if (TREE_CODE (inner) == INDIRECT_REF - || TREE_CODE (inner) == ALIGN_INDIRECT_REF - || TREE_CODE (inner) == MISALIGNED_INDIRECT_REF) + if (INDIRECT_REF_P (inner)) { tree decl = find_base_decl (TREE_OPERAND (inner, 0)); @@ -484,7 +482,7 @@ get_alias_set (tree t) type, then we would believe that other subsets of the pointed-to type (such as fields of that type) do not conflict with the type pointed to - by the restricted pointer. */ + by the restricted pointer. */ DECL_POINTER_ALIAS_SET (decl) = pointed_to_alias_set; else @@ -2008,9 +2006,7 @@ nonoverlapping_memrefs_p (rtx x, rtx y) moffsetx = adjust_offset_for_component_ref (exprx, moffsetx); exprx = t; } - else if (TREE_CODE (exprx) == INDIRECT_REF - || TREE_CODE (exprx) == ALIGN_INDIRECT_REF - || TREE_CODE (exprx) == MISALIGNED_INDIRECT_REF) + else if (INDIRECT_REF_P (exprx)) { exprx = TREE_OPERAND (exprx, 0); if (flag_argument_noalias < 2 @@ -2027,9 +2023,7 @@ nonoverlapping_memrefs_p (rtx x, rtx y) moffsety = adjust_offset_for_component_ref (expry, moffsety); expry = t; } - else if (TREE_CODE (expry) == INDIRECT_REF - || TREE_CODE (expry) == ALIGN_INDIRECT_REF - || TREE_CODE (expry) == MISALIGNED_INDIRECT_REF) + else if (INDIRECT_REF_P (expry)) { expry = TREE_OPERAND (expry, 0); if (flag_argument_noalias < 2