]> Cypherpunks repositories - gostls13.git/commitdiff
gc: enable building under clang/2.9
authorDave Cheney <dave@cheney.net>
Mon, 6 Jun 2011 09:53:44 +0000 (19:53 +1000)
committerRob Pike <r@golang.org>
Mon, 6 Jun 2011 09:53:44 +0000 (19:53 +1000)
To build under clang, pass the path to clang in CC when
calling ./make.bash

CC=/opt/llvm/llvm-2.9/bin/clang ./make.bash

Credit goes to jmhodges for suggestions.

R=jeff, r, ality
CC=golang-dev
https://golang.org/cl/4527098

src/cmd/gc/subr.c

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