* score-tdep.c (score_push_dummy_call): Don't mix declarations and
statements.
This commit is contained in:
parent
5efde11249
commit
1cfd2c3eed
2 changed files with 10 additions and 4 deletions
|
@ -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>
|
2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
|
* alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
|
||||||
|
|
|
@ -434,15 +434,16 @@ score_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||||
{
|
{
|
||||||
struct value *arg = args[argnum];
|
struct value *arg = args[argnum];
|
||||||
struct type *arg_type = check_typedef (value_type (arg));
|
struct type *arg_type = check_typedef (value_type (arg));
|
||||||
arglen = TYPE_LENGTH (arg_type);
|
|
||||||
enum type_code typecode = TYPE_CODE (arg_type);
|
enum type_code typecode = TYPE_CODE (arg_type);
|
||||||
const gdb_byte *val = value_contents (arg);
|
const gdb_byte *val = value_contents (arg);
|
||||||
int downward_offset = 0;
|
int downward_offset = 0;
|
||||||
|
int odd_sized_struct_p;
|
||||||
int odd_sized_struct_p = (arglen > SCORE_REGSIZE
|
|
||||||
&& arglen % SCORE_REGSIZE != 0);
|
|
||||||
int arg_last_part_p = 0;
|
int arg_last_part_p = 0;
|
||||||
|
|
||||||
|
arglen = TYPE_LENGTH (arg_type);
|
||||||
|
odd_sized_struct_p = (arglen > SCORE_REGSIZE
|
||||||
|
&& arglen % SCORE_REGSIZE != 0);
|
||||||
|
|
||||||
/* If a arg should be aligned to 8 bytes (long long or double),
|
/* If a arg should be aligned to 8 bytes (long long or double),
|
||||||
the value should be put to even register numbers. */
|
the value should be put to even register numbers. */
|
||||||
if (score_type_needs_double_align (arg_type))
|
if (score_type_needs_double_align (arg_type))
|
||||||
|
|
Loading…
Add table
Reference in a new issue