https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93433
Bug ID: 93433 Summary: sanitizer_linux.cc contains non-Linux-specific code Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: roland.illig at gmx dot de CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- The file sanitizer_linux.cc contains these lines: > // This file is shared between AddressSanitizer and ThreadSanitizer > // run-time libraries and implements linux-specific functions from > // sanitizer_libc.h. > //===----------------------------------------------------------------------===// > > #include "sanitizer_platform.h" > > #if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD || \ > SANITIZER_OPENBSD || SANITIZER_SOLARIS These lines are obviously not specific to Linux. The file should be renamed in order to match its content.