builtins.c (expand_errno_check): Assume that flag_errno_math and HONOR_NANS have...
authorRoger Sayle <roger@eyesopen.com>
Thu, 19 Jun 2003 19:30:34 +0000 (19:30 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 19 Jun 2003 19:30:34 +0000 (19:30 +0000)
commit6dab8d4cdf065d4045132d01e9c2556bdcab4195
tree7af02d8fec3c643ce7d7d78668269c6d7cfb822d
parentcf8e4b78762b282387140a4cf54c880bbc87acd4
builtins.c (expand_errno_check): Assume that flag_errno_math and HONOR_NANS have been tested before calling here.

* builtins.c (expand_errno_check): Assume that flag_errno_math
and HONOR_NANS have been tested before calling here.  Only try
to set errno ourselves if the decl can't throw an exception.
(expand_builtin_mathfn): Move the code to stabilize the arg
after the main switch, so that that its only done when needed.
BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
Don't modify the original expr when stabilizing the argument.
(expand_builtin_mathfn_2): Likewise, move the code to stabilize
the args after the main switch, and don't modify the orginal exp.

From-SVN: r68217
gcc/ChangeLog
gcc/builtins.c