On 11/27/2011 04:44 PM, Patrick Marlier wrote:
> PR middle-end/51273
> * cgraph.h (cgraph_call_node_duplication_hooks): Declare.
> * cgraph.c (cgraph_call_node_duplication_hooks): Make global.
> * cgraphunit.c (cgraph_copy_node_for_versioning): Call duplication
> hook
cgraph_copy_node_for_versioning duplicate a node but it does not call
cgraph_call_node_duplication_hooks (as in cgraph_clone_node). So the
vector is not resized for the new node.
Bootstrapped and tested with no new regression on linux-x86-64.
(Don't have any account so please commit if ok)
Pat