stormy16.c (xstormy16_expand_arith): Make sure we always emit at least one insn.

* config/stormy16/stormy16.c (xstormy16_expand_arith): Make
sure we always emit at least one insn.

From-SVN: r64644
This commit is contained in:
DJ Delorie 2003-03-21 01:03:01 -05:00 committed by DJ Delorie
parent 70e5e841b8
commit f3cd018570
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-03-21 DJ Delorie <dj@redhat.com>
* config/stormy16/stormy16.c (xstormy16_expand_arith): Make
sure we always emit at least one insn.
2003-03-21 Christopher Faylor <cgf@redhat.com>
* config.gcc (i[34567]86-*-cygwin*): Use new common makefile

View File

@ -1971,6 +1971,11 @@ xstormy16_expand_arith (mode, code, dest, src0, src1, carry)
firstloop = 0;
emit (insn);
}
/* If we emit nothing, try_split() will think we failed. So emit
something that does nothing and can be optimized away. */
if (firstloop)
emit (gen_nop ());
}
/* Return 1 if OP is a shift operator. */