about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-01-06 07:59:04 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-01-08 08:03:31 -0500
commitdd6e8af6ba1b8a95a7f1dc7422e5ea4ccc7fbd93 (patch)
tree10046fc1091a66245c81fe62ef62ef52b11413ca /ChangeLog
parent28c38448de826314c1d89b18a26042fee21d7c9c (diff)
downloadglibc-dd6e8af6ba1b8a95a7f1dc7422e5ea4ccc7fbd93.tar.gz
glibc-dd6e8af6ba1b8a95a7f1dc7422e5ea4ccc7fbd93.tar.xz
glibc-dd6e8af6ba1b8a95a7f1dc7422e5ea4ccc7fbd93.zip
powerpc: Fix compiler warning on some syscalls
GCC 5.0 emits an warning when using sizeof on array function parameters
and powerpc internal syscall macros add a check for such cases.  More
specifically, on powerpc64 and powerpc32 sysdep.h:

  if (__builtin_classify_type (__arg3) != 5 && sizeof (__arg3) > 8) \
          __illegally_sized_syscall_arg3 (); \

And for sysdeps/unix/sysv/linux/utimensat.c build GCC emits:

error: ‘sizeof’ on array function parameter ‘tsp’ will return size of
‘const struct timespec *’

This patch uses the address of first struct member instead of the struct
itself in syscall macro.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9066946203..962ec26550 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+	* sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
+	timespec struct member in syscall macro.
+	* sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
+	* sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
+	first timeval struct member in syscall macro.
+	* sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
+
 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #17748]