]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
authorPierre Muller <muller@sourceware.org>
Tue, 19 Apr 2011 12:57:37 +0000 (12:57 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 19 Apr 2011 12:57:37 +0000 (12:57 +0000)
variables to simplify code and avoid == operator at end of
line as this is against GNU coding standards.

gdb/ChangeLog
gdb/xstormy16-tdep.c

index b758a7164424a542ebf4d462cef76fab2676e566..c4a98be285f11dbd6c6047963bf0b04f880988cf 100644 (file)
@@ -1,3 +1,10 @@
+2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
+           Pedro Alves  <pedro@codesourcery.com>
+
+       * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
+       variables to simplify code and avoid == operator at end of
+       line as this is against GNU coding standards.
+
 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
 
        * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
index 53cbecdf9b69a90eaaffd55c172c4bd1019e5d31..bf32cbdac6759ea3b448871b3262b7e883d4f599 100644 (file)
@@ -263,12 +263,13 @@ xstormy16_push_dummy_call (struct gdbarch *gdbarch,
       /* Put argument into registers wordwise.  */
       val = value_contents (args[i]);
       for (j = 0; j < typelen; j += xstormy16_reg_size)
-       regcache_cooked_write_unsigned (regcache, argreg++,
-                       extract_unsigned_integer (val + j,
-                                                 typelen - j ==
-                                                 1 ? 1 :
-                                                 xstormy16_reg_size,
-                                                 byte_order));
+       {
+         ULONGEST regval;
+         int size = (typelen - j == 1) ? 1 : xstormy16_reg_size;
+
+         regval = extract_unsigned_integer (val + j, size, byte_order);
+         regcache_cooked_write_unsigned (regcache, argreg++, regval);
+       }
     }
 
   /* Align SP */