[PATCH v2] tst-memalign.c: Hide memalign from compiler

Florian Weimer fweimer@redhat.com
Tue Dec 17 05:12:17 GMT 2024


* H. J. Lu:

> +/* NB: Hide memalign from compiler since compiler may optimize it out
> +   and -1 alignment isn't a power
> +   of two.  */
> +__typeof (memalign) *memalign_p = memalign;

Shouldn't the pointer be volatile to really hide things?

Thanks,
Florian



More information about the Libc-alpha mailing list