~mcf/cproc

1c9fdf33eb2d4179c2c705dae0a13a00c2227af3 — Michael Forney 3 days ago 12695cb
qbe: Remove __PRETTY_FUNCTION__ declaration

We no longer define __GNUC__ so we don't have to work around glibc's
assert definition anymore.
1 files changed, 0 insertions(+), 5 deletions(-)

M qbe.c
M qbe.c => qbe.c +0 -5
@@ 560,11 560,6 @@ mkfunc(struct decl *decl, char *name, struct type *t, struct scope *s)
	d = mkdecl(DECLOBJECT, t, QUALNONE, LINKNONE);
	d->value = mkglobal("__func__", true);
	scopeputdecl(s, "__func__", d);
	/*
	needed for glibc's assert definition with __GNUC__=2 __GNUC_MINOR__=4
	XXX: this should also work at file scope, where it should evaluate to "toplevel"
	*/
	scopeputdecl(s, "__PRETTY_FUNCTION__", d);
	f->namedecl = d;

	funclabel(f, mkblock("body"));