Commit 903eccd1 by Eric Botcazou Committed by Eric Botcazou

* gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.

From-SVN: r228828
parent 4c1f41e1
2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
* gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
2015-10-14 Peter Bergner <bergner@vnet.ibm.com> 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
Torvald Riegel <triegel@redhat.com> Torvald Riegel <triegel@redhat.com>
...@@ -4985,6 +4985,12 @@ gimplify_addr_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) ...@@ -4985,6 +4985,12 @@ gimplify_addr_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p)
ret = GS_OK; ret = GS_OK;
break; break;
case MEM_REF:
if (integer_zerop (TREE_OPERAND (op0, 1)))
goto do_indirect_ref;
/* ... fall through ... */
default: default:
/* If we see a call to a declared builtin or see its address /* If we see a call to a declared builtin or see its address
being taken (we can unify those cases here) then we can mark being taken (we can unify those cases here) then we can mark
......
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