summaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-09 10:42:41 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-09 10:42:41 +0000
commit57510da6e9a4e4531a9c885b964eb91b28d12b10 (patch)
tree313ca7904b15a0726151fda796478590e5a2afa6 /gcc/builtins.c
parent3a2a1581bf444ee7b777251663df927b7cf97a67 (diff)
downloadgcc-57510da6e9a4e4531a9c885b964eb91b28d12b10.tar.gz
2008-12-09 Andrew Haley <aph@redhat.com>
* fixed-value.c (do_fixed_add): Add comment. * tree-ssa-loop-ivopts.c (iv_ca_cost): Likewise. * builtins.c (fold_builtin_sqrt): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 63ca618a384..745a125fe70 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -7681,6 +7681,8 @@ 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. */
+ /* This was a conditional expression but it triggered a bug
+ in the Solaris 8 compiler. */
REAL_VALUE_TYPE dconstroot;
if (BUILTIN_SQRT_P (fcode))
dconstroot = dconsthalf;