From: Andrew MacLeod Date: Tue, 4 Dec 2001 17:37:23 +0000 (+0000) Subject: stmt.c (expand_return): Clear destination instead of clobbering it when setting a... X-Git-Tag: prereleases/libstdc++-3.0.95~507 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a38ed868f46c143af3df2f08ef58205faf4919e;p=thirdparty%2Fgcc.git stmt.c (expand_return): Clear destination instead of clobbering it when setting a return value via bitsets. 2001-12-04 Andrew MacLeod * stmt.c (expand_return): Clear destination instead of clobbering it when setting a return value via bitsets. From-SVN: r47616 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 57228114d28f..3f605a7ddcc7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-12-04 Andrew MacLeod + + * stmt.c (expand_return): Clear destination instead of clobbering it + when setting a return value via bitsets. + 2001-12-04 Alexandre Oliva * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if diff --git a/gcc/stmt.c b/gcc/stmt.c index 2b176bb9e9a5..db9174a92c7d 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -3233,8 +3233,8 @@ expand_return (retval) dst = gen_reg_rtx (word_mode); result_pseudos[xbitpos / BITS_PER_WORD] = dst; - /* Clobber the destination before we move anything into it. */ - emit_insn (gen_rtx_CLOBBER (VOIDmode, dst)); + /* Clear the destination before we move anything into it. */ + emit_move_insn (dst, CONST0_RTX (GET_MODE (dst))); } /* We need a new source operand each time bitpos is on a word