summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-10 21:49:55 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-10 21:49:55 +0000
commitf01e5412fab43a4b166b4b31204c026bb018fb4c (patch)
tree533fe09800fd5d97c87e386380f72b680971922f
parentea936750bb74732ac7775443132eb58970aa4617 (diff)
downloadgcc-f01e5412fab43a4b166b4b31204c026bb018fb4c.tar.gz
* config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
when MODE isn't BLKmode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109554 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 92fa318a494..97ee993314d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-10 Kaz Kojima <kkojima@gcc.gnu.org>
+
+ * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
+ when MODE isn't BLKmode.
+
2006-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
PR rtl-optimization/25367
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index df2ebc0aa41..87117f45b4c 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -2103,7 +2103,9 @@ struct sh_args {
&& ((MODE) == BLKmode || (MODE) == TImode || (MODE) == CDImode \
|| (MODE) == DCmode) \
&& ((CUM).arg_count[(int) SH_ARG_INT] \
- + (int_size_in_bytes (TYPE) + 7) / 8) > NPARM_REGS (SImode))
+ + (((MODE) == BLKmode ? int_size_in_bytes (TYPE) \
+ : GET_MODE_SIZE (MODE)) \
+ + 7) / 8) > NPARM_REGS (SImode))
/* Perform any needed actions needed for a function that is receiving a
variable number of arguments. */