@@ -496,7 +496,7 @@ uint_impl! { u64 = u64, 64,
496
496
intrinsics:: u64_sub_with_overflow,
497
497
intrinsics:: u64_mul_with_overflow }
498
498
499
- #[ cfg( target_word_size = "32" ) ]
499
+ #[ cfg( any ( all ( stage0 , target_word_size = "32" ) , all ( not ( stage0 ) , target_pointer_width = "32" ) ) ) ]
500
500
uint_impl ! { uint = u32 , 32 ,
501
501
intrinsics:: ctpop32,
502
502
intrinsics:: ctlz32,
@@ -506,7 +506,7 @@ uint_impl! { uint = u32, 32,
506
506
intrinsics:: u32_sub_with_overflow,
507
507
intrinsics:: u32_mul_with_overflow }
508
508
509
- #[ cfg( target_word_size = "64" ) ]
509
+ #[ cfg( any ( all ( stage0 , target_word_size = "64" ) , all ( not ( stage0 ) , target_pointer_width = "64" ) ) ) ]
510
510
uint_impl ! { uint = u64 , 64 ,
511
511
intrinsics:: ctpop64,
512
512
intrinsics:: ctlz64,
@@ -601,13 +601,13 @@ int_impl! { i64 = i64, u64, 64,
601
601
intrinsics:: i64_sub_with_overflow,
602
602
intrinsics:: i64_mul_with_overflow }
603
603
604
- #[ cfg( target_word_size = "32" ) ]
604
+ #[ cfg( any ( all ( stage0 , target_word_size = "32" ) , all ( not ( stage0 ) , target_pointer_width = "32" ) ) ) ]
605
605
int_impl ! { int = i32 , u32 , 32 ,
606
606
intrinsics:: i32_add_with_overflow,
607
607
intrinsics:: i32_sub_with_overflow,
608
608
intrinsics:: i32_mul_with_overflow }
609
609
610
- #[ cfg( target_word_size = "64" ) ]
610
+ #[ cfg( any ( all ( stage0 , target_word_size = "64" ) , all ( not ( stage0 ) , target_pointer_width = "64" ) ) ) ]
611
611
int_impl ! { int = i64 , u64 , 64 ,
612
612
intrinsics:: i64_add_with_overflow,
613
613
intrinsics:: i64_sub_with_overflow,
0 commit comments