https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Oct 15 13:43:09 2018 New Revision: 265164 URL: https://gcc.gnu.org/viewcvs?rev=265164&root=gcc&view=rev Log: 2018-10-15 Richard Biener <rguent...@suse.de> Backport from mainline 2018-03-19 Jakub Jelinek <ja...@redhat.com> PR sanitizer/84761 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ): Define if not defined. (DL_INTERNAL_FUNCTION): Don't define. (InitTlsSize): For __i386__ if not compiled against glibc 2.27+ determine at runtime whether to use regparm(3), stdcall calling convention for older glibcs or normal calling convention for newer glibcs for call to _dl_get_tls_static_info. Modified: branches/gcc-6-branch/libsanitizer/ChangeLog branches/gcc-6-branch/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc