diff options
author | Andrew Haley <aph@redhat.com> | 2008-12-08 12:30:24 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2008-12-08 12:30:24 +0000 |
commit | cb4ad1803bb18a23d347385e3d8b83fd6a981d9e (patch) | |
tree | a40e4e4be9ff9a6bd850682dfafca2001ca9643a /gcc/builtins.c | |
parent | a5d137be06367ea715356dfd14b2683ac607e191 (diff) | |
download | gcc-cb4ad1803bb18a23d347385e3d8b83fd6a981d9e.zip gcc-cb4ad1803bb18a23d347385e3d8b83fd6a981d9e.tar.gz gcc-cb4ad1803bb18a23d347385e3d8b83fd6a981d9e.tar.bz2 |
gimple.h (gimple_build_try): Fix declaration.
2008-12-08 Andrew Haley <aph@redhat.com>
Kamaraju Kusumanchi <raju.mailinglists@gmail.com>
* gimple.h (gimple_build_try): Fix declaration.
* builtins.c (fold_builtin_sqrt): Don't use a conditional
operator.
* fixed-value.c (do_fixed_add): Likewise.
* tree-ssa-loop-ivopts.c (iv_ca_cost): Likewise.
Co-Authored-By: Kamaraju Kusumanchi <raju.mailinglists@gmail.com>
From-SVN: r142549
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 4d507cf..63ca618 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -7681,8 +7681,11 @@ fold_builtin_sqrt (tree arg, tree type) tree arg0 = CALL_EXPR_ARG (arg, 0); tree tree_root; /* The inner root was either sqrt or cbrt. */ - REAL_VALUE_TYPE dconstroot = - BUILTIN_SQRT_P (fcode) ? dconsthalf : dconst_third (); + REAL_VALUE_TYPE dconstroot; + if (BUILTIN_SQRT_P (fcode)) + dconstroot = dconsthalf; + else + dconstroot = dconst_third (); /* Adjust for the outer root. */ SET_REAL_EXP (&dconstroot, REAL_EXP (&dconstroot) - 1); |