@@ -188,27 +188,27 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
188188
189189// windows requires saving more registers (both general and XMM), so the windows
190190// register context must be larger.
191- #[ cfg( windows, target_arch = "x86_64" ) ]
191+ #[ cfg( all ( windows, target_arch = "x86_64" ) ) ]
192192#[ repr( C ) ]
193193struct Registers {
194194 gpr : [ libc:: uintptr_t , ..14 ] ,
195195 _xmm : [ simd:: u32x4 , ..10 ]
196196}
197- #[ cfg( not( windows) , target_arch = "x86_64" ) ]
197+ #[ cfg( all ( not( windows) , target_arch = "x86_64" ) ) ]
198198#[ repr( C ) ]
199199struct Registers {
200200 gpr : [ libc:: uintptr_t , ..10 ] ,
201201 _xmm : [ simd:: u32x4 , ..6 ]
202202}
203203
204- #[ cfg( windows, target_arch = "x86_64" ) ]
204+ #[ cfg( all ( windows, target_arch = "x86_64" ) ) ]
205205fn new_regs ( ) -> Box < Registers > {
206206 box ( ) Registers {
207207 gpr : [ 0 , ..14 ] ,
208208 _xmm : [ simd:: u32x4 ( 0 , 0 , 0 , 0 ) , ..10 ]
209209 }
210210}
211- #[ cfg( not( windows) , target_arch = "x86_64" ) ]
211+ #[ cfg( all ( not( windows) , target_arch = "x86_64" ) ) ]
212212fn new_regs ( ) -> Box < Registers > {
213213 box ( ) Registers {
214214 gpr : [ 0 , ..10 ] ,
@@ -288,16 +288,13 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
288288 regs[ 14 ] = rust_bootstrap_green_task as libc:: uintptr_t ; // #56 pc, r14 --> lr
289289}
290290
291- #[ cfg( target_arch = "mips" ) ]
292- #[ cfg( target_arch = "mipsel" ) ]
291+ #[ cfg( any( target_arch = "mips" , target_arch = "mipsel" ) ) ]
293292type Registers = [ libc:: uintptr_t , ..32 ] ;
294293
295- #[ cfg( target_arch = "mips" ) ]
296- #[ cfg( target_arch = "mipsel" ) ]
294+ #[ cfg( any( target_arch = "mips" , target_arch = "mipsel" ) ) ]
297295fn new_regs ( ) -> Box < Registers > { box { [ 0 , .. 32 ] } }
298296
299- #[ cfg( target_arch = "mips" ) ]
300- #[ cfg( target_arch = "mipsel" ) ]
297+ #[ cfg( any( target_arch = "mips" , target_arch = "mipsel" ) ) ]
301298fn initialize_call_frame ( regs : & mut Registers , fptr : InitFn , arg : uint ,
302299 procedure : raw:: Procedure , sp : * mut uint ) {
303300 let sp = align_down ( sp) ;
0 commit comments