@@ -496,7 +496,7 @@ uint_impl! { u64 = u64, 64,
496496 intrinsics:: u64_sub_with_overflow,
497497 intrinsics:: u64_mul_with_overflow }
498498
499- #[ cfg( target_word_size = "32" ) ]
499+ #[ cfg( any ( all ( stage0 , target_word_size = "32" ) , all ( not ( stage0 ) , target_pointer_width = "32" ) ) ) ]
500500uint_impl ! { uint = u32 , 32 ,
501501 intrinsics:: ctpop32,
502502 intrinsics:: ctlz32,
@@ -506,7 +506,7 @@ uint_impl! { uint = u32, 32,
506506 intrinsics:: u32_sub_with_overflow,
507507 intrinsics:: u32_mul_with_overflow }
508508
509- #[ cfg( target_word_size = "64" ) ]
509+ #[ cfg( any ( all ( stage0 , target_word_size = "64" ) , all ( not ( stage0 ) , target_pointer_width = "64" ) ) ) ]
510510uint_impl ! { uint = u64 , 64 ,
511511 intrinsics:: ctpop64,
512512 intrinsics:: ctlz64,
@@ -601,13 +601,13 @@ int_impl! { i64 = i64, u64, 64,
601601 intrinsics:: i64_sub_with_overflow,
602602 intrinsics:: i64_mul_with_overflow }
603603
604- #[ cfg( target_word_size = "32" ) ]
604+ #[ cfg( any ( all ( stage0 , target_word_size = "32" ) , all ( not ( stage0 ) , target_pointer_width = "32" ) ) ) ]
605605int_impl ! { int = i32 , u32 , 32 ,
606606 intrinsics:: i32_add_with_overflow,
607607 intrinsics:: i32_sub_with_overflow,
608608 intrinsics:: i32_mul_with_overflow }
609609
610- #[ cfg( target_word_size = "64" ) ]
610+ #[ cfg( any ( all ( stage0 , target_word_size = "64" ) , all ( not ( stage0 ) , target_pointer_width = "64" ) ) ) ]
611611int_impl ! { int = i64 , u64 , 64 ,
612612 intrinsics:: i64_add_with_overflow,
613613 intrinsics:: i64_sub_with_overflow,
0 commit comments