r249742 - in /trunk/gcc: ChangeLog fold-const.c...

rguenth@gcc.gnu.org rguenth@gcc.gnu.org
Wed Jun 28 14:24:00 GMT 2017


Author: rguenth
Date: Wed Jun 28 14:24:00 2017
New Revision: 249742

URL: https://gcc.gnu.org/viewcvs?rev=249742&root=gcc&view=rev
Log:
2017-06-28  Richard Biener  <rguenther@suse.de>

	PR middle-end/81227
	* fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
	TYPE_OVERFLOW_WRAPS.
	* match.pd (negate_expr_p): Likewise.
	* tree-ssa-reassoc.c (optimize_range_tests_diff): Use
	fold_build2, not fold_binary.

	* gcc.dg/pr81227.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr81227.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/match.pd
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c



More information about the Gcc-cvs mailing list