re PR middle-end/11771 (Segfault with simple double arithmetics)
authorRoger Sayle <roger@eyesopen.com>
Mon, 4 Aug 2003 23:46:34 +0000 (23:46 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 4 Aug 2003 23:46:34 +0000 (23:46 +0000)
commit02a1994cbad7e89f535ee982c80def2bd6e7d9bf
tree9c669844e1a60281f0d3d519b7d1aa95ce112ec3
parentf2593a6649384b002184762c58b083eb5f8e939f
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
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20030804-1.c [new file with mode: 0644]