olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-s390-backtrace.patch

25845f
commit 618cebeff82ae775308eb29d7891e22861411e21
25845f
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
25845f
Date:   Thu Nov 13 10:42:31 2014 +0100
25845f
25845f
    S/390: Get rid of warning: the comparision will always evaluate as false.
25845f
25845f
diff --git a/sysdeps/s390/s390-32/backtrace.c b/sysdeps/s390/s390-32/backtrace.c
25845f
index 1dbe37eeb6f6db08..0db076804895e200 100644
25845f
--- a/sysdeps/s390/s390-32/backtrace.c
25845f
+++ b/sysdeps/s390/s390-32/backtrace.c
25845f
@@ -77,10 +77,6 @@ init (void)
25845f
   if (unwind_getip == NULL)
25845f
     unwind_backtrace = NULL;
25845f
 }
25845f
-#else
25845f
-# define unwind_backtrace _Unwind_Backtrace
25845f
-# define unwind_getip _Unwind_GetIP
25845f
-#endif
25845f
 
25845f
 static int
25845f
 __backchain_backtrace (void **array, int size)
25845f
@@ -107,6 +103,10 @@ __backchain_backtrace (void **array, int size)
25845f
 
25845f
   return cnt;
25845f
 }
25845f
+#else
25845f
+# define unwind_backtrace _Unwind_Backtrace
25845f
+# define unwind_getip _Unwind_GetIP
25845f
+#endif
25845f
 
25845f
 static _Unwind_Reason_Code
25845f
 backtrace_helper (struct _Unwind_Context *ctx, void *a)
25845f
@@ -130,9 +130,10 @@ __backtrace (void **array, int size)
25845f
   __libc_once_define (static, once);
25845f
 
25845f
   __libc_once (once, init);
25845f
-#endif
25845f
+
25845f
   if (unwind_backtrace == NULL)
25845f
     return __backchain_backtrace (array, size);
25845f
+#endif
25845f
 
25845f
   if (size >= 1)
25845f
     unwind_backtrace (backtrace_helper, &arg;;
25845f
diff --git a/sysdeps/s390/s390-64/backtrace.c b/sysdeps/s390/s390-64/backtrace.c
25845f
index 562d461f97ad5bca..548d312f3cc05151 100644
25845f
--- a/sysdeps/s390/s390-64/backtrace.c
25845f
+++ b/sysdeps/s390/s390-64/backtrace.c
25845f
@@ -76,12 +76,8 @@ init (void)
25845f
   if (unwind_getip == NULL)
25845f
     unwind_backtrace = NULL;
25845f
 }
25845f
-#else
25845f
-# define unwind_backtrace _Unwind_Backtrace
25845f
-# define unwind_getip _Unwind_GetIP
25845f
-#endif
25845f
 
25845f
-int
25845f
+static int
25845f
 __backchain_backtrace (void **array, int size)
25845f
 {
25845f
   /* We assume that all the code is generated with frame pointers set.  */
25845f
@@ -106,6 +102,10 @@ __backchain_backtrace (void **array, int size)
25845f
 
25845f
   return cnt;
25845f
 }
25845f
+#else
25845f
+# define unwind_backtrace _Unwind_Backtrace
25845f
+# define unwind_getip _Unwind_GetIP
25845f
+#endif
25845f
 
25845f
 static _Unwind_Reason_Code
25845f
 backtrace_helper (struct _Unwind_Context *ctx, void *a)
25845f
@@ -129,9 +129,10 @@ __backtrace (void **array, int size)
25845f
   __libc_once_define (static, once);
25845f
 
25845f
   __libc_once (once, init);
25845f
-#endif
25845f
+
25845f
   if (unwind_backtrace == NULL)
25845f
     return __backchain_backtrace (array, size);
25845f
+#endif
25845f
 
25845f
   if (size >= 1)
25845f
     unwind_backtrace (backtrace_helper, &arg;;