diff options
author | Andrew Haley <aph@redhat.com> | 2008-12-09 10:42:41 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2008-12-09 10:42:41 +0000 |
commit | 30da611174c5fe050203f6ff0faa237c522f96ff (patch) | |
tree | 313ca7904b15a0726151fda796478590e5a2afa6 /gcc | |
parent | 6f9f0ce349db8290053b5e3cd8b7b117cb47aaad (diff) | |
download | gcc-30da611174c5fe050203f6ff0faa237c522f96ff.zip gcc-30da611174c5fe050203f6ff0faa237c522f96ff.tar.gz gcc-30da611174c5fe050203f6ff0faa237c522f96ff.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/builtins.c | 2 | ||||
-rw-r--r-- | gcc/fixed-value.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 2 |
4 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db5ed5b..6f4c937 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> PR/38366 diff --git a/gcc/builtins.c b/gcc/builtins.c index 63ca618..745a125 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 26aaa02..d7f6413 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 0059443..683d7d4 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 |