(sh_function_arg): Don't reject unaligned structures.
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 6 Feb 1995 23:26:58 +0000 (15:26 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 6 Feb 1995 23:26:58 +0000 (15:26 -0800)
(sh_function_arg_partial_nregs): Likewise.

From-SVN: r8881

gcc/config/sh/sh.c

index afbbf6c6dd69c9a6f3af695aca529382cd2ada15..6958a082a0edbbd49d0b696d1340c9a4697521c0 100644 (file)
@@ -2585,8 +2585,6 @@ sh_function_arg (cum, mode, type, named)
       if (rr < NPARM_REGS)
        {
          return (((type) == 0 || !TREE_ADDRESSABLE ((tree) (type)))
-                 && ((type) == 0 || (mode) != BLKmode
-                     || (TYPE_ALIGN ((type)) % PARM_BOUNDARY == 0))
                  ? gen_rtx (REG, (mode),
                             (FIRST_PARM_REG + rr)) 
                  : 0);
@@ -2612,7 +2610,6 @@ sh_function_arg_partial_nregs (CUM, MODE, TYPE, NAMED)
   if ((CUM) < NPARM_REGS)
     {
       if (((TYPE) == 0 || !TREE_ADDRESSABLE ((tree) (TYPE)))
-         && ((TYPE) == 0 || (TYPE_ALIGN ((TYPE)) % PARM_BOUNDARY == 0))
          && ((CUM) + ((MODE) == BLKmode
                       ? ROUND_ADVANCE (int_size_in_bytes (TYPE))
                  : ROUND_ADVANCE (GET_MODE_SIZE (MODE))) - NPARM_REGS > 0))