------- Comment #17 from jamborm at gcc dot gnu dot org  2010-03-18 20:07 
-------
Subject: Bug 42450

Author: jamborm
Date: Thu Mar 18 20:07:13 2010
New Revision: 157546

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157546
Log:
2010-03-18  Martin Jambor  <mjam...@suse.cz>

        PR middle-end/42450
        * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
        * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
        all non-clones.  Moved call redirection...
        (cgraph_redirect_edge_call_stmt_to_callee): ...to this new
        function.
        (cgraph_materialize_all_clones): Dispose of all
        combined_args_to_skip bitmaps.
        (verify_cgraph_node): Do not check for edges pointing to wrong
        nodes in inline clones.
        * tree-inline.c (copy_bb): Call
        cgraph_redirect_edge_call_stmt_to_callee.
        * ipa.c (cgraph_remove_unreachable_nodes): Call
        cgraph_node_remove_callees even when there are used clones.

        * testsuite/g++.dg/torture/pr42450.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/torture/pr42450.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.h
    trunk/gcc/cgraphunit.c
    trunk/gcc/ipa.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c


-- 


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

Reply via email to