fold-const.c (fold_addr_of_array_ref_difference): Properly convert operands before...
authorRichard Biener <rguenther@suse.de>
Thu, 22 Oct 2015 08:38:15 +0000 (08:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 22 Oct 2015 08:38:15 +0000 (08:38 +0000)
commita8fc25795155d4c4d18c8c5b099748a8178b38f6
tree4694c561d25d8bedd003e8cea3438b6d9b14d34d
parentcfed37a03b7a495b25e63d335e9f00e2dc9583f0
fold-const.c (fold_addr_of_array_ref_difference): Properly convert operands before folding a MINUS_EXPR.

2015-10-22  Richard Biener  <rguenther@suse.de>

* fold-const.c (fold_addr_of_array_ref_difference): Properly
convert operands before folding a MINUS_EXPR.
(fold_binary_loc): Move simplification of MINUS_EXPR on
converted POINTER_PLUS_EXPRs ...
* match.pd: ... here.

c/
* c-typeck.c (c_finish_omp_clauses): Properly convert operands
before folding a MINUS_EXPR.

cp/
* semantics.c (cp_finish_omp_clause_depend_sink): Properly convert
before folding a MINUS_EXPR.
(finish_omp_clauses): Likewise.

From-SVN: r229167
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/fold-const.c
gcc/match.pd