* hppa-tdep.c (hppa_push_arguments): Allocate enough space for
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 8 Jul 1993 20:06:19 +0000 (20:06 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 8 Jul 1993 20:06:19 +0000 (20:06 +0000)
arguments.

gdb/ChangeLog
gdb/hppa-tdep.c

index b8121ad9bfa6b6e883213f8a96d00deeb14017aa..44390a111882312da0d8482fe4b344b46424f2d2 100644 (file)
@@ -1,5 +1,8 @@
 Thu Jul  8 14:48:54 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
+       arguments.
+
        * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep.
 
 Thu Jul  8 08:22:05 1993  Doug Evans  (dje@canuck.cygnus.com)
index e4f2ac2cd30c16490d3466e0a7d97b16df367bf7..2ae279a736a433ed3f66ffb30f578d2458d725c3 100644 (file)
@@ -692,7 +692,7 @@ hppa_push_arguments (nargs, args, sp, struct_return, struct_addr)
        cum = (cum + alignment) & -alignment;
       offset[i] = -cum;
     }
-  sp += min ((cum + 7) & -8, 16);
+  sp += max ((cum + 7) & -8, 16);
 
   for (i = 0; i < nargs; i++)
     write_memory (sp + offset[i], VALUE_CONTENTS (args[i]),