From 98c9cf29d337c4bc9aa483e8479c61584e0e09aa Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 18 Apr 2016 13:42:41 -0400 Subject: output debug to stderr in spiller --- spill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spill.c') diff --git a/spill.c b/spill.c index a567779..f478557 100644 --- a/spill.c +++ b/spill.c @@ -490,8 +490,8 @@ spill(Fn *fn) if (debug['S']) { fprintf(stderr, "\n> Block information:\n"); for (b=fn->start; b; b=b->link) { - printf("\t%-10s (% 5d) ", b->name, b->loop); - dumpts(b->out, fn->tmp, stdout); + fprintf(stderr, "\t%-10s (% 5d) ", b->name, b->loop); + dumpts(b->out, fn->tmp, stderr); } fprintf(stderr, "\n> After spilling:\n"); printfn(fn, stderr); -- cgit 1.4.1