@@ -12,7 +12,7 @@ use rustc_abi::{Align, HasDataLayout, Size, TargetDataLayout, WrappingRange};
12
12
use rustc_apfloat:: { Float , Round , Status , ieee} ;
13
13
use rustc_codegen_ssa:: MemFlags ;
14
14
use rustc_codegen_ssa:: common:: {
15
- AtomicOrdering , AtomicRmwBinOp , IntPredicate , RealPredicate , SynchronizationScope , TypeKind ,
15
+ AtomicRmwBinOp , IntPredicate , RealPredicate , SynchronizationScope , TypeKind ,
16
16
} ;
17
17
use rustc_codegen_ssa:: mir:: operand:: { OperandRef , OperandValue } ;
18
18
use rustc_codegen_ssa:: mir:: place:: PlaceRef ;
@@ -26,7 +26,7 @@ use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrs;
26
26
use rustc_middle:: ty:: layout:: {
27
27
FnAbiError , FnAbiOfHelpers , FnAbiRequest , HasTyCtxt , HasTypingEnv , LayoutError , LayoutOfHelpers ,
28
28
} ;
29
- use rustc_middle:: ty:: { self , Instance , Ty , TyCtxt } ;
29
+ use rustc_middle:: ty:: { self , AtomicOrdering , Instance , Ty , TyCtxt } ;
30
30
use rustc_span:: Span ;
31
31
use rustc_span:: def_id:: DefId ;
32
32
use rustc_target:: callconv:: FnAbi ;
@@ -75,7 +75,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
75
75
76
76
let load_ordering = match order {
77
77
// TODO(antoyo): does this make sense?
78
- AtomicOrdering :: AcquireRelease | AtomicOrdering :: Release => AtomicOrdering :: Acquire ,
78
+ AtomicOrdering :: AcqRel | AtomicOrdering :: Release => AtomicOrdering :: Acquire ,
79
79
_ => order,
80
80
} ;
81
81
let previous_value =
@@ -2474,8 +2474,8 @@ impl ToGccOrdering for AtomicOrdering {
2474
2474
AtomicOrdering :: Relaxed => __ATOMIC_RELAXED, // TODO(antoyo): check if that's the same.
2475
2475
AtomicOrdering :: Acquire => __ATOMIC_ACQUIRE,
2476
2476
AtomicOrdering :: Release => __ATOMIC_RELEASE,
2477
- AtomicOrdering :: AcquireRelease => __ATOMIC_ACQ_REL,
2478
- AtomicOrdering :: SequentiallyConsistent => __ATOMIC_SEQ_CST,
2477
+ AtomicOrdering :: AcqRel => __ATOMIC_ACQ_REL,
2478
+ AtomicOrdering :: SeqCst => __ATOMIC_SEQ_CST,
2479
2479
} ;
2480
2480
ordering as i32
2481
2481
}
0 commit comments