[PATCH 4/7] sampling-asan: Support old version of C (before C11 standard)

Florian Weimer fweimer@redhat.com
Mon Sep 22 07:49:02 GMT 2025


* Sung-hun Kim:

> Prior to the C11 standard, the C language did not include support for the
> _Generic macro, which is commonly used for mimicking polymorphism. To
> address this limitation, I have implemented an alternative approach using
> a void pointer and a variable option type to differentiate function calls.
>
> This change ensures compatiblity with the older C standards, allowing
> sampling-asan to codes implemented on the old C standards.

This doesn't seem to be necessary because we require GCC 12 for building
glibc.

Thanks,
Florian



More information about the Libc-alpha mailing list