diff options
author | Craig Rodrigues <rodrigc@gcc.gnu.org> | 2002-01-06 20:54:52 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@gcc.gnu.org> | 2002-01-06 20:54:52 +0000 |
commit | 13b8c631f3de14db139d611bda3453bc10139d44 (patch) | |
tree | bb24fe250c387c2c0819a2c4126de5837421df1e /gcc | |
parent | a858ca75e2ee31e830660f0a46eb8cf87f17642d (diff) | |
download | gcc-13b8c631f3de14db139d611bda3453bc10139d44.zip gcc-13b8c631f3de14db139d611bda3453bc10139d44.tar.gz gcc-13b8c631f3de14db139d611bda3453bc10139d44.tar.bz2 |
emit-rtl.c (gen_highpart): Add check for NULL_RTX.
2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
* emit-rtl.c (gen_highpart): Add check for NULL_RTX.
From-SVN: r48586
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd3c5cd..5c2a0ea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org> + + * emit-rtl.c (gen_highpart): Add check for NULL_RTX. + 2002-01-06 Jakub Jelinek <jakub@redhat.com> * objc/objc-act.c (handle_impent): Use assemble_variable to emit diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 6efdad7..c3b8ddc 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1200,7 +1200,7 @@ gen_highpart (mode, x) /* simplify_gen_subreg is not guaranteed to return a valid operand for the target if we have a MEM. gen_highpart must return a valid operand, emitting code if necessary to do so. */ - if (GET_CODE (result) == MEM) + if (result != NULL_RTX && GET_CODE (result) == MEM) result = validize_mem (result); if (!result) |