* predict.c (maybe_hot_frequency_p): Use opt_for_fn.
	(optimize_function_for_size_p): Likewise.
	(probably_never_executed): Likewise; replace cfun by fun.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217666 138bc75d-0d04-0410-961f-82ee72b054a4
	* cgraph.c (symbol_table::create_edge): Use opt_for_fn.
	(cgraph_node::cannot_return_p): Likewise.
	(cgraph_edge::cannot_lead_to_return_p): Likewise.
	(cgraph_edge::maybe_hot_p): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217667 138bc75d-0d04-0410-961f-82ee72b054a4
	* cgraphunit.c (analyze_functions): Use opt_for_fn.
	* cgraph.h (cgraph_node::optimize_for_size_p): Likewise.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217668 138bc75d-0d04-0410-961f-82ee72b054a4
	* cp-gimplify.c (genericize_cp_loop): Use LOOP_EXPR.
	(genericize_for_stmt): Handle null statement-list.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217669 138bc75d-0d04-0410-961f-82ee72b054a4
	Handle C++14 constexpr flow control.
	* constexpr.c (cxx_eval_loop_expr, cxx_eval_switch_expr): New.
	(cxx_eval_statement_list): New.
	(cxx_eval_constant_expression): Handle LABEL_EXPR,
	CASE_LABEL_EXPR, GOTO_EXPR, LOOP_EXPR, SWITCH_EXPR.  Handle jump
	semantics of RETURN_EXPR.
	(many functions): Add jump_target parameter.
	(returns, breaks, continues, switches, label_matches): New.
	* cp-tree.h (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): New.
	* cp-gimplify.c (begin_bc_block): Set them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217670 138bc75d-0d04-0410-961f-82ee72b054a4
	* tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
	to optimization_default_node.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217671 138bc75d-0d04-0410-961f-82ee72b054a4
	PR c++/50473
	* decl.c (cp_finish_decl): Don't try to process a non-dependent
	constant initializer for a reference.
	* pt.c (value_dependent_expression_p): A reference is always
	dependent.
	* call.c (extend_ref_init_temps_1): Also clear TREE_SIDE_EFFECTS
	on any NOP_EXPRs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217672 138bc75d-0d04-0410-961f-82ee72b054a4