Commit 1a01ffd3 authored by Shenghou Ma's avatar Shenghou Ma

cmd/gc: fix mkbuiltin (gc -A always write all symbols to export section)

Regenerate cmd/gc/builtin.c.
Fixes #4908.

R=rsc
CC=golang-dev
https://golang.org/cl/7383053
parent f5afc7d4
This diff is collapsed.
...@@ -65,7 +65,8 @@ autoexport(Node *n, int ctxt) ...@@ -65,7 +65,8 @@ autoexport(Node *n, int ctxt)
return; return;
if(n->ntype && n->ntype->op == OTFUNC && n->ntype->left) // method if(n->ntype && n->ntype->op == OTFUNC && n->ntype->left) // method
return; return;
if(exportname(n->sym->name) || initname(n->sym->name)) // -A is for cmd/gc/mkbuiltin script, so export everything
if(debug['A'] || exportname(n->sym->name) || initname(n->sym->name))
exportsym(n); exportsym(n);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment