File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -3457,7 +3457,6 @@ SanitizerMask Darwin::getSupportedSanitizers() const {
3457
3457
Res |= SanitizerKind::PointerCompare;
3458
3458
Res |= SanitizerKind::PointerSubtract;
3459
3459
Res |= SanitizerKind::Leak;
3460
- Res |= SanitizerKind::NumericalStability;
3461
3460
Res |= SanitizerKind::Fuzzer;
3462
3461
Res |= SanitizerKind::FuzzerNoLink;
3463
3462
Res |= SanitizerKind::ObjCCast;
@@ -3474,6 +3473,10 @@ SanitizerMask Darwin::getSupportedSanitizers() const {
3474
3473
isTargetTvOSSimulator () || isTargetWatchOSSimulator ())) {
3475
3474
Res |= SanitizerKind::Thread;
3476
3475
}
3476
+
3477
+ if (IsX86_64)
3478
+ Res |= SanitizerKind::NumericalStability;
3479
+
3477
3480
return Res;
3478
3481
}
3479
3482
Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ SanitizerMask Linux::getSupportedSanitizers() const {
826
826
if (IsX86_64 || IsAArch64) {
827
827
Res |= SanitizerKind::KernelHWAddress;
828
828
}
829
- if (IsX86_64 || IsAArch64 )
829
+ if (IsX86_64)
830
830
Res |= SanitizerKind::NumericalStability;
831
831
832
832
// Work around "Cannot represent a difference across sections".
Original file line number Diff line number Diff line change 462
462
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=numerical %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NSAN-X86-64-LINUX
463
463
// CHECK-NSAN-X86-64-LINUX: "-fsanitize=numerical"
464
464
465
- // RUN: %clang --target=aarch64-unknown-linux-gnu -fsanitize=numerical %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NSAN-AARCH64-LINUX
466
- // CHECK-NSAN-AARCH64-LINUX: " -fsanitize=numerical"
465
+ // RUN: not %clang --target=aarch64-unknown-linux-gnu -fsanitize=numerical %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NSAN-AARCH64-LINUX
466
+ // CHECK-NSAN-AARCH64-LINUX: error: unsupported option ' -fsanitize=numerical' for target 'aarch64-unknown-linux-gnu'
467
467
468
468
// RUN: not %clang --target=mips-unknown-linux -fsanitize=numerical %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NSAN-MIPS-LINUX
469
469
// CHECK-NSAN-MIPS-LINUX: error: unsupported option '-fsanitize=numerical' for target 'mips-unknown-linux'
470
470
471
471
// RUN: %clang --target=x86_64-apple-macos -fsanitize=numerical %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NSAN-X86-64-MACOS
472
472
// CHECK-NSAN-X86-64-MACOS: "-fsanitize=numerical"
473
473
474
- // RUN: %clang --target=arm64-apple-macos -fsanitize=numerical %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NSAN-ARM64-MACOS
475
- // CHECK-NSAN-ARM64-MACOS: " -fsanitize=numerical"
474
+ // RUN: not %clang --target=arm64-apple-macos -fsanitize=numerical %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NSAN-ARM64-MACOS
475
+ // CHECK-NSAN-ARM64-MACOS: error: unsupported option ' -fsanitize=numerical' for target 'arm64-apple-macos'
476
476
477
477
// RUN: %clang --target=x86_64-apple-darwin -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-X86-64-DARWIN
478
478
// CHECK-TSAN-X86-64-DARWIN-NOT: unsupported option
You can’t perform that action at this time.
0 commit comments