This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 07/19] Mark internal _itoa functions hidden
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 14 Oct 2015 15:45:16 -0700
- Subject: [PATCH 07/19] Mark internal _itoa functions hidden
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Since internal _itoa functions are only used internally in ld.so and
libc.so, they can be made hidden.
[BZ #19122]
* sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
(_itoa_word): Likewise.
---
sysdeps/generic/_itoa.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sysdeps/generic/_itoa.h b/sysdeps/generic/_itoa.h
index 632e24c..bd9d3bc 100644
--- a/sysdeps/generic/_itoa.h
+++ b/sysdeps/generic/_itoa.h
@@ -42,7 +42,7 @@
Use upper case letters iff UPPER_CASE is nonzero. */
extern char *_itoa (unsigned long long int value, char *buflim,
- unsigned int base, int upper_case);
+ unsigned int base, int upper_case) attribute_hidden;
extern const char _itoa_upper_digits[];
extern const char _itoa_lower_digits[];
@@ -53,7 +53,8 @@ hidden_proto (_itoa_lower_digits)
#if IS_IN (libc)
extern char *_itoa_word (_ITOA_WORD_TYPE value, char *buflim,
- unsigned int base, int upper_case);
+ unsigned int base,
+ int upper_case) attribute_hidden;
#else
static inline char * __attribute__ ((unused, always_inline))
_itoa_word (_ITOA_WORD_TYPE value, char *buflim,
--
2.4.3