User directed Function Multiversioning via Function Overloading (issue5752064)

Jason Merrill jason@redhat.com
Thu Jul 19 20:40:00 GMT 2012


On 07/10/2012 03:14 PM, Sriraman Tallam wrote:
> I am using the questions you asked previously
> to explain how I solved each of them. When working on this patch, these
> are the exact questions I had and tried to address it.
>
> * Does this attribute affect a function signature?
>
> The function signature should be changed when there is more than one
> definition/declaration of foo distinguished by unique target attributes.
 >[...]

I agree.  I was trying to suggest that these questions are what the 
front end needs to care about, not about versioning specifically.  If 
these questions are turned into target hooks, all of the logic specific 
to versioning can be contained in the target.

My only question intended to be answered by humans is, do people think 
moving the versioning logic behind more generic target hooks is worthwhile?

Jason



More information about the Gcc-patches mailing list