H.J. Lu
f9493a15ea
Hide all malloc functions from compiler [BZ #32366 ]
...
Since -1 isn't a power of two, compiler may reject it, hide memalign from
Clang 19 which issues an error:
tst-memalign.c:86:31: error: requested alignment is not a power of 2 [-Werror,-Wnon-power-of-two-alignment]
86 | p = memalign (-1, pagesize);
| ^~
tst-memalign.c:86:31: error: requested alignment must be 4294967296 bytes or smaller; maximum alignment assumed [-Werror,-Wbuiltin-assume-aligned-alignment]
86 | p = memalign (-1, pagesize);
| ^~
Update tst-malloc-aux.h to hide all malloc functions and include it in
all malloc tests to prevent compiler from optimizing out any malloc
functions.
Tested with Clang 19.1.5 and GCC 15 20241206 for BZ #32366 .
Signed-off-by: H.J. Lu <hjl.tools@gmail.com >
Reviewed-by: Sam James <sam@gentoo.org >
2024-12-17 20:51:08 +08:00
..
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-11-25 16:45:59 -03:00
2021-02-23 10:04:45 +01:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-08-20 16:16:25 +02:00
2024-11-25 16:45:59 -03:00
2024-01-01 10:53:40 -08:00
2024-12-04 04:28:15 +08:00
2024-12-11 11:34:47 +08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-07-19 10:10:17 -04:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-06-24 09:33:49 +02:00
2024-11-25 16:45:59 -03:00
2024-01-01 10:53:40 -08:00
2024-11-25 16:45:59 -03:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-07-22 11:54:46 +02:00
2024-07-22 11:54:46 +02:00
2024-07-22 11:54:46 +02:00
2024-05-14 14:36:50 +00:00
2023-05-08 16:40:10 -04:00
2024-12-10 01:50:56 +00:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-12-10 01:50:56 +00:00
2021-07-22 18:37:59 +05:30
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-12-17 20:51:08 +08:00
2024-01-01 10:53:40 -08:00
2024-06-04 18:00:29 +02:00
2024-12-17 20:51:08 +08:00
2024-12-17 20:51:08 +08:00
2024-12-10 01:50:56 +00:00
2024-01-01 10:53:40 -08:00
2024-05-14 14:36:50 +00:00
2021-04-07 02:35:50 +02:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-12-10 01:50:56 +00:00
2024-01-01 10:53:40 -08:00
2024-12-10 01:50:56 +00:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2019-06-10 22:12:08 +00:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-12-17 20:51:08 +08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2022-01-26 10:38:23 -07:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-12-10 01:50:56 +00:00
2024-01-01 10:53:40 -08:00
2024-12-17 20:51:08 +08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-01-01 10:53:40 -08:00
2024-12-17 20:51:08 +08:00
2022-10-28 18:43:58 +01:00