Skip to content
Snippets Groups Projects
Commit 02a1994c authored by Roger Sayle's avatar Roger Sayle Committed by Roger Sayle
Browse files

re PR middle-end/11771 (Segfault with simple double arithmetics)

	PR middle-end/11771
	* fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
	logic in negate_expr, i.e. we don't invert (A-B) for floating
	point types unless flag_unsafe_math_optimizations.

	* gcc.c-torture/compile/20030804-1.c: New test case.

From-SVN: r70159
parent f2593a66
No related branches found
No related tags found
No related merge requests found
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