Commit 30da6111 by Andrew Haley Committed by Andrew Haley

fixed-value.c (do_fixed_add): Add comment.

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.

From-SVN: r142589
parent 6f9f0ce3
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.
2008-12-09 Kai Tietz <kai.tietz@onevision.com> 2008-12-09 Kai Tietz <kai.tietz@onevision.com>
PR/38366 PR/38366
...@@ -7681,6 +7681,8 @@ fold_builtin_sqrt (tree arg, tree type) ...@@ -7681,6 +7681,8 @@ fold_builtin_sqrt (tree arg, tree type)
tree arg0 = CALL_EXPR_ARG (arg, 0); tree arg0 = CALL_EXPR_ARG (arg, 0);
tree tree_root; tree tree_root;
/* The inner root was either sqrt or cbrt. */ /* 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; REAL_VALUE_TYPE dconstroot;
if (BUILTIN_SQRT_P (fcode)) if (BUILTIN_SQRT_P (fcode))
dconstroot = dconsthalf; dconstroot = dconsthalf;
......
...@@ -295,6 +295,8 @@ do_fixed_add (FIXED_VALUE_TYPE *f, const FIXED_VALUE_TYPE *a, ...@@ -295,6 +295,8 @@ do_fixed_add (FIXED_VALUE_TYPE *f, const FIXED_VALUE_TYPE *a,
double_int temp; double_int temp;
int i_f_bits; int i_f_bits;
/* This was a conditional expression but it triggered a bug in the
Solaris 8 compiler. */
if (subtract_p) if (subtract_p)
temp = double_int_neg (b->data); temp = double_int_neg (b->data);
else else
......
...@@ -4355,6 +4355,8 @@ iv_ca_add_use (struct ivopts_data *data, struct iv_ca *ivs, ...@@ -4355,6 +4355,8 @@ iv_ca_add_use (struct ivopts_data *data, struct iv_ca *ivs,
static comp_cost static comp_cost
iv_ca_cost (struct iv_ca *ivs) iv_ca_cost (struct iv_ca *ivs)
{ {
/* This was a conditional expression but it triggered a bug in the
Solaris 8 compiler. */
if (ivs->bad_uses) if (ivs->bad_uses)
return infinite_cost; return infinite_cost;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment