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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-06 
17:16:37 UTC ---
Author: jakub
Date: Mon Jun  6 17:16:35 2011
New Revision: 174713

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174713
Log:
    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.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/opt/pr49264.C
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/cgraph.c
    branches/gcc-4_6-branch/gcc/gimple-fold.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/tree-inline.c

Reply via email to