r250853 - in /trunk/gcc: ChangeLog fold-const.c...
rguenth@gcc.gnu.org
rguenth@gcc.gnu.org
Thu Aug 3 11:52:00 GMT 2017
Author: rguenth
Date: Thu Aug 3 11:52:00 2017
New Revision: 250853
URL: https://gcc.gnu.org/viewcvs?rev=250853&root=gcc&view=rev
Log:
2017-08-03 Richard Biener <rguenther@suse.de>
PR middle-end/81148
* fold-const.c (split_tree): Add minus_var and minus_con
arguments, remove unused loc arg. Never generate NEGATE_EXPRs
here but always use minus_*.
(associate_trees): Assert we never associate with MINUS_EXPR
and NULL first operand. Do not recurse for PLUS_EXPR operands
when associating as MINUS_EXPR either.
(fold_binary_loc): Track minus_var and minus_con.
* c-c++-common/ubsan/pr81148.c: New testcase.
Added:
trunk/gcc/testsuite/c-c++-common/ubsan/pr81148.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list