diff options
author | Jim Wilson <wilson@cygnus.com> | 1998-06-11 12:54:24 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1998-06-11 05:54:24 -0700 |
commit | 45cc4c096a0d1da684cfe654cd94c61cd0b10d00 (patch) | |
tree | 9eb18d12d4b67f5440017c72baf51aca2c1a8a7a | |
parent | ecb75b7ab94b7d2515e65815df40c69bb8720471 (diff) | |
download | gcc-45cc4c096a0d1da684cfe654cd94c61cd0b10d00.zip gcc-45cc4c096a0d1da684cfe654cd94c61cd0b10d00.tar.gz gcc-45cc4c096a0d1da684cfe654cd94c61cd0b10d00.tar.bz2 |
Fix mips build error.
* mips.c (override_options): Replace word_mode with explicit
TARGET_64BIT check.
From-SVN: r20428
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 79f0a7e..de843ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index f5faa94..cd7ba94 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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 |