]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/44942 (Bug in argument passing of long double)
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 6 Aug 2010 23:22:52 +0000 (23:22 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 6 Aug 2010 23:22:52 +0000 (23:22 +0000)
PR target/44942
* config/sparc/sparc.c (function_arg_advance): Always take into account
the padding, if any.

From-SVN: r162967

gcc/ChangeLog
gcc/config/sparc/sparc.c

index 0ed05bd5ad110bac45b2c07acdb07b7c35563bd0..d2ec553e156a8916b0e2a18a7906c73d1348c59d 100644 (file)
@@ -1,3 +1,9 @@
+2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR target/44942
+       * config/sparc/sparc.c (function_arg_advance): Always take into account
+       the padding, if any.
+
 2010-08-06  Richard Guenther  <rguenther@suse.de>
 
        * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
index 48cf00e902a7a438c73fbec283451a0e0c325d9e..ef1dd730eae7fa13e420f95454717e568fe960e0 100644 (file)
@@ -5809,14 +5809,13 @@ void
 function_arg_advance (struct sparc_args *cum, enum machine_mode mode,
                      tree type, int named)
 {
-  int slotno, regno, padding;
+  int regno, padding;
 
   /* We pass 0 for incoming_p here, it doesn't matter.  */
-  slotno = function_arg_slotno (cum, mode, type, named, 0, &regno, &padding);
+  function_arg_slotno (cum, mode, type, named, 0, &regno, &padding);
 
-  /* If register required leading padding, add it.  */
-  if (slotno != -1)
-    cum->words += padding;
+  /* If argument requires leading padding, add it.  */
+  cum->words += padding;
 
   if (TARGET_ARCH32)
     {