diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2003-01-26 09:11:31 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2003-01-26 09:11:31 +0000 |
commit | 2cd622c31006a66c7a5c0e316f868000037a9de3 (patch) | |
tree | 9d859d202ad4a45e942a1eebb2746cfc4f1a43e1 /gcc | |
parent | 8ae91fc0348533eb653f6cbe521c72a412d7f8a9 (diff) | |
download | gcc-2cd622c31006a66c7a5c0e316f868000037a9de3.zip gcc-2cd622c31006a66c7a5c0e316f868000037a9de3.tar.gz gcc-2cd622c31006a66c7a5c0e316f868000037a9de3.tar.bz2 |
optabs.c (expand_binop): Return xtarget if we haven't been able to move the result to target.
* optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
been able to move the result to target.
From-SVN: r61829
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/optabs.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe1fe10..4a29fd5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,10 +1,11 @@ 2003-01-26 Alexandre Oliva <aoliva@redhat.com> + * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't + been able to move the result to target. + * expr.c (emit_group_store): Initialize dst with CONST0_RTX for the appropriate mode. -2003-01-26 Alexandre Oliva <aoliva@redhat.com> - * calls.c (emit_library_call_value_1): Handle return values in a PARALLEL. diff --git a/gcc/optabs.c b/gcc/optabs.c index 38cc7e7..ea045f4 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1309,6 +1309,8 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) copy_rtx (xop0), copy_rtx (xop1))); } + else + target = xtarget; return target; } |