summaryrefslogtreecommitdiff
path: root/src/cmd/gc
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2011-06-08 10:46:15 +1000
committerDave Cheney <dave@cheney.net>2011-06-08 10:46:15 +1000
commit35e443636c3382f45dafef338016abe455741ad0 (patch)
tree12f1099c0cb447a59e78e8577e419aee5f322320 /src/cmd/gc
parent67818e0883eb5783bc25c733ba52875610ce7ce1 (diff)
downloadgo-35e443636c3382f45dafef338016abe455741ad0.tar.gz
gc: alternative clang compatible abort.
Tested on clang 2.9/amd64 R=rsc, jeff, r CC=golang-dev http://codereview.appspot.com/4517143 Committer: Rob Pike <r@golang.org>
Diffstat (limited to 'src/cmd/gc')
-rw-r--r--src/cmd/gc/subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c
index 5d93df67e..1dd357950 100644
--- a/src/cmd/gc/subr.c
+++ b/src/cmd/gc/subr.c
@@ -105,7 +105,7 @@ hcrash(void)
flusherrors();
if(outfile)
unlink(outfile);
- abort();
+ *(volatile int*)0 = 0;
}
}