Commit ef40d943 authored by Russ Cox's avatar Russ Cox

6g:

	make sure methods end up immediately following
	the struct they are methods on.
ar:
	eliminate duplicate definitions from __.PKGDEF.
	check that multiple .6 do not give different defs for same
		exported type/var/func/const.
	increase ar header name size from 16 to 64 bytes

R=r
DELTA=379  (333 added, 18 deleted, 28 changed)
OCL=17477
CL=17481
parent 03a9872f
......@@ -32,7 +32,7 @@
#define SARMAG 8
#define ARFMAG "`\n"
#define SARNAME 16
#define SARNAME 64
struct ar_hdr
{
......
This diff is collapsed.
......@@ -154,12 +154,14 @@ dumpsym(Sym *s)
break;
case LATYPE:
case LBASETYPE:
dumpexporttype(s);
for(f=s->otype->method; f!=T; f=f->down) {
// TODO(rsc): sort methods by name
for(f=s->otype->method; f!=T; f=f->down)
dumpprereq(f);
dumpexporttype(s);
for(f=s->otype->method; f!=T; f=f->down)
Bprint(bout, "\tfunc (%#T) %hS %#T\n",
f->type->type->type, f->sym, f->type);
}
break;
case LNAME:
dumpexportvar(s);
......
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