diff options
author | Sam James <sam@gentoo.org> | 2025-01-10 03:03:47 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2025-01-24 01:11:01 +0000 |
commit | 1432850ad8fbef6dea82d137e491b53840dc7f4d (patch) | |
tree | b2b0c8a7129e90255b5b9a65867dfab76d35bef6 /sysdeps/pthread/ftrylockfile.c | |
parent | c1f7bfbe081ebf807b6374a497ad5d5a9f499574 (diff) | |
download | glibc-1432850ad8fbef6dea82d137e491b53840dc7f4d.zip glibc-1432850ad8fbef6dea82d137e491b53840dc7f4d.tar.gz glibc-1432850ad8fbef6dea82d137e491b53840dc7f4d.tar.bz2 |
malloc: obscure calloc use in tst-calloc
Similar to a9944a52c967ce76a5894c30d0274b824df43c7a and
f9493a15ea9cfb63a815c00c23142369ec09d8ce, we need to hide calloc use from
the compiler to accommodate GCC's r15-6566-g804e9d55d9e54c change.
First, include tst-malloc-aux.h, but then use `volatile` variables
for size.
The test passes without the tst-malloc-aux.h change but IMO we want
it there for consistency and to avoid future problems (possibly silent).
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit c3d1dac96bdd10250aa37bb367d5ef8334a093a1)
Diffstat (limited to 'sysdeps/pthread/ftrylockfile.c')
0 files changed, 0 insertions, 0 deletions