Fix mips build error.
authorJim Wilson <wilson@cygnus.com>
Thu, 11 Jun 1998 12:54:24 +0000 (12:54 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 11 Jun 1998 12:54:24 +0000 (05:54 -0700)
* mips.c (override_options): Replace word_mode with explicit
TARGET_64BIT check.

From-SVN: r20428

gcc/ChangeLog
gcc/config/mips/mips.c

index 79f0a7e8bbf0ab7bdc2a8077b5dd66dd7580392b..de843accde8aabf39a3802d22d451570bc10e286 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun 11 12:40:27 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * mips.c (override_options): Replace word_mode with explicit
+       TARGET_64BIT check.
+
 Thu Jun 11 14:50:02 1998  Michael Meissner  <meissner@cygnus.com>
 
        * regmove.c (regmove_optimize): If we can't replace the
index f5faa94ac2fdd7713e29fed3b56c3ffecc837225..cd7ba947880182ce94613cb88a5c4dcd7a9943b4 100644 (file)
@@ -4451,8 +4451,9 @@ override_options ()
        }
     }
 
-  /* Save GPR registers in word_mode sized hunks.  */
-  gpr_mode = word_mode;
+  /* Save GPR registers in word_mode sized hunks.  word_mode hasn't been
+     initialized yet, so we can't use that here.  */
+  gpr_mode = TARGET_64BIT ? DImode : SImode;
 }
 
 /* On the mips16, we want to allocate $24 (T_REG) before other