expr.c (expand_builtin): Use copy_to_mode_reg; don't force constants into a register.

* expr.c (expand_builtin) [BUILT_IN_RETURN_ADDRESS]: Use
        copy_to_mode_reg; don't force constants into a register.

From-SVN: r26231
This commit is contained in:
Richard Henderson 1999-04-06 19:14:06 -07:00 committed by Richard Henderson
parent 5b7c02b65b
commit d22cba0ade
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -9131,8 +9131,9 @@ expand_builtin (exp, target, subtarget, mode, ignore)
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;
}