Commit d22cba0a by Richard Henderson Committed by Richard Henderson

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
parent 5b7c02b6
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.
......
......@@ -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;
}
......
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