[llvm-commits] [PATCH] Use an alternate symbol for function-size calc

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Fri Dec 30 08:37:24 PST 2011


> I think that you can just use the output from llc with the test case in
> my patch. I apologize as I may not have said this explicitly, but the
> problem only appears on powerpc64 for linux
> (powerpc64-unknown-linux-gnu). If that does not reproduce the problem
> for you, I'll send you a failing .s file so that we can compare.

OK, I can reproduce this, but it looks like a bug in our end. We are
printing something like

	.text
	.section	".opd","aw"
test1:
	.quad .L.test1,.TOC. at tocbase
	.previous
.Ltmp0:
	.size	test1, .Ltmp0-test1

So test1 ends up in section ".opd". Is this really what we want? What
does gcc print for

int test1(int x) {return x}

?

> Thanks again,
> Hal

Cheers,
Rafael



More information about the llvm-commits mailing list