(subreg_lowpart_p): Return 0 if SUBREG_REG is VOIDmode.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 10 Mar 1997 21:09:55 +0000 (16:09 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 10 Mar 1997 21:09:55 +0000 (16:09 -0500)
From-SVN: r13697

gcc/emit-rtl.c

index 2036ca727c95ff0aa4bfd092a304c4a38a5058dd..734ec3f371bfdbbfe7e4eb1ec44da053609a0a6c 100644 (file)
@@ -1,5 +1,5 @@
 /* Emit RTL for the GNU C-Compiler expander.
-   Copyright (C) 1987, 88, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1987, 88, 92-96, 1997 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -1041,6 +1041,8 @@ subreg_lowpart_p (x)
 {
   if (GET_CODE (x) != SUBREG)
     return 1;
+  else if (GET_MODE (SUBREG_REG (x)) == VOIDmode)
+    return 0;
 
   if (WORDS_BIG_ENDIAN
       && GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))) > UNITS_PER_WORD)