diff options
author | Ron <ron@debian.org> | 2009-06-27 04:44:20 +0930 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-05 20:27:17 -0400 |
commit | 00c8ece258acfa8867485172af9e74313d25bbdf (patch) | |
tree | e8e6ce9889202cfbd44e23ef7b7d1f5907b9d5b8 /libc/sysdeps | |
parent | b9b00cd60abd606fee136efbf6c376aace5f3f2a (diff) |
Provide token prototypes for functions that are external but have no header
This cuts down on a lot of noise from gcc-4.4
Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_assert.c | 5 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_atexit.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_errno_addr.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_localeconv.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_memclr.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_memcpy.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_memmove.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_memset.c | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c | 15 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/find_exidx.c | 4 |
10 files changed, 24 insertions, 28 deletions
diff --git a/libc/sysdeps/linux/arm/aeabi_assert.c b/libc/sysdeps/linux/arm/aeabi_assert.c index 53943ac13..348ca9b96 100644 --- a/libc/sysdeps/linux/arm/aeabi_assert.c +++ b/libc/sysdeps/linux/arm/aeabi_assert.c @@ -22,9 +22,8 @@ /* libc_hidden_proto(__assert) */ -void -__aeabi_assert (const char *assertion, const char *file, - unsigned int line) +void __aeabi_assert(const char *assertion, const char *file, unsigned int line); +void __aeabi_assert(const char *assertion, const char *file, unsigned int line) { __assert (assertion, file, line, NULL); } diff --git a/libc/sysdeps/linux/arm/aeabi_atexit.c b/libc/sysdeps/linux/arm/aeabi_atexit.c index 4a7a6f1dc..ebb233b4f 100644 --- a/libc/sysdeps/linux/arm/aeabi_atexit.c +++ b/libc/sysdeps/linux/arm/aeabi_atexit.c @@ -24,8 +24,8 @@ libc_hidden_proto(__cxa_atexit) /* Register a function to be called by exit or when a shared library is unloaded. This routine is like __cxa_atexit, but uses the calling sequence required by the ARM EABI. */ -int -__aeabi_atexit (void *arg, void (*func) (void *), void *d) +int __aeabi_atexit (void *arg, void (*func) (void *), void *d); +int __aeabi_atexit (void *arg, void (*func) (void *), void *d) { return __cxa_atexit (func, arg, d); } diff --git a/libc/sysdeps/linux/arm/aeabi_errno_addr.c b/libc/sysdeps/linux/arm/aeabi_errno_addr.c index 09bdc1efe..5e262a6d9 100644 --- a/libc/sysdeps/linux/arm/aeabi_errno_addr.c +++ b/libc/sysdeps/linux/arm/aeabi_errno_addr.c @@ -18,8 +18,8 @@ #include <errno.h> -volatile int * -__aeabi_errno_addr (void) +volatile int * __aeabi_errno_addr (void); +volatile int * __aeabi_errno_addr (void) { return &errno; } diff --git a/libc/sysdeps/linux/arm/aeabi_localeconv.c b/libc/sysdeps/linux/arm/aeabi_localeconv.c index 6fa29bbad..4c34f573f 100644 --- a/libc/sysdeps/linux/arm/aeabi_localeconv.c +++ b/libc/sysdeps/linux/arm/aeabi_localeconv.c @@ -20,8 +20,8 @@ /* libc_hidden_proto(localeconv) */ -struct lconv * -__aeabi_localeconv (void) +struct lconv * __aeabi_localeconv (void); +struct lconv * __aeabi_localeconv (void) { return localeconv (); } diff --git a/libc/sysdeps/linux/arm/aeabi_memclr.c b/libc/sysdeps/linux/arm/aeabi_memclr.c index c0f90216c..9125bac04 100644 --- a/libc/sysdeps/linux/arm/aeabi_memclr.c +++ b/libc/sysdeps/linux/arm/aeabi_memclr.c @@ -22,8 +22,8 @@ /* Clear memory. Can't alias to bzero because it's not defined in the same translation unit. */ -void -__aeabi_memclr (void *dest, size_t n) +void __aeabi_memclr (void *dest, size_t n); +void __aeabi_memclr (void *dest, size_t n) { memset (dest, 0, n); } diff --git a/libc/sysdeps/linux/arm/aeabi_memcpy.c b/libc/sysdeps/linux/arm/aeabi_memcpy.c index 83eac0b67..604c139f3 100644 --- a/libc/sysdeps/linux/arm/aeabi_memcpy.c +++ b/libc/sysdeps/linux/arm/aeabi_memcpy.c @@ -23,8 +23,8 @@ /* Copy memory like memcpy, but no return value required. Can't alias to memcpy because it's not defined in the same translation unit. */ -void -__aeabi_memcpy (void *dest, const void *src, size_t n) +void __aeabi_memcpy (void *dest, const void *src, size_t n); +void __aeabi_memcpy (void *dest, const void *src, size_t n) { memcpy (dest, src, n); } diff --git a/libc/sysdeps/linux/arm/aeabi_memmove.c b/libc/sysdeps/linux/arm/aeabi_memmove.c index 164d72bc9..7ecfbb7b9 100644 --- a/libc/sysdeps/linux/arm/aeabi_memmove.c +++ b/libc/sysdeps/linux/arm/aeabi_memmove.c @@ -23,8 +23,8 @@ /* Copy memory like memmove, but no return value required. Can't alias to memmove because it's not defined in the same translation unit. */ -void -__aeabi_memmove (void *dest, const void *src, size_t n) +void __aeabi_memmove (void *dest, const void *src, size_t n); +void __aeabi_memmove (void *dest, const void *src, size_t n) { memmove (dest, src, n); } diff --git a/libc/sysdeps/linux/arm/aeabi_memset.c b/libc/sysdeps/linux/arm/aeabi_memset.c index f1c366f27..a37e21fda 100644 --- a/libc/sysdeps/linux/arm/aeabi_memset.c +++ b/libc/sysdeps/linux/arm/aeabi_memset.c @@ -22,8 +22,8 @@ /* Set memory like memset, but different argument order and no return value required. */ -void -__aeabi_memset (void *dest, size_t n, int c) +void __aeabi_memset (void *dest, size_t n, int c); +void __aeabi_memset (void *dest, size_t n, int c) { memset (dest, c, n); } diff --git a/libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c b/libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c index e657d3836..4544dc7d6 100644 --- a/libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c +++ b/libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c @@ -24,20 +24,17 @@ #include <stdlib.h> -attribute_hidden -void -__aeabi_unwind_cpp_pr0 (void) +attribute_hidden void __aeabi_unwind_cpp_pr0 (void); +attribute_hidden void __aeabi_unwind_cpp_pr0 (void) { } -attribute_hidden -void -__aeabi_unwind_cpp_pr1 (void) +attribute_hidden void __aeabi_unwind_cpp_pr1 (void); +attribute_hidden void __aeabi_unwind_cpp_pr1 (void) { } -attribute_hidden -void -__aeabi_unwind_cpp_pr2 (void) +attribute_hidden void __aeabi_unwind_cpp_pr2 (void); +attribute_hidden void __aeabi_unwind_cpp_pr2 (void) { } diff --git a/libc/sysdeps/linux/arm/find_exidx.c b/libc/sysdeps/linux/arm/find_exidx.c index 9e4f4012f..a16534bb0 100644 --- a/libc/sysdeps/linux/arm/find_exidx.c +++ b/libc/sysdeps/linux/arm/find_exidx.c @@ -65,8 +65,8 @@ find_exidx_callback (struct dl_phdr_info * info, size_t size, void * ptr) /* Find the exception index table containing PC. */ -_Unwind_Ptr -__gnu_Unwind_Find_exidx (_Unwind_Ptr pc, int * pcount) +_Unwind_Ptr __gnu_Unwind_Find_exidx (_Unwind_Ptr pc, int * pcount); +_Unwind_Ptr __gnu_Unwind_Find_exidx (_Unwind_Ptr pc, int * pcount) { struct unw_eh_callback_data data; |