[patch] Fix bug with noreturn call

Eric Botcazou ebotcazou@adacore.com
Tue Jun 22 10:16:00 GMT 2010


> A patch to do so is pre-approved if it passes bootstrap & regtest.

Here is the patch that I've been playing with this morning.


        * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
        new statement and adjust VDEF only if necessary.  Remove superfluous
        call to maybe_clean_or_replace_eh_stmt.
        * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
        copy the flags.
	* gimple-iterator.c (gsi_replace): Clear BB of old statement here.
	* tree-inline.c (copy_bb): Do not clear BB of old statement here.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 4157 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100622/3a492b9c/attachment.bin>


More information about the Gcc-patches mailing list