https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70624
--- Comment #6 from Jack Howarth <howarth.at.gcc at gmail dot com> --- (In reply to Jakub Jelinek from comment #5) > So can dyldVersionNumber be only used for #if SANITIZER_IOSSIM and otherwise > use what it did before? The IOSSIM code from llvm's sanitizer was never migrated into gcc so that would be a red herring. The underlying issue is that the /usr/lib/system/libdyld.dylib required for the current code to work was only introduced in 10.7 (darwin11). So a test for the target being darwin10 or earlier would be the appropriate test for utilizing the legacy code.