fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
authorRichard Biener <rguenther@suse.de>
Mon, 1 Dec 2014 15:43:58 +0000 (15:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 1 Dec 2014 15:43:58 +0000 (15:43 +0000)
commitcd04ce7fb911311dae2532765e6b7b89c14c2561
tree8cb54ef068a9c4c27cb670e3acb40e482d29addc
parent7d1f4ae5f155c0656ef53d7692bb81b424c28220
fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.

2014-12-01  Richard Biener  <rguenther@suse.de>

* fold-const.c (const_binop): Handle POINTER_PLUS_EXPR.
Properly handle FIXED_CST shifts by INTEGER_CST.
(const_binop): Move COMPLEX_EXPR, VEC_PACK_TRUNC_EXPR,
VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR,
VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_EVEN_EXPR and
VEC_WIDEN_MULT_ODD_EXPR handling here from ...
(fold_binary_loc): ... here.  Call const_binop overload
with result type.

From-SVN: r218223
gcc/ChangeLog
gcc/fold-const.c