[PATCH v2] Avoid unnecessarily numbered clone symbols

Michael Ploujnikov michael.ploujnikov@oracle.com
Mon Oct 22 06:14:00 GMT 2018


Continuing from https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01258.html

Fixed up the code after the change to concat suggested by Bernhard
Reutner.

Outstanding question still remains:

To write an exact replacement for numbered_clone_function_name (apart
from the numbering) I also need to copy the double underscore
prefixing behaviour done by ASM_PN_FORMAT (right?)  which is used by
ASM_FORMAT_PRIVATE_NAME. Does that mean that I can't use my
suffixed_function_name to replace the very similar looking code in
cgraph_node::create_virtual_clone? Or is it just missing the double
underscore prefix by mistake?


- Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Rename-clone_function_name_1-and-clone_function_name.patch
Type: text/x-patch
Size: 8980 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181022/5b97f83e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Cold-sections-don-t-need-to-be-numbered.patch
Type: text/x-patch
Size: 5935 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181022/5b97f83e/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Use-suffixed_function_name-in-cgraph_node-create_vir.patch
Type: text/x-patch
Size: 1804 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181022/5b97f83e/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-There-can-be-at-most-one-.localalias-clone-per-symbo.patch
Type: text/x-patch
Size: 1101 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181022/5b97f83e/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181022/5b97f83e/attachment.sig>


More information about the Gcc-patches mailing list