* function.c (assign_parms): Don't abort with zero size stack
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jun 2004 03:54:07 +0000 (03:54 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jun 2004 03:54:07 +0000 (03:54 +0000)
parm failing the PARM_BOUNDARY check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83840 138bc75d-0d04-0410-961f-82ee72b054a4

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);