This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to copy a tree ?
- From: Pop Sébastian <pop at gauvain dot u-strasbg dot fr>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 17 Jul 2003 12:00:59 +0200
- Subject: Re: How to copy a tree ?
- References: <vpqhe5l8uhy.fsf@ecrins.imag.fr>
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)