[Bug tree-optimization/41355] Type of ADDR_EXPR in CALL_EXPR not rebuilt when function is cloned

baldrick at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 5 19:14:00 GMT 2010



------- Comment #3 from baldrick at gcc dot gnu dot org  2010-07-05 19:14 -------
Hi Honza, my original patch was silly, I'm trying this instead:

@@ -7216,7 +7216,7 @@
   if (TREE_CODE (orig_type) != METHOD_TYPE
       || !bitmap_bit_p (args_to_skip, 0))
     {
-      new_type = copy_node (orig_type);
+      new_type = build_distinct_type_copy (orig_type);
       TYPE_ARG_TYPES (new_type) = new_reversed;
     }
   else


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41355



More information about the Gcc-bugs mailing list