OSDN Git Service

PR c++/49264
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jun 2011 17:14:31 +0000 (17:14 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Jun 2011 17:14:31 +0000 (17:14 +0000)
commit7938df809f15bc32028de8dbaa5c844b9da6b17f
tree209a80ca91b563c4e720d8e78b6d72e02d2b82e7
parentbb4322f9b6631f83c1f5cb46af0c5a6773a84ba8
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@174712 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/pr49294.c [new file with mode: 0644]