@@ -4538,6 +4538,9 @@ proc check_effective_target_arc_atomic { } {
45384538# Return 1 if this is a compiler supporting ARC atomic operations
45394539proc check_effective_target_arc64_atomic { } {
45404540 return [check_no_compiler_messages arc_atomic assembly {
4541+ #if !defined(__ARC64_ATOMIC__)
4542+ #error NO_ATOMIC64
4543+ #endif
45414544 }]
45424545}
45434546
@@ -9454,7 +9457,7 @@ proc check_effective_target_sync_int_128_runtime { } {
94549457proc check_effective_target_sync_long_long { } {
94559458 if { [istarget i?86-*-*] || [istarget x86_64-*-*]
94569459 || [istarget aarch64*-*-*]
9457- || ([istarget arc64* -*-*] && [check_effective_target_arc64_atomic])
9460+ || ([istarget arc64-*-*] && [check_effective_target_arc64_atomic])
94589461 || [istarget arm*-*-*]
94599462 || [istarget alpha*-*-*]
94609463 || ([istarget sparc*-*-*] && [check_effective_target_lp64])
@@ -9585,7 +9588,7 @@ proc check_effective_target_sync_long_long_runtime { } {
95859588 } ""
95869589 }])
95879590 || [istarget aarch64*-*-*]
9588- || ([istarget arc64* -*-*] && [check_effective_target_arc64_atomic])
9591+ || ([istarget arc64-*-*] && [check_effective_target_arc64_atomic])
95899592 || [istarget arm*-*-uclinuxfdpiceabi]
95909593 || ([istarget arm*-*-linux-*]
95919594 && [check_runtime sync_longlong_runtime {
@@ -9662,7 +9665,7 @@ proc check_effective_target_sync_int_long { } {
96629665 || [istarget powerpc*-*-*]
96639666 || [istarget cris-*-*]
96649667 || ([istarget sparc*-*-*] && [check_effective_target_sparc_v9])
9665- || ([istarget arc64* -*-*] && [check_effective_target_arc64_atomic])
9668+ || ([istarget arc64-*-*] && [check_effective_target_arc64_atomic])
96669669 || ([istarget arc*-*-*] && [check_effective_target_arc_atomic])
96679670 || [check_effective_target_mips_llsc]
96689671 || [istarget nvptx*-*-*]
@@ -9698,8 +9701,9 @@ proc check_effective_target_sync_char_short { } {
96989701 || [istarget powerpc*-*-*]
96999702 || [istarget cris-*-*]
97009703 || ([istarget sparc*-*-*] && [check_effective_target_sparc_v9])
9701- || ([istarget arc64*-*-*] && [check_effective_target_arc64_atomic])
9702- || ([istarget arc*-*-*] && [check_effective_target_arc_atomic])
9704+ || ([istarget arc64-*-*] && [check_effective_target_arc64_atomic])
9705+ || ([istarget arc-*-*] && [check_effective_target_arc_atomic])
9706+ || ([istarget arceb-*-*] && [check_effective_target_arc_atomic])
97039707 || [istarget loongarch*-*-*]
97049708 || [check_effective_target_mips_llsc] }}]
97059709}
0 commit comments