aboutsummaryrefslogtreecommitdiffhomepage
path: root/main_test.go
diff options
context:
space:
mode:
authorNia Waldvogel <[email protected]>2022-01-13 14:02:34 -0500
committerRon Evans <[email protected]>2022-01-14 13:49:20 +0100
commite2178ce682ef8cf72203b2ff26c1b3c828806a8b (patch)
tree0832bf388d5c679f77b602a7afeabd02e012e93e /main_test.go
parentb2ef7299b753db052322f582954c123cc7a552e2 (diff)
downloadtinygo-e2178ce682ef8cf72203b2ff26c1b3c828806a8b.tar.gz
tinygo-e2178ce682ef8cf72203b2ff26c1b3c828806a8b.zip
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.
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main_test.go b/main_test.go
index 0f6db9c7e..9660d33e4 100644
--- a/main_test.go
+++ b/main_test.go
@@ -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.