aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/builtins.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e42b704..4585e75 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-01 Roger Sayle <roger@eyesopen.com>
+
+ * builtins.c (fold_builtin_copysign): Delete unreachable code.
+
2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
PR target/25761
diff --git a/gcc/builtins.c b/gcc/builtins.c
index e0cf55e..b9755bf 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -8208,9 +8208,9 @@ fold_builtin_copysign (tree fndecl, tree arglist, tree type)
c1 = TREE_REAL_CST (arg1);
c2 = TREE_REAL_CST (arg2);
+ /* c1.sign := c2.sign. */
real_copysign (&c1, &c2);
return build_real (type, c1);
- c1.sign = c2.sign;
}
/* copysign(X, Y) is fabs(X) when Y is always non-negative.