From 30da611174c5fe050203f6ff0faa237c522f96ff Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Tue, 9 Dec 2008 10:42:41 +0000 Subject: [PATCH] fixed-value.c (do_fixed_add): Add comment. 2008-12-09 Andrew Haley * 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 --- gcc/ChangeLog | 6 ++++++ gcc/builtins.c | 2 ++ gcc/fixed-value.c | 2 ++ gcc/tree-ssa-loop-ivopts.c | 2 ++ 4 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db5ed5b10a6..6f4c937cbfc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-12-09 Andrew Haley + + * 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 PR/38366 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; diff --git a/gcc/fixed-value.c b/gcc/fixed-value.c index 26aaa023c84..d7f6413b29a 100644 --- a/gcc/fixed-value.c +++ b/gcc/fixed-value.c @@ -295,6 +295,8 @@ do_fixed_add (FIXED_VALUE_TYPE *f, const FIXED_VALUE_TYPE *a, double_int temp; int i_f_bits; + /* This was a conditional expression but it triggered a bug in the + Solaris 8 compiler. */ if (subtract_p) temp = double_int_neg (b->data); else diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 00594432bc0..683d7d4b5fa 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -4355,6 +4355,8 @@ iv_ca_add_use (struct ivopts_data *data, struct iv_ca *ivs, static comp_cost 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) return infinite_cost; else -- 2.11.4.GIT