Commit bd340349 by Roger Sayle Committed by Roger Sayle

re PR middle-end/18683 (seg fault in local allocate)


	PR middle-end/18683
	* config/rs6000/rs6000.c (current_file_function_operand): Only check
	current_function_decl's DECL_RTL if it has already been set.

From-SVN: r92453
parent 5fdf61fe
2004-12-20 Roger Sayle <roger@eyesopen.com>
PR middle-end/18683
* config/rs6000/rs6000.c (current_file_function_operand): Only check
current_function_decl's DECL_RTL if it has already been set.
2004-12-20 Roger Sayle <roger@eyesopen.com>
PR middle-end/18683
* function.c (pop_function_context_from): Don't reset reg_renumber.
2004-12-20 Eric Botcazou <ebotcazou@libertysurf.fr>
......
......@@ -2960,7 +2960,8 @@ current_file_function_operand (rtx op,
return (GET_CODE (op) == SYMBOL_REF
&& (DEFAULT_ABI != ABI_AIX || SYMBOL_REF_FUNCTION_P (op))
&& (SYMBOL_REF_LOCAL_P (op)
|| (op == XEXP (DECL_RTL (current_function_decl), 0))));
|| (DECL_RTL_SET_P (current_function_decl)
&& op == XEXP (DECL_RTL (current_function_decl), 0))));
}
/* Return 1 if this operand is a valid input for a move insn. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment