diff options
| author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 06:03:01 +0000 |
|---|---|---|
| committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 06:03:01 +0000 |
| commit | 9e1f4e74bb657bdc619a75c35904613520cbd3db (patch) | |
| tree | 666ec43b8e664a1fd151aa90fb4a96b019039ba4 | |
| parent | 8728e49b7edf5ca145f47681417b4165105d9255 (diff) | |
| download | ppe42-gcc-9e1f4e74bb657bdc619a75c35904613520cbd3db.tar.gz ppe42-gcc-9e1f4e74bb657bdc619a75c35904613520cbd3db.zip | |
* config/stormy16/stormy16.c (xstormy16_expand_arith): Make
sure we always emit at least one insn.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64644 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/stormy16/stormy16.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0931e8efb0b..118ff21be71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c index 597c4ddaff2..9ab984d8209 100644 --- a/gcc/config/stormy16/stormy16.c +++ b/gcc/config/stormy16/stormy16.c @@ -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. */ |

