re PR c++/49264 (Internal compiler error: segmentation fault)
authorJakub Jelinek <jakub@redhat.com>
Mon, 6 Jun 2011 17:14:31 +0000 (19:14 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 6 Jun 2011 17:14:31 +0000 (19:14 +0200)
commit04902d4cb5ca18954cf2c32c4f776e53162a0e8f
tree209a80ca91b563c4e720d8e78b6d72e02d2b82e7
parenta9d245448f2529fe9a4aba63d9cd97059a17a121
re PR c++/49264 (Internal compiler error: segmentation fault)

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.

From-SVN: r174712
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/pr49294.c [new file with mode: 0644]