sync/atomic, runtime/internal/atomic: don't assume reads from 0 fail
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 9 Nov 2017 21:56:59 +0000 (21:56 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 9 Nov 2017 21:56:59 +0000 (21:56 +0000)
commit5ac29058f01502c407a7b77ec57a08c96941f796
tree86e5c9abbcc0655073df1ceafdd557cfeca4d68a
parentd60edaba4fc4e75824f27291ff448bf48118b3f4
sync/atomic, runtime/internal/atomic: don't assume reads from 0 fail

    For a misaligned address force a panic rather than assuming that reading
    from the address 0 will cause one.

    Reviewed-on: https://go-review.googlesource.com/69850

From-SVN: r254610
gcc/go/gofrontend/MERGE
libgo/go/runtime/internal/atomic/atomic.c
libgo/go/runtime/panic.go
libgo/go/sync/atomic/atomic.c
libgo/runtime/runtime.h