A patch for string/string.h
H.J. Lu
hjl@lucon.org
Sat Oct 24 18:33:00 GMT 1998
This optimization includes all kinds of files. We should not do it
for POSIX nor XOPEN.
--
H.J. Lu (hjl@gnu.org)
---
Sat Oct 24 18:14:03 1998 H.J. Lu <hjl@gnu.org>
* string/string.h: Optimize only for __USE_MISC or __USE_GNU.
Index: string/string.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/string/string.h,v
retrieving revision 1.1.1.23
diff -u -r1.1.1.23 string.h
--- string.h 1998/10/08 15:11:46 1.1.1.23
+++ string.h 1998/10/22 03:33:12
@@ -303,7 +303,7 @@
#endif
-#if defined __GNUC__ && __GNUC__ >= 2
+#if defined __GNUC__ && __GNUC__ >= 2 && (defined __USE_MISC || defined __GNU_GNU)
# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ && !defined __cplusplus
/* When using GNU CC we provide some optimized versions of selected
functions from this header. There are two kinds of optimizations:
More information about the Libc-hacker
mailing list