[PATCH] Fix multi-versioning issues (PR ipa/80732).

Martin Liška mliska@suse.cz
Thu May 25 10:07:00 GMT 2017


Hello.

Following patch tries to resolve following 2 issues:

a) When one takes address of a function that uses target_clones attribute,
   default implementation is always returned.

b) Using dlsym("foo") should work and thus the resolver function should
   use the default name. Because of that, default implementation must be
   renamed.

Unfortunately, we currently do not support redirection of ipa_refs, thus
walk_tree is needed to resolve that. Hopefully there should not be any
different IPA_REF that needs to be handled.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-multi-versioning-issues-PR-ipa-80732.patch
Type: text/x-patch
Size: 9881 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170525/979f7b66/attachment.bin>


More information about the Gcc-patches mailing list