From 56e7d3ad5c2f369349bf7def0d8875a50e2d275b Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Sat, 8 Dec 2012 13:03:24 +0530 Subject: Fix some build warnings on s390x --- sysdeps/s390/jmpbuf-unwind.h | 6 +++--- sysdeps/s390/s390-64/memcmp.S | 2 +- sysdeps/s390/s390-64/memcpy.S | 2 +- sysdeps/s390/s390-64/memset.S | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'sysdeps/s390') 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 , 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 @@ . */ -#include "sysdep.h" +#include #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 @@ . */ -#include "sysdep.h" +#include #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 @@ . */ -#include "sysdep.h" +#include #include "asm-syntax.h" /* INPUT PARAMETERS -- cgit 1.4.1