]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: obscure calloc use in tst-calloc
authorSam James <sam@gentoo.org>
Fri, 10 Jan 2025 03:03:47 +0000 (03:03 +0000)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 11 Jul 2025 17:57:07 +0000 (13:57 -0400)
commita637f2c42ffa216571575f6cd8af6ebd8b9334db
tree59279dae2df18a90911959eebe8674d54bf83981
parent879f0ee122477e2b08b7cabea104338d9a9198eb
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)
malloc/tst-calloc.c