* semantics.c (expand_body): Do not mark arguments of clones used.
authorJan Hubicka <jh@suse.cz>
Thu, 6 Sep 2007 23:04:18 +0000 (01:04 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 6 Sep 2007 23:04:18 +0000 (23:04 +0000)
From-SVN: r128209

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 2c3533d8ea1fa4b4a7dcd085fdca6f386c4566f5..12cdd809750ac49acf25169dc8f30403a5702e4f 100644 (file)
@@ -1,3 +1,7 @@
+2007-09-06  Jan Hubicka  <jh@suse.cz>
+
+       * semantics.c (expand_body): Do not mark arguments of clones used.
+
 2007-09-06  Paolo Carlini  <pcarlini@suse.de>
 
        PR c++/32674
index 46789f73565880dd12c5c74a3001eb29d86d4c01..28fe481b43132840ac0ed0fe72c48c9a7b3a2e00 100644 (file)
@@ -3140,26 +3140,6 @@ expand_body (tree fn)
   gcc_assert (function_depth == 0);
 
   c_expand_body (fn);
-
-  if (DECL_CLONED_FUNCTION_P (fn))
-    {
-      /* If this is a clone, go through the other clones now and mark
-        their parameters used.  We have to do that here, as we don't
-        know whether any particular clone will be expanded, and
-        therefore cannot pick one arbitrarily.  */
-      tree probe;
-
-      for (probe = TREE_CHAIN (DECL_CLONED_FUNCTION (fn));
-          probe && DECL_CLONED_FUNCTION_P (probe);
-          probe = TREE_CHAIN (probe))
-       {
-         tree parms;
-
-         for (parms = DECL_ARGUMENTS (probe);
-              parms; parms = TREE_CHAIN (parms))
-           TREE_USED (parms) = 1;
-       }
-    }
 }
 
 /* Generate RTL for FN.  */