Patch to update glibc for GCC's builtin creal/cimag/conj
Joseph S. Myers
jsm28@cam.ac.uk
Fri Jan 5 11:28:00 GMT 2001
I've added builtin cimag/creal/conj (including the float/long double
versions) to GCC, so the inline functions can be disabled for recent
GCC. Patch:
2001-01-05 Joseph S. Myers <jsm28@cam.ac.uk>
* math/bits/cmathcalls.h: Don't define inline cimag, creal or conj
for GCC 2.97 or later.
--- math/bits/cmathcalls.h.orig Sat Sep 16 08:33:59 2000
+++ math/bits/cmathcalls.h Thu Jan 4 14:27:03 2001
@@ -130,8 +130,9 @@
/* Now some optimized versions. GCC has handy notations for these
- functions. */
-#if defined __GNUC__ && defined __OPTIMIZE__
+ functions. Recent GCC handles these as builtin functions so doesn't
+ need inlines. */
+#if defined __GNUC__ && !__GNUC_PREREQ (2, 97) && defined __OPTIMIZE__
/* Imaginary part of Z. */
extern __inline _Mdouble_
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Libc-alpha
mailing list