aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-01-04 23:32:14 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-01-04 23:32:14 +0000
commit3d7229c2507be1daf0c3e15e1f134076fa8b9025 (patch)
tree301ca636f6bede4f41440b3aab519dbb6ec807e0 /ChangeLog
parent179b86750caeb0a0a4798830d6d52a00dc70db2d (diff)
downloadglibc-3d7229c2507be1daf0c3e15e1f134076fa8b9025.tar
glibc-3d7229c2507be1daf0c3e15e1f134076fa8b9025.tar.gz
glibc-3d7229c2507be1daf0c3e15e1f134076fa8b9025.tar.bz2
glibc-3d7229c2507be1daf0c3e15e1f134076fa8b9025.zip
Fix malloc/ tests for GCC 7 -Walloc-size-larger-than=.
GCC 7 has a -Walloc-size-larger-than= warning for allocations of half the address space or more. This causes errors building glibc tests that deliberately test failure of very large allocations. This patch arranges for this warning to be ignored around the problematic function calls. Tested compilation for aarch64 (GCC mainline) with build-many-glibcs.py; did execution testing for x86_64 (GCC 5). * malloc/tst-malloc.c: Include <libc-internal.h>. (do_test): Disable -Walloc-size-larger-than= around tests of malloc with negative sizes. * malloc/tst-mcheck.c: Include <libc-internal.h>. (do_test): Disable -Walloc-size-larger-than= around tests of malloc and realloc with negative sizes. * malloc/tst-realloc.c: Include <libc-internal.h>. (do_test): Disable -Walloc-size-larger-than= around tests of realloc with negative sizes.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8770c65556..a3eacbb604 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2017-01-04 Joseph Myers <joseph@codesourcery.com>
+ * malloc/tst-malloc.c: Include <libc-internal.h>.
+ (do_test): Disable -Walloc-size-larger-than= around tests of
+ malloc with negative sizes.
+ * malloc/tst-mcheck.c: Include <libc-internal.h>.
+ (do_test): Disable -Walloc-size-larger-than= around tests of
+ malloc and realloc with negative sizes.
+ * malloc/tst-realloc.c: Include <libc-internal.h>.
+ (do_test): Disable -Walloc-size-larger-than= around tests of
+ realloc with negative sizes.
+
* math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
(init_max_error) [TEST_COND_ibm128]: Increase maximum error
allowed to 16 ulps.