This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: indirect function support


On 05/17/10 04:13, H.J. Lu wrote:

I have a a few questions:

1. Does it work with static ifunc functions like

static int magic (void *) __attribute__ ((ifunc ("resolver")));

yes -- added a testcase


2. Does it work with symbol visibility?

yes - added a testcase


3. Can you take an address of the ifunc function?

yes


4. Do you have C++ testcases?
      Does it work with member functions?
      Does it work with virtual functions.
      Does it work with inheritance?
      Can you take an address of an ifunc member functiom?

yes, added testcases, and augmented C++ to allow alias on (static & non-static) member functions. there was an interesting interaction with a class's key method.


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

Attachment: all.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]