1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:44:41 -07:00

rm outfile if 6g exits with an error

R=ken
OCL=33134
CL=33141
This commit is contained in:
Russ Cox 2009-08-12 17:58:53 -07:00
parent 7c9b9af76e
commit d594639087

View File

@ -60,9 +60,12 @@ fatal(char *fmt, ...)
vfprint(1, fmt, arg);
va_end(arg);
print("\n");
if(debug['h'])
if(debug['h']) {
if(outfile)
unlink(outfile);
*(int*)0 = 0;
exit(1);
}
errorexit();
}
void
@ -87,7 +90,7 @@ linehist(char *file, int32 off, int relative)
file = cp;
}
h = alloc(sizeof(Hist));
h = mal(sizeof(Hist));
h->name = file;
h->line = lineno;
h->offset = off;