summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-07-22 14:02:40 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-07-22 14:02:40 +0200
commitd5873c6e794d8bd9e68c3675341b80c91030ebae (patch)
tree38255f8b8b75a135ca8ddafa7cb8e145e6a40745 /ChangeLog
parentc1d1e0c9f242f03521ef023a0e2cac071b5f0133 (diff)
downloadglibc-fw/gcc-10-fixes.tar.gz
nptl: Use uintptr_t for address diagnostic in nptl/tst-pthread-getattrfw/gcc-10-fixes
Recent GCC versions warn about the attempt to return the address of a local variable: tst-pthread-getattr.c: In function ‘allocate_and_test’: tst-pthread-getattr.c:54:10: error: function returns address of local variable [-Werror=return-local-addr] 54 | return mem; | ^~~ In file included from ../include/alloca.h:3, from tst-pthread-getattr.c:26: ../stdlib/alloca.h:35:23: note: declared here 35 | # define alloca(size) __builtin_alloca (size) | ^~~~~~~~~~~~~~~~~~~~~~~ tst-pthread-getattr.c:51:9: note: in expansion of macro ‘alloca’ 51 | mem = alloca ((size_t) (mem - target)); | ^~~~~~ The address itself is used in a check in the caller, so using uintptr_t instead is reasonable.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c6dbb2e817..e30cf048b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2019-07-22 Florian Weimer <fweimer@redhat.com>
+ * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
+ type to uintptr_t.
+ (check_stack_top): Adjust.
+
+2019-07-22 Florian Weimer <fweimer@redhat.com>
+
* sysdeps/unix/sysv/linux/bits/socket.h [__USE_MISC]: Include
<linux/sockios.h>.