]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386.c (function_arg): Pass variable sized structures correctly on the stack.
authorRichard Henderson <rth@redhat.com>
Wed, 26 Feb 2003 01:29:09 +0000 (17:29 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 26 Feb 2003 01:29:09 +0000 (17:29 -0800)
        * config/i386/i386.c (function_arg): Pass variable sized
        structures correctly on the stack.

From-SVN: r63444

gcc/ChangeLog
gcc/config/i386/i386.c

index 97638d9d0f810dcbc22e6162f4c79e5669d8b481..938a11068cfc158b4d85f995c2ed2297afcdaba9 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-25  Richard Henderson  <rth@redhat.com>
+
+        * config/i386/i386.c (function_arg): Pass variable sized
+        structures correctly on the stack.
+
 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        PR target/9732
index 054a925e390db2af1bb2d740fce4dfa3403a1002..779d89b0c9f1f3108a8393d0f6d24b80cab67ee0 100644 (file)
@@ -2232,6 +2232,9 @@ function_arg (cum, mode, type, named)
        break;
 
       case BLKmode:
+       if (bytes < 0)
+         break;
+       /* FALLTHRU */
       case DImode:
       case SImode:
       case HImode: