diff options
author | Jim Wilson <wilson@cygnus.com> | 1999-08-11 00:26:38 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1999-08-10 17:26:38 -0700 |
commit | ab1672a3330ca219b72ee1d5bc21c02c87aba4ca (patch) | |
tree | 5dde43adc971ac23fb459e3fd240e39d159461ed /gcc | |
parent | fbb72466580f54d1b43a42d9845107e488627241 (diff) | |
download | gcc-ab1672a3330ca219b72ee1d5bc21c02c87aba4ca.zip gcc-ab1672a3330ca219b72ee1d5bc21c02c87aba4ca.tar.gz gcc-ab1672a3330ca219b72ee1d5bc21c02c87aba4ca.tar.bz2 |
Fix -O0 core dump reported by Fred Fish.
* config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
note if it is non-NULL.
From-SVN: r28653
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0409461..1e9249b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com> + + * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on + note if it is non-NULL. + Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com> * except.h (eh_nesting_info): Add new structure defintion. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index b6799d9..dd3db96 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -3123,7 +3123,10 @@ machine_dependent_reorg (first) rtx note = find_regno_note (last_float_move, REG_UNUSED, 0); - PUT_MODE (note, REG_INC); + /* If we are not optimizing, then there may not be + a note. */ + if (note) + PUT_MODE (note, REG_INC); *last_float_addr = r0_inc_rtx; } |