]> Cypherpunks repositories - gostls13.git/commit
build: remove various uses of C undefined behavior
authorRuss Cox <rsc@golang.org>
Mon, 9 Sep 2013 19:07:23 +0000 (15:07 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 9 Sep 2013 19:07:23 +0000 (15:07 -0400)
commit7d734d9252febfd91cb0ff5fc54f11defc5f4daa
treeff3ade73bd586a219fc64d333da6623cc3c9526f
parent6252b41981a5e5566b727de14cda5aece4bee98f
build: remove various uses of C undefined behavior

If you thought gcc -ansi -pedantic was pedantic, just wait
until you meet clang -fsanitize=undefined.

I think this addresses all the reported "errors", but we'll
need another run to be sure.

all.bash still passes.

Update #5764

Dave, can you please try again?

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13334049
16 files changed:
include/bio.h
src/cmd/cc/com.c
src/cmd/cc/lex.c
src/cmd/cc/lexbody
src/cmd/gc/bv.c
src/cmd/gc/go.h
src/cmd/gc/md5.c
src/cmd/gc/mparith2.c
src/cmd/gc/subr.c
src/cmd/ld/go.c
src/cmd/ld/lib.c
src/cmd/pack/ar.c
src/libmach/5obj.c
src/libmach/6obj.c
src/libmach/8obj.c
src/libmach/obj.c