Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libm/complex/cacos.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 2c10bacc4..f33a2fef4 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libm/complex/cacos.c: Reorder function calls to work around ICE
+ in arm/thumb-gcc.
+
2010-10-27 Maurice Baijens <maurice.baijens@ellips.nl>
* libc/stdlib/strtol.c: Make sure signed characters are not
diff --git a/newlib/libm/complex/cacos.c b/newlib/libm/complex/cacos.c
index d871617e3..3196d970f 100644
--- a/newlib/libm/complex/cacos.c
+++ b/newlib/libm/complex/cacos.c
@@ -83,6 +83,7 @@ cacos(double complex z)
double complex w;
w = casin(z);
- w = (M_PI_2 - creal(w)) - cimag(w) * I;
+ w = M_PI_2 - creal(w);
+ w -= (cimag(w) * I);
return w;
}