diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-05-13 17:15:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-05-13 17:15:27 +0000 |
commit | 847a35a07b6412a24f8978cf2a7fafc4e5c4a471 (patch) | |
tree | ac048fe0118dbfe866c01038331f2114fa89b1d4 | |
parent | 936365c1da8bb783a29c4f94c30b8099d8bdd4f7 (diff) | |
download | glibc-847a35a07b6412a24f8978cf2a7fafc4e5c4a471.zip glibc-847a35a07b6412a24f8978cf2a7fafc4e5c4a471.tar.gz glibc-847a35a07b6412a24f8978cf2a7fafc4e5c4a471.tar.bz2 |
Update.
* string/string.h: Don't use the optimized versions for the string
functions if optimizing for space.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | string/string.h | 8 |
2 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,8 @@ 1998-05-13 Ulrich Drepper <drepper@cygnus.com> + * string/string.h: Don't use the optimized versions for the string + functions if optimizing for space. + * stdlib/tst-strtod.c: Add test for -0.0. * io/ftwtest-sh: Prevent tests from being run by root. diff --git a/string/string.h b/string/string.h index 266a5d5..ee69a78 100644 --- a/string/string.h +++ b/string/string.h @@ -298,7 +298,8 @@ extern char *basename __P ((__const char *__filename)); #endif -#if defined __GNUC__ && __GNUC__ >= 2 && defined __OPTIMIZE__ +#if defined __GNUC__ && __GNUC__ >= 2 +# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ /* When using GNU CC we provide some optimized versions of selected functions from this header. There are two kinds of optimizations: @@ -318,10 +319,11 @@ extern char *basename __P ((__const char *__filename)); One can inhibit all optimizations by defining __NO_STRING_INLINES. */ /* Get the machine-dependent optimizations (if any). */ -# include <bits/string.h> +# include <bits/string.h> /* These are generic optimizations which do not add too much inline code. */ -# include <bits/string2.h> +# include <bits/string2.h> +# endif #endif __END_DECLS |