function.c (assign_parms): Don't abort with zero size stack parm failing the PARM_BOU...
authorAlan Modra <amodra@bigpond.net.au>
Tue, 29 Jun 2004 03:54:07 +0000 (03:54 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 29 Jun 2004 03:54:07 +0000 (13:24 +0930)
* function.c (assign_parms): Don't abort with zero size stack
parm failing the PARM_BOUNDARY check.

From-SVN: r83840

gcc/ChangeLog
gcc/function.c

index 64cca62..7403553 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * function.c (assign_parms): Don't abort with zero size stack
+       parm failing the PARM_BOUNDARY check.
+
 2004-06-28  Diego Novillo  <dnovillo@redhat.com>
 
        * common.opt (ftree-fre): New flag.
index ea09283..080345f 100644 (file)
@@ -4821,7 +4821,7 @@ assign_parms (tree fndecl)
                }
              else if (GET_CODE (entry_parm) == PARALLEL)
                ;
-             else if (PARM_BOUNDARY % BITS_PER_WORD != 0)
+             else if (size != 0 && PARM_BOUNDARY % BITS_PER_WORD != 0)
                abort ();
 
              mem = validize_mem (stack_parm);