This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to update glibc for GCC's builtin creal/cimag/conj


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]