On 08/24/2012 08:34 PM, Sriraman Tallam wrote:
+ /* If the address of a multiversioned function dispatcher is taken, + generate the body to dispatch the right function at run-time. This + is needed as the address can be used to do an indirect call. */
It seems to me that you don't need a dispatcher for doing indirect calls; you could just take the address of the version you would choose if you were doing a direct call.
The only reason for a dispatcher I can think of is if you want the address of a function to compare equal across translation units compiled with different target flags. I'm not sure that's necessary; am I missing something?
Continuing to look at the patch. Jason