mirror of
git://sourceware.org/git/glibc.git
synced 2026-11-28 12:17:57 +08:00
Remove pre GCC3.2 optimizations from string/bits/string2.h.
* string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
* string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
(__STRING2_SMALL_GET32): Remove.
(memset): Remove.
(__memset_1): Remove.
(__memset_gc): Remove.
(__mempcpy): Remove.
(mempcpy): Remove.
(__mempcpy_args): Remove.
(strchr): Remove.
(strcpy): Remove.
(strcpy_args): Remove.
(__stpcpy_args): Remove.
(__strcmp_cc): Remove.
(__strcmp_gc): Remove.
(strstr): Remove.
This commit is contained in:
+1
-3
@@ -602,7 +602,7 @@ extern char *basename (const char *__filename) __THROW __nonnull ((1));
|
||||
#endif
|
||||
|
||||
|
||||
#if defined __GNUC__ && __GNUC__ >= 2
|
||||
#if __GNUC_PREREQ (3,4)
|
||||
# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \
|
||||
&& !defined __NO_INLINE__ && !defined __cplusplus
|
||||
/* When using GNU CC we provide some optimized versions of selected
|
||||
@@ -640,8 +640,6 @@ extern char *basename (const char *__filename) __THROW __nonnull ((1));
|
||||
&& defined __extern_always_inline && __GNUC_PREREQ (3,2)
|
||||
# if !defined _FORCE_INLINES && !defined _HAVE_STRING_ARCH_mempcpy
|
||||
|
||||
#undef mempcpy
|
||||
#undef __mempcpy
|
||||
#define mempcpy(dest, src, n) __mempcpy_inline (dest, src, n)
|
||||
#define __mempcpy(dest, src, n) __mempcpy_inline (dest, src, n)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user