]> Cypherpunks repositories - gostls13.git/commitdiff
gc: alternative clang compatible abort.
authorDave Cheney <dave@cheney.net>
Wed, 8 Jun 2011 00:46:15 +0000 (10:46 +1000)
committerRob Pike <r@golang.org>
Wed, 8 Jun 2011 00:46:15 +0000 (10:46 +1000)
Tested on clang 2.9/amd64

R=rsc, jeff, r
CC=golang-dev
https://golang.org/cl/4517143

src/cmd/gc/subr.c

index 5d93df67e3fb5e83927ebf800facc95bafb7991a..1dd357950a0d773638d73fe4abee3660c4181ae7 100644 (file)
@@ -105,7 +105,7 @@ hcrash(void)
                flusherrors();
                if(outfile)
                        unlink(outfile);
-               abort();
+               *(volatile int*)0 = 0;
        }
 }