[PATCH] __atomic library calls which are external may require some label exporting
Andrew MacLeod
amacleod@redhat.com
Tue Nov 22 09:39:00 GMT 2011
On any target which defines ASM_OUTPUT_EXTERNAL, there is some fiddling
that has to be done with external labels. hpux is such a target, and any
unresolved functions need to be emitted as CODE labels rather than the
default DATA label.
previously, all __builtin functions were considered to be incorporeal
and didnt need any processing, but this is not true for __atomic or even
any __sync which may get to the point of being an external call.
Dave has already tested this patch against PR 51011 which he opened. I
believe it did the trick?
bootstraps with no new regressions on x86_64-unknown-linux-gnu... as it
should since most of this only makes it into the compiler if
ASM_OUTPUT_EXTERNAL is actually defined.
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: externlabel.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111122/ebd31171/attachment.ksh>
More information about the Gcc-patches
mailing list