Skip to content
Snippets Groups Projects
Commit 960f80d1 authored by Richard Guenther's avatar Richard Guenther Committed by Richard Biener
Browse files

re PR middle-end/27116 (Incorrect integer division (wrong sign).)

2006-06-08  Richard Guenther  <rguenther@suse.de>

	PR middle-end/27116
	* fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
	only, if overflow is defined and not trapping.
	(negate_expr): Likewise.

	* gcc.dg/torture/pr27116.c: New testcase.
	* gcc.dg/pr15785-1.c: Remove test for invalid transformation.

From-SVN: r114483
parent 8e08deeb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment