]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] cmd/go, liblink: turn off verification against Go code
authorRuss Cox <rsc@golang.org>
Wed, 4 Feb 2015 21:03:57 +0000 (16:03 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 4 Feb 2015 21:07:06 +0000 (21:07 +0000)
The upcoming merge is going to break the synchrony.
Will restore separately.

Change-Id: I90946119a0901e24063b190d1a074594af7654c7
Reviewed-on: https://go-review.googlesource.com/3888
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/build.go
src/liblink/objfile.c

index 0cb7dbb239ea14b919e906bb4059dc93eb2c92c6..2d3ba41cba05e3dfbcbd8bd29f2fe661edf9fd26 100644 (file)
@@ -1675,7 +1675,7 @@ func (gcToolchain) gc(b *builder, p *Package, archive, obj string, asmhdr bool,
 // verifyAsm specifies whether to check the assemblers written in Go
 // against the assemblers written in C. If set, asm will run both (say) 6a and new6a
 // and fail if the two produce different output files.
-const verifyAsm = true
+const verifyAsm = false
 
 func (gcToolchain) asm(b *builder, p *Package, obj, ofile, sfile string) error {
        // Add -I pkg/GOOS_GOARCH so #include "textflag.h" works in .s files.
index 8c2257de8a5a4c17d7fd3a5fbca44cbe44c07840..a238fce57d35a81b44dc584ae9d1ac77e9b9f789 100644 (file)
@@ -143,7 +143,7 @@ writeobj(Link *ctxt, Biobuf *b)
        // we will hard code the GOOBJ=1 behavior.
        env = getenv("GOOBJ");
        if(env == nil)
-               env = "2";
+               env = "0";
        if(atoi(env) == 0) {
                writeobjdirect(ctxt, b);
                return;