From afc066ef359fbce1d44025e59c67eeb08aa87a44 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 29 Jun 2004 03:54:07 +0000 Subject: [PATCH] function.c (assign_parms): Don't abort with zero size stack parm failing the PARM_BOUNDARY check. * function.c (assign_parms): Don't abort with zero size stack parm failing the PARM_BOUNDARY check. From-SVN: r83840 --- gcc/ChangeLog | 5 +++++ gcc/function.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 64cca62c739..7403553b171 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-29 Alan Modra + + * function.c (assign_parms): Don't abort with zero size stack + parm failing the PARM_BOUNDARY check. + 2004-06-28 Diego Novillo * common.opt (ftree-fre): New flag. diff --git a/gcc/function.c b/gcc/function.c index ea092838519..080345f02bd 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -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); -- 2.30.2