How to copy a tree ?

Pop Sébastian pop@gauvain.u-strasbg.fr
Thu Jul 17 12:17:00 GMT 2003


On Thu, Jul 17, 2003 at 09:47:37AM +0200, Matthieu Moy wrote:
> 
> Is there a function doing a real recursive copy in any case ? 
> 
You could use the deep_copy_node function from the tree-ssa branch:

/*  Create a deep copy of NODE.  The only nodes that are not deep copied
    are declarations, constants and types.  */

tree
deep_copy_node (tree node)



More information about the Gcc mailing list