From 903eccd1d5e371d7a15e86595f7058eb178c0c04 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 14 Oct 2015 21:32:04 +0000 Subject: [PATCH] * gimplify.c (gimplify_addr_expr) : New case. From-SVN: r228828 --- gcc/ChangeLog | 4 ++++ gcc/gimplify.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2a38daec48..3b08986ed0e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-10-14 Eric Botcazou + + * gimplify.c (gimplify_addr_expr) : New case. + 2015-10-14 Peter Bergner Torvald Riegel diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 071645fc0e3..ab9e540e76d 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 -- 2.30.2