This basically the same as Bug 85663 but for the current trunk version. The issue was initially introduced in r253887 as noted in that report. It was then fixed in r259664 but r265665 reverted that fix (probably accidentally). Cherry-picking r259664 again fixed the problem for me.
Confirmed, note that we have a file libsanitizer/LOCAL_PATCHES that is intended for precisely these revisions. Once we do merge from trunk, we again install the patches. Lemme do it now.
Author: marxin Date: Mon Apr 8 13:08:30 2019 New Revision: 270208 URL: https://gcc.gnu.org/viewcvs?rev=270208&root=gcc&view=rev Log: Add missing libsanitizer extra patch (r259664) (PR sanitizer/89941). 2019-04-08 Martin Liska <mliska@suse.cz> PR sanitizer/89941 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined): Reapply patch from r259664. * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise. Modified: trunk/libsanitizer/ChangeLog trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cc trunk/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
Fixed on trunk.