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

Hal Finkel hfinkel at anl.gov
Wed Feb 22 13:06:57 PST 2012


On Fri, 30 Dec 2011 12:30:07 -0500
Rafael Ávila de Espíndola <rafael.espindola at gmail.com> wrote:

> > I am not sure, but that seems to be what gcc does:
> 
> > 	.section	".opd","aw"
> ...
> > test1:
> ...
> > 	.previous
> > .L.test1:
> ...
> > 	.size	test1,.-.L.test1
> 
> Same behavior, interesting. I think you original patch is OK then.
> This is needed because of a particularity of how ppc64 works.

It seems that I dropped the ball on actually committing this; I'll
do that in a few minutes. To Joerg's point, I think that we can
certainly make this use more modern directives, etc., but I'd like to
commit a baseline working functionality that matches gcc's output and
then improve from there.

 -Hal

> 
> >  -Hal
> > 
> 
> Cheers,
> Rafael



-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory




More information about the llvm-commits mailing list