Fix fp16 with asan
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Jun 2023 19:16:12 +0000 (15:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 27 Jun 2023 19:17:56 +0000 (15:17 -0400)
commitd82fb6f20a02babe8aff35c6d8e504e20753abba
tree626ebaf7ff2bc09a1992e3c507f6ca4055d8f93d
parent60e75f8a2ad7632fd55bdc02e5dbd531caea6228
Fix fp16 with asan

The IFUNC resolvers that we are using here get
run early, before asan had a chance to set up its
plumbing, and therefore things go badly if they
are compiled with asan. Turning it off makes things
work again.

The gcc bug tracking this problem:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110442

Thanks to Jakub Jelinek and Florian Weimer for
analyzing this and recommending the workaround.
gsk/gl/fp16.c