* expr.c (expand_builtin) [BUILT_IN_RETURN_ADDRESS]: Use
copy_to_mode_reg; don't force constants into a register.
From-SVN: r26231
+Wed Apr 7 02:11:55 1999 Richard Henderson <rth@cygnus.com>
+
+ * expr.c (expand_builtin) [BUILT_IN_RETURN_ADDRESS]: Use
+ copy_to_mode_reg; don't force constants into a register.
+
Tue Apr 6 22:55:25 1999 Richard Henderson <rth@cygnus.com>
* toplev.c (compile_file): Typo flow_dump -> flow2_dump.
if (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_FRAME_ADDRESS)
return tem;
- if (GET_CODE (tem) != REG)
- tem = copy_to_reg (tem);
+ if (GET_CODE (tem) != REG
+ && ! CONSTANT_P (tem))
+ tem = copy_to_mode_reg (Pmode, tem);
return tem;
}