* libgo patch committed: Disable inappropriate sync/atomic tests
@ 2012-02-12 6:02 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2012-02-12 6:02 UTC (permalink / raw)
To: gcc-patches, gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
This patch to the sync/atomic package disables a couple of tests on
systems with an inappropriate pointer size. The 32-bit test was
clobbering 4 bytes on the heap. The 64-bit test only worked on
little-endian systems. Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu. Committed to mainline.
Ian
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 481 bytes --]
diff -r d75f0efa5fc2 libgo/go/sync/atomic/atomic_test.go
--- a/libgo/go/sync/atomic/atomic_test.go Fri Feb 10 23:04:22 2012 -0800
+++ b/libgo/go/sync/atomic/atomic_test.go Sat Feb 11 21:54:35 2012 -0800
@@ -636,6 +636,7 @@
// 64-bit system; clear uintptr tests
hammer32[2].f = nil
hammer32[5].f = nil
+ hammer32[6].f = nil
}
}
@@ -760,6 +761,7 @@
// 32-bit system; clear uintptr tests
hammer64[2].f = nil
hammer64[5].f = nil
+ hammer64[6].f = nil
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-12 5:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-12 6:02 libgo patch committed: Disable inappropriate sync/atomic tests Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).