]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix some build warnings on s390x
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Sat, 8 Dec 2012 07:33:24 +0000 (13:03 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Sat, 8 Dec 2012 07:33:24 +0000 (13:03 +0530)
ChangeLog
nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c
sysdeps/s390/jmpbuf-unwind.h
sysdeps/s390/s390-64/memcmp.S
sysdeps/s390/s390-64/memcpy.S
sysdeps/s390/s390-64/memset.S

index 4ef504200ef857a57d41392e6119a599217c7912..576300fbb678a16be731853216f41226534cea33 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
+       void pointer and cast to uintptr_t.
+       * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
+       path.
+       * sysdeps/s390/s390-64/memcpy.S: Likewise.
+       * sysdeps/s390/s390-64/memset.S: Likewise.
+
 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
 
        [BZ #14833]
index e8c1ddf7e7a42ea7fda9193d2b2593cd490769d9..b95068716e4f2b86aaf55f75102e1580f7358341 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * sysdeps/unix/sysv/linux/s390/jmp-unwind.c (_longjmp_unwind):
+       Declare LOCAL_VAR as char.
+
 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__old_sem_post):
index 3f8853917a490ff8a5ef85ff0a0ba2adc60a0a20..bb2dfc065ac16c82be2c21b34d44507f00fa85e9 100644 (file)
@@ -1,5 +1,5 @@
 /* Clean up stack frames unwound by longjmp.  Linux/s390 version.
-   Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2003-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,7 +27,7 @@ extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
 void
 _longjmp_unwind (jmp_buf env, int val)
 {
-  unsigned char local_var;
+  char local_var;
 
 #ifdef SHARED
   if (__libc_pthread_functions_init)
index 8ae35c1b9a63d0d947165fdf42bbbcef237dc193..7da35398c93b035275056ac326e5d04af6a4a172 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
 
 static inline uintptr_t __attribute__ ((unused))
 _jmpbuf_sp (__jmp_buf regs)
 {
-  uintptr_t sp = regs[0].__gregs[__JB_GPR15];
+  void *sp = (void *) (uintptr_t) regs[0].__gregs[__JB_GPR15];
 #ifdef PTR_DEMANGLE
   PTR_DEMANGLE (sp);
 #endif
-  return sp;
+  return (uintptr_t) sp;
 }
 
 #define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj) \
index e0b62e3a4540d4334178592e1a741d3face92353..1b43440d4dfcc448ac2ecbfa49ea657331c9b6e0 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 
-#include "sysdep.h"
+#include <sysdep.h>
 #include "asm-syntax.h"
 
 /* INPUT PARAMETERS
index 1e5f050b8fc476a9dc444f08169f660c488964ab..bae8836209b172b5464a0ab453f3a41d7eb41456 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 
-#include "sysdep.h"
+#include <sysdep.h>
 #include "asm-syntax.h"
 
 /* INPUT PARAMETERS
index 6b3007bd91cec522628ad5cef980388202471e12..4edfb4ee655b1c91bcbdb3041166dc6a42afa67e 100644 (file)
@@ -1,5 +1,5 @@
 /* Set a block of memory to some byte value.  64 bit S/390 version.
-   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2001-2012 Free Software Foundation, Inc.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
    This file is part of the GNU C Library.
 
@@ -18,7 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 
-#include "sysdep.h"
+#include <sysdep.h>
 #include "asm-syntax.h"
 
 /* INPUT PARAMETERS