* score-tdep.c (score_push_dummy_call): Don't mix declarations and
authorJim Blandy <jimb@codesourcery.com>
Tue, 9 Jan 2007 21:25:03 +0000 (21:25 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 9 Jan 2007 21:25:03 +0000 (21:25 +0000)
statements.

gdb/ChangeLog
gdb/score-tdep.c

index f6260c4ad01a3ba4ad2bdb28050c512c637871cd..3cbfc6766c09712926775528ec1e88cf2dde59ed 100644 (file)
@@ -1,3 +1,8 @@
+2007-01-09  Jim Blandy  <jimb@codesourcery.com>
+
+       * score-tdep.c (score_push_dummy_call): Don't mix declarations and
+       statements.
+
 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
index a7bea042b5a72f946e348378e679a778b6e6b1ab..300e775c48d8826364fef69657ac543c3d9f3a7a 100644 (file)
@@ -434,14 +434,15 @@ score_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
     {
       struct value *arg = args[argnum];
       struct type *arg_type = check_typedef (value_type (arg));
-      arglen = TYPE_LENGTH (arg_type);
       enum type_code typecode = TYPE_CODE (arg_type);
       const gdb_byte *val = value_contents (arg);
       int downward_offset = 0;
+      int odd_sized_struct_p;
+      int arg_last_part_p = 0;
 
-      int odd_sized_struct_p = (arglen > SCORE_REGSIZE
+      arglen = TYPE_LENGTH (arg_type);
+      odd_sized_struct_p = (arglen > SCORE_REGSIZE
                                 && arglen % SCORE_REGSIZE != 0);
-      int arg_last_part_p = 0;
 
       /* If a arg should be aligned to 8 bytes (long long or double),
          the value should be put to even register numbers.  */