diff options
author | Richard Henderson <rth@cygnus.com> | 1998-12-22 15:00:27 -0800 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-12-22 16:00:27 -0700 |
commit | 3d0ec3b37c45537cb1f1ceb7884e514c21d4074e (patch) | |
tree | 98d24cf47abd054a9f706fc5d9d5580ede560766 | |
parent | 57057b677ce0c9852ed4ece8bf43cab7d744944b (diff) | |
download | gcc-3d0ec3b37c45537cb1f1ceb7884e514c21d4074e.zip gcc-3d0ec3b37c45537cb1f1ceb7884e514c21d4074e.tar.gz gcc-3d0ec3b37c45537cb1f1ceb7884e514c21d4074e.tar.bz2 |
* reload1.c (emit_reload_insns): Check `set' not null before use.
From-SVN: r24399
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/reload1.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d483c86..fd74926 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 22 23:58:31 1998 Richard Henderson <rth@cygnus.com> + + * reload1.c (emit_reload_insns): Check `set' not null before use. + Tue Dec 22 15:15:45 1998 Nick Clifton <nickc@cygnus.com> * rtlanal.c (multiple_sets): Change type of 'found' from 'rtx' to diff --git a/gcc/reload1.c b/gcc/reload1.c index fb740aa..e8bb5fe 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -7507,7 +7507,7 @@ emit_reload_insns (chain) if (! src_reg) { rtx set = single_set (insn); - if (SET_DEST (set) == reload_out[r]) + if (set && SET_DEST (set) == reload_out[r]) { int k; |