From 8d4540089a757d0f1860f2169937c95c77b6388b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 25 Feb 2003 17:26:51 -0800 Subject: [PATCH] i386.c (function_arg): Pass variable sized structures correctly on the stack. * config/i386/i386.c (function_arg): Pass variable sized structures correctly on the stack. From-SVN: r63442 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d985ed55658..80f2afae697 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-02-25 Richard Henderson + + * config/i386/i386.c (function_arg): Pass variable sized + structures correctly on the stack. + 2003-02-25 Kazu Hirata * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c464b6c0674..53df0892172 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2468,6 +2468,9 @@ function_arg (cum, mode, type, named) break; case BLKmode: + if (bytes < 0) + break; + /* FALLTHRU */ case DImode: case SImode: case HImode: -- 2.30.2