@@ -188,27 +188,27 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
188
188
189
189
// windows requires saving more registers (both general and XMM), so the windows
190
190
// register context must be larger.
191
- #[ cfg( windows, target_arch = "x86_64" ) ]
191
+ #[ cfg( all ( windows, target_arch = "x86_64" ) ) ]
192
192
#[ repr( C ) ]
193
193
struct Registers {
194
194
gpr : [ libc:: uintptr_t , ..14 ] ,
195
195
_xmm : [ simd:: u32x4 , ..10 ]
196
196
}
197
- #[ cfg( not( windows) , target_arch = "x86_64" ) ]
197
+ #[ cfg( all ( not( windows) , target_arch = "x86_64" ) ) ]
198
198
#[ repr( C ) ]
199
199
struct Registers {
200
200
gpr : [ libc:: uintptr_t , ..10 ] ,
201
201
_xmm : [ simd:: u32x4 , ..6 ]
202
202
}
203
203
204
- #[ cfg( windows, target_arch = "x86_64" ) ]
204
+ #[ cfg( all ( windows, target_arch = "x86_64" ) ) ]
205
205
fn new_regs ( ) -> Box < Registers > {
206
206
box ( ) Registers {
207
207
gpr : [ 0 , ..14 ] ,
208
208
_xmm : [ simd:: u32x4 ( 0 , 0 , 0 , 0 ) , ..10 ]
209
209
}
210
210
}
211
- #[ cfg( not( windows) , target_arch = "x86_64" ) ]
211
+ #[ cfg( all ( not( windows) , target_arch = "x86_64" ) ) ]
212
212
fn new_regs ( ) -> Box < Registers > {
213
213
box ( ) Registers {
214
214
gpr : [ 0 , ..10 ] ,
@@ -288,16 +288,13 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
288
288
regs[ 14 ] = rust_bootstrap_green_task as libc:: uintptr_t ; // #56 pc, r14 --> lr
289
289
}
290
290
291
- #[ cfg( target_arch = "mips" ) ]
292
- #[ cfg( target_arch = "mipsel" ) ]
291
+ #[ cfg( any( target_arch = "mips" , target_arch = "mipsel" ) ) ]
293
292
type Registers = [ libc:: uintptr_t , ..32 ] ;
294
293
295
- #[ cfg( target_arch = "mips" ) ]
296
- #[ cfg( target_arch = "mipsel" ) ]
294
+ #[ cfg( any( target_arch = "mips" , target_arch = "mipsel" ) ) ]
297
295
fn new_regs ( ) -> Box < Registers > { box { [ 0 , .. 32 ] } }
298
296
299
- #[ cfg( target_arch = "mips" ) ]
300
- #[ cfg( target_arch = "mipsel" ) ]
297
+ #[ cfg( any( target_arch = "mips" , target_arch = "mipsel" ) ) ]
301
298
fn initialize_call_frame ( regs : & mut Registers , fptr : InitFn , arg : uint ,
302
299
procedure : raw:: Procedure , sp : * mut uint ) {
303
300
let sp = align_down ( sp) ;
0 commit comments