C++ PATCH to avoid double copying of default arguments

Jason Merrill jason@redhat.com
Tue Sep 20 20:16:00 GMT 2011


While working on something else I noticed that we were copying the trees 
in a default argument twice: once in break_out_target_exprs and then 
again with an explicit unshare_expr.  So I removed the redundant 
unshare_expr.  This didn't cause any regressions by itself, but just to 
be safe I also changed bot_manip to copy everything.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dup-copy.patch
Type: text/x-patch
Size: 2735 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110920/648ec84b/attachment.bin>


More information about the Gcc-patches mailing list