aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-01-20 17:47:45 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-01-20 12:47:45 -0500
commit2954d7dbf7d309d5b5c8fc2a32dae155936ee264 (patch)
treed266c733475e09758d1260c90b41f1c6bf07614a /gcc/expr.c
parent1d26ac96cc832057ed835b238ca35dfdb930762f (diff)
downloadgcc-2954d7dbf7d309d5b5c8fc2a32dae155936ee264.zip
gcc-2954d7dbf7d309d5b5c8fc2a32dae155936ee264.tar.gz
gcc-2954d7dbf7d309d5b5c8fc2a32dae155936ee264.tar.bz2
stmt.c (expand_return): Don't return anything if size is zero.
* stmt.c (expand_return): Don't return anything if size is zero. Delete redundant assignment to BYTES. * expr.c (move_block_from_reg): Do nothing if NREGS is zero. From-SVN: r39156
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index a78be1b..848431e 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -1857,6 +1857,9 @@ move_block_from_reg (regno, x, nregs, size)
#endif
enum machine_mode mode;
+ if (nregs == 0)
+ return;
+
/* If SIZE is that of a mode no bigger than a word, just use that
mode's store operation. */
if (size <= UNITS_PER_WORD