From: Eric Botcazou Date: Wed, 14 Oct 2015 21:32:04 +0000 (+0000) Subject: * gimplify.c (gimplify_addr_expr) : New case. X-Git-Tag: basepoints/gcc-7~3956 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=903eccd1d5e371d7a15e86595f7058eb178c0c04;p=thirdparty%2Fgcc.git * gimplify.c (gimplify_addr_expr) : New case. From-SVN: r228828 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b2a38daec48b..3b08986ed0ec 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 071645fc0e33..ab9e540e76d4 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