summaryrefslogtreecommitdiff
path: root/src/cmd/gc/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gc/export.c')
-rw-r--r--src/cmd/gc/export.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/gc/export.c b/src/cmd/gc/export.c
index 9992c5219..c73c476b6 100644
--- a/src/cmd/gc/export.c
+++ b/src/cmd/gc/export.c
@@ -268,7 +268,10 @@ dumpexport(void)
packagequotes = 1;
Bprint(bout, "\n$$ // exports\n");
- Bprint(bout, " package %s\n", localpkg->name);
+ Bprint(bout, " package %s", localpkg->name);
+ if(safemode)
+ Bprint(bout, " safe");
+ Bprint(bout, "\n");
for(l=exportlist; l; l=l->next) {
lineno = l->n->lineno;