Blame SOURCES/glibc-rh1505492-prototypes-4.patch

00db10
commit c13a72b7c4864f23b9f2e96a3369e5875ed3b51b
00db10
Author: Will Newton <will.newton@linaro.org>
00db10
Date:   Thu Feb 6 08:54:20 2014 +0000
00db10
00db10
    malloc/mtrace.c: Cosmetic cleanup.
00db10
    
00db10
    Remove an unused #define and use ANSI prototypes.
00db10
    
00db10
    Generated code identical on x86_64-unknown-linux-gnu.
00db10
    
00db10
    ChangeLog:
00db10
    
00db10
    2014-02-11  Will Newton  <will.newton@linaro.org>
00db10
    
00db10
            * malloc/mtrace.c (attribute_hidden): Remove unused macro
00db10
            definition.  (tr_where, tr_freehook, tr_mallochook,
00db10
            tr_reallochook, tr_memalignhook): Use ANSI protoype.
00db10
00db10
Conflicts:
00db10
	malloc/mtrace.c
00db10
00db10
Textual conflicts due to missing backport of commit
00db10
6c8dbf00f536d78b1937b5af6f57be47fd376344 (Reformat malloc to gnu
00db10
style.).
00db10
00db10
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
00db10
index 34ec2a85b219882c..5c4deda5a55a799c 100644
00db10
--- a/malloc/mtrace.c
00db10
+++ b/malloc/mtrace.c
00db10
@@ -41,10 +41,6 @@
00db10
 
00db10
 #include <kernel-features.h>
00db10
 
00db10
-#ifndef attribute_hidden
00db10
-# define attribute_hidden
00db10
-#endif
00db10
-
00db10
 #define TRACE_BUFFER_SIZE 512
00db10
 
00db10
 static FILE *mallstream;
00db10
@@ -77,12 +73,8 @@ tr_break (void)
00db10
 }
00db10
 libc_hidden_def (tr_break)
00db10
 
00db10
-static void tr_where (const __ptr_t, Dl_info *) __THROW internal_function;
00db10
-static void
00db10
-internal_function
00db10
-tr_where (caller, info)
00db10
-     const __ptr_t caller;
00db10
-     Dl_info *info;
00db10
+static void internal_function
00db10
+tr_where (const __ptr_t caller, Dl_info *info)
00db10
 {
00db10
   if (caller != NULL)
00db10
     {
00db10
@@ -115,7 +107,6 @@ tr_where (caller, info)
00db10
     }
00db10
 }
00db10
 
00db10
-
00db10
 static Dl_info *
00db10
 lock_and_info (const __ptr_t caller, Dl_info *mem)
00db10
 {
00db10
@@ -129,12 +120,8 @@ lock_and_info (const __ptr_t caller, Dl_info *mem)
00db10
   return res;
00db10
 }
00db10
 
00db10
-
00db10
-static void tr_freehook (__ptr_t, const __ptr_t) __THROW;
00db10
 static void
00db10
-tr_freehook (ptr, caller)
00db10
-     __ptr_t ptr;
00db10
-     const __ptr_t caller;
00db10
+tr_freehook (__ptr_t ptr, const __ptr_t caller)
00db10
 {
00db10
   if (ptr == NULL)
00db10
     return;
00db10
@@ -159,11 +146,8 @@ tr_freehook (ptr, caller)
00db10
   __libc_lock_unlock (lock);
00db10
 }
00db10
 
00db10
-static __ptr_t tr_mallochook (size_t, const __ptr_t) __THROW;
00db10
 static __ptr_t
00db10
-tr_mallochook (size, caller)
00db10
-     size_t size;
00db10
-     const __ptr_t caller;
00db10
+tr_mallochook (size_t size, const __ptr_t caller)
00db10
 {
00db10
   __ptr_t hdr;
00db10
 
00db10
@@ -189,13 +173,8 @@ tr_mallochook (size, caller)
00db10
   return hdr;
00db10
 }
00db10
 
00db10
-static __ptr_t tr_reallochook (__ptr_t, size_t, const __ptr_t)
00db10
-     __THROW;
00db10
 static __ptr_t
00db10
-tr_reallochook (ptr, size, caller)
00db10
-     __ptr_t ptr;
00db10
-     size_t size;
00db10
-     const __ptr_t caller;
00db10
+tr_reallochook (__ptr_t ptr, size_t size, const __ptr_t caller)
00db10
 {
00db10
   __ptr_t hdr;
00db10
 
00db10
@@ -237,12 +216,8 @@ tr_reallochook (ptr, size, caller)
00db10
   return hdr;
00db10
 }
00db10
 
00db10
-static __ptr_t tr_memalignhook (size_t, size_t,
00db10
-				const __ptr_t) __THROW;
00db10
 static __ptr_t
00db10
-tr_memalignhook (alignment, size, caller)
00db10
-     size_t alignment, size;
00db10
-     const __ptr_t caller;
00db10
+tr_memalignhook (size_t alignment, size_t size, const __ptr_t caller)
00db10
 {
00db10
   __ptr_t hdr;
00db10
 
00db10
@@ -271,7 +246,6 @@ tr_memalignhook (alignment, size, caller)
00db10
 }
00db10
 
00db10
 
00db10
-
00db10
 #ifdef _LIBC
00db10
 
00db10
 /* This function gets called to make sure all memory the library