diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-05-23 09:45:29 +0200 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-05-23 11:04:16 +0200 | 
| commit | 4e5e42a1c1a9eb757743648c48df70cbd42635db (patch) | |
| tree | 64220a5cf0a1ad27206bbcdbc810ea56ba5ed67f /src/cmd/gc/subr.c | |
| parent | fd089e27d7260cee1c7ca449c41cdd0341ebc6cb (diff) | |
| download | golang-4e5e42a1c1a9eb757743648c48df70cbd42635db.tar.gz | |
Imported Upstream version 2011.05.22
Diffstat (limited to 'src/cmd/gc/subr.c')
| -rw-r--r-- | src/cmd/gc/subr.c | 14 | 
1 files changed, 10 insertions, 4 deletions
| diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index bb2505694..326a5ba74 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -1073,6 +1073,9 @@ Jconv(Fmt *fp)  	if(n->implicit != 0)  		fmtprint(fp, " implicit(%d)", n->implicit); +	if(n->pun != 0) +		fmtprint(fp, " pun(%d)", n->pun); +  	return 0;  } @@ -1141,7 +1144,7 @@ Tpretty(Fmt *fp, Type *t)  	Type *t1;  	Sym *s; -	if(debug['r']) { +	if(0 && debug['r']) {  		debug['r'] = 0;  		fmtprint(fp, "%T (orig=%T)", t, t->orig);  		debug['r'] = 1; @@ -1454,6 +1457,8 @@ Nconv(Fmt *fp)  	}  	if(fp->flags & FmtSharp) { +		if(n->orig != N) +			n = n->orig;  		exprfmt(fp, n, 0);  		goto out;  	} @@ -3107,7 +3112,7 @@ genwrapper(Type *rcvr, Type *method, Sym *newnam, int iface)  	Type *tpad;  	int isddd; -	if(debug['r']) +	if(0 && debug['r'])  		print("genwrapper rcvrtype=%T method=%T newnam=%S\n",  			rcvr, method, newnam); @@ -3161,7 +3166,7 @@ genwrapper(Type *rcvr, Type *method, Sym *newnam, int iface)  		fn->nbody = list1(n);  	} -	if(debug['r']) +	if(0 && debug['r'])  		dumplist("genwrapper body", fn->nbody);  	funcbody(fn); @@ -3256,8 +3261,9 @@ implements(Type *t, Type *iface, Type **m, Type **samename, int *ptr)  		// the method does not exist for value types.  		rcvr = getthisx(tm->type)->type->type;  		if(isptr[rcvr->etype] && !isptr[t0->etype] && !followptr && !isifacemethod(tm->type)) { -			if(debug['r']) +			if(0 && debug['r'])  				yyerror("interface pointer mismatch"); +  			*m = im;  			*samename = nil;  			*ptr = 1; | 
