aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2012-12-08 13:03:24 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2012-12-08 13:03:24 +0530
commit56e7d3ad5c2f369349bf7def0d8875a50e2d275b (patch)
tree0e34ff4e97b380d098c0cf65b083b1147c1f9a00
parent76f2d2ea7b1ecaeab5f91fe7c560c7c3f8ad5c8d (diff)
downloadglibc-56e7d3ad5c2f369349bf7def0d8875a50e2d275b.tar
glibc-56e7d3ad5c2f369349bf7def0d8875a50e2d275b.tar.gz
glibc-56e7d3ad5c2f369349bf7def0d8875a50e2d275b.tar.bz2
glibc-56e7d3ad5c2f369349bf7def0d8875a50e2d275b.zip
Fix some build warnings on s390x
-rw-r--r--ChangeLog9
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c4
-rw-r--r--sysdeps/s390/jmpbuf-unwind.h6
-rw-r--r--sysdeps/s390/s390-64/memcmp.S2
-rw-r--r--sysdeps/s390/s390-64/memcpy.S2
-rw-r--r--sysdeps/s390/s390-64/memset.S4
7 files changed, 23 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ef504200e..576300fbb6 100644
--- 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]
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index e8c1ddf7e7..b95068716e 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -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):
diff --git a/nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c b/nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c
index 3f8853917a..bb2dfc065a 100644
--- a/nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c
+++ b/nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c
@@ -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)
diff --git a/sysdeps/s390/jmpbuf-unwind.h b/sysdeps/s390/jmpbuf-unwind.h
index 8ae35c1b9a..7da35398c9 100644
--- a/sysdeps/s390/jmpbuf-unwind.h
+++ b/sysdeps/s390/jmpbuf-unwind.h
@@ -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.
@@ -40,11 +40,11 @@
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) \
diff --git a/sysdeps/s390/s390-64/memcmp.S b/sysdeps/s390/s390-64/memcmp.S
index e0b62e3a45..1b43440d4d 100644
--- a/sysdeps/s390/s390-64/memcmp.S
+++ b/sysdeps/s390/s390-64/memcmp.S
@@ -17,7 +17,7 @@
<http://www.gnu.org/licenses/>. */
-#include "sysdep.h"
+#include <sysdep.h>
#include "asm-syntax.h"
/* INPUT PARAMETERS
diff --git a/sysdeps/s390/s390-64/memcpy.S b/sysdeps/s390/s390-64/memcpy.S
index 1e5f050b8f..bae8836209 100644
--- a/sysdeps/s390/s390-64/memcpy.S
+++ b/sysdeps/s390/s390-64/memcpy.S
@@ -17,7 +17,7 @@
<http://www.gnu.org/licenses/>. */
-#include "sysdep.h"
+#include <sysdep.h>
#include "asm-syntax.h"
/* INPUT PARAMETERS
diff --git a/sysdeps/s390/s390-64/memset.S b/sysdeps/s390/s390-64/memset.S
index 6b3007bd91..4edfb4ee65 100644
--- a/sysdeps/s390/s390-64/memset.S
+++ b/sysdeps/s390/s390-64/memset.S
@@ -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