File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -461,10 +461,8 @@ class LLVM_LIBRARY_VISIBILITY OpenBSDTargetInfo : public OSTargetInfo<Target> {
461
461
if (this ->HasFloat128 )
462
462
Builder.defineMacro (" __FLOAT128__" );
463
463
464
- if (Opts.C11 ) {
465
- Builder.defineMacro (" __STDC_NO_ATOMICS__" );
464
+ if (Opts.C11 )
466
465
Builder.defineMacro (" __STDC_NO_THREADS__" );
467
- }
468
466
}
469
467
470
468
public:
Original file line number Diff line number Diff line change 1467
1467
// RUN: %clang_cc1 -x c -std=c11 -E -dM -ffreestanding -triple=amd64-unknown-openbsd < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD-STDC %s
1468
1468
// RUN: %clang_cc1 -x c -std=gnu11 -E -dM -ffreestanding -triple=amd64-unknown-openbsd < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD-STDC %s
1469
1469
// RUN: %clang_cc1 -x c -std=c17 -E -dM -ffreestanding -triple=amd64-unknown-openbsd < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD-STDC %s
1470
- // OPENBSD-STDC:#define __STDC_NO_ATOMICS__ 1
1471
1470
// OPENBSD-STDC:#define __STDC_NO_THREADS__ 1
1472
1471
//
1473
1472
// RUN: %clang_cc1 -x c -std=c99 -E -dM -ffreestanding -triple=amd64-unknown-openbsd < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD-STDC-N %s
1474
- // OPENBSD-STDC-N-NOT:#define __STDC_NO_ATOMICS__ 1
1475
1473
// OPENBSD-STDC-N-NOT:#define __STDC_NO_THREADS__ 1
1476
1474
//
1477
1475
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=xcore-none-none < /dev/null | FileCheck -match-full-lines -check-prefix XCORE %s
You can’t perform that action at this time.
0 commit comments