diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2015-10-14 21:32:04 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-10-14 21:32:04 +0000 |
commit | 903eccd1d5e371d7a15e86595f7058eb178c0c04 (patch) | |
tree | 23f5469c5959af59c02cb1cc1ca5d903054332f0 /gcc/gimplify.c | |
parent | 4c1f41e15229f5c53d9b12fc8790009889935008 (diff) | |
download | gcc-903eccd1d5e371d7a15e86595f7058eb178c0c04.zip gcc-903eccd1d5e371d7a15e86595f7058eb178c0c04.tar.gz gcc-903eccd1d5e371d7a15e86595f7058eb178c0c04.tar.bz2 |
* gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
From-SVN: r228828
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 071645f..ab9e540 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -4985,6 +4985,12 @@ gimplify_addr_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) ret = GS_OK; break; + case MEM_REF: + if (integer_zerop (TREE_OPERAND (op0, 1))) + goto do_indirect_ref; + + /* ... fall through ... */ + default: /* 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 |