r174711 - in /trunk/gcc: ChangeLog cgraph.c gim...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Mon Jun 6 17:12:00 GMT 2011


Author: jakub
Date: Mon Jun  6 17:12:25 2011
New Revision: 174711

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174711
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:
    trunk/gcc/testsuite/g++.dg/opt/pr49264.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.c
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-inline.c



More information about the Gcc-cvs mailing list