compiler: work around AVR atomics bugs

The AVR backend has several critical atomics bugs.
This change invokes libcalls for all atomic operations on AVR.
Now `testdata/atomic.go` compiles and runs correctly.
This commit is contained in:
Nia Waldvogel
2022-01-13 14:02:34 -05:00
committed by Ron Evans
parent b2ef7299b7
commit e2178ce682
3 changed files with 53 additions and 1 deletions
+2 -1
View File
@@ -140,7 +140,8 @@ func TestBuild(t *testing.T) {
for _, t := range tests {
switch t {
case "atomic.go":
// Not supported due to unaligned atomic accesses.
// Requires GCC 11.2.0 or above for interface comparison.
// https://github.com/gcc-mirror/gcc/commit/f30dd607669212de135dec1f1d8a93b8954c327c
case "reflect.go":
// Reflect tests do not work due to type code issues.