OSDN Git Service

PR c++/49264
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jun 2011 17:12:25 +0000 (17:12 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jun 2011 17:12:25 +0000 (17:12 +0000)
commitbb4322f9b6631f83c1f5cb46af0c5a6773a84ba8
tree49149b6774ee1bc9cd12c2261a21557049cfe8b3
parenta0a6c5888b3db0e434b09ace7a8ac290e257c00d
PR c++/49264
* gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
if stmt folded into nothing.
* tree-inline.c (fold_marked_statements): If a builtin at the
end of a bb folded into nothing, just update cgraph edges
and move to next bb.
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
to be NULL.  Don't compute count and frequency if new_call is NULL.

* g++.dg/opt/pr49264.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174711 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraph.c
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr49264.C [new file with mode: 0644]
gcc/tree-inline.c