Commit 58ec6ece by Steve Ellcey Committed by Steve Ellcey

builtins.c (expand_builtin_stpcpy): Do not create temporary reg with VOIDmode.

	* builtins.c (expand_builtin_stpcpy): Do not create temporary
	reg with VOIDmode.

From-SVN: r84825
parent 27f1984e
2004-07-16 Steve Ellcey <sje@cup.hp.com>
* builtins.c (expand_builtin_stpcpy): Do not create temporary
reg with VOIDmode.
2004-07-16 Segher Boessenkool <segher@kernel.crashing.org> 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi). * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
......
...@@ -3130,7 +3130,12 @@ expand_builtin_stpcpy (tree arglist, rtx target, enum machine_mode mode) ...@@ -3130,7 +3130,12 @@ expand_builtin_stpcpy (tree arglist, rtx target, enum machine_mode mode)
if (ret) if (ret)
{ {
if (! target) if (! target)
target = gen_reg_rtx (mode); {
if (mode != VOIDmode)
target = gen_reg_rtx (mode);
else
target = gen_reg_rtx (GET_MODE (ret));
}
if (GET_MODE (target) != GET_MODE (ret)) if (GET_MODE (target) != GET_MODE (ret))
ret = gen_lowpart (GET_MODE (target), ret); ret = gen_lowpart (GET_MODE (target), ret);
......
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