]> git.ipfire.org Git - thirdparty/gcc.git/commit
builtins.c (fold_builtin_hypot): Rearrange recursive transformation before others...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 29 Oct 2006 23:08:23 +0000 (23:08 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 29 Oct 2006 23:08:23 +0000 (23:08 +0000)
commit012c53688f45b1f6adcfe36b4ce5ec01b7f95944
tree528c604c4234ce45889c8180077ec5e944d5ea0f
parentcd07aa11f91bcd8b0eb89d0f60412b3008a0ca6a
builtins.c (fold_builtin_hypot): Rearrange recursive transformation before others, and also do ABS_EXPR.

* builtins.c (fold_builtin_hypot): Rearrange recursive
transformation before others, and also do ABS_EXPR.  When
necessary, check flag_unsafe_math_optimizations.  When necessary,
add fabs.

testsuite:
* gcc.dg/builtins-20.c: Add more hypot tests.

From-SVN: r118160
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-20.c