From d39e3a1edc07e715e5f2f5b12901310184ee31fe Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 4 Nov 2010 18:27:13 +0000 Subject: =?UTF-8?q?2010-11-04=20=20Ralf=20Cors=C3=A9pius=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libm/complex/cacos.c: Reorder function calls to work around ICE in arm/thumb-gcc. --- newlib/libm/complex/cacos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newlib/libm') 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; } -- cgit v1.2.3