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
+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
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. */