Commit b2ea030b by Jan Hubicka Committed by Jan Hubicka

* semantics.c (expand_body): Do not mark arguments of clones used.

From-SVN: r128209
parent bdeb2c96
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> 2007-09-06 Paolo Carlini <pcarlini@suse.de>
PR c++/32674 PR c++/32674
......
...@@ -3140,26 +3140,6 @@ expand_body (tree fn) ...@@ -3140,26 +3140,6 @@ expand_body (tree fn)
gcc_assert (function_depth == 0); gcc_assert (function_depth == 0);
c_expand_body (fn); 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. */ /* Generate RTL for FN. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment