This is the mail archive of the gcc@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: How to copy a tree ?


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)


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