diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2012-09-17 08:52:18 +0000 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2012-09-17 08:52:18 +0000 |
commit | 354ecfd5f7127b2a8aee435e081067d602fb177b (patch) | |
tree | 64d2bae4a7f5b9b0c5c820eac55ac84a7ce6e378 /gdb/spu-tdep.c | |
parent | 6fc1c7733ea454110cfcb02be7d9b4b0f12eca91 (diff) | |
download | gdb-354ecfd5f7127b2a8aee435e081067d602fb177b.zip gdb-354ecfd5f7127b2a8aee435e081067d602fb177b.tar.gz gdb-354ecfd5f7127b2a8aee435e081067d602fb177b.tar.bz2 |
* m2-valprint.c (m2_print_array_contents): Eliminate variable
ELTLEN and use TYPE_LENGTH directly.
(m2_val_print): Likewise.
* m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
variable LEN and use TYPE_LENGTH directly.
(m68k_svr4_store_return_value): Likewise.
* mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
ARGLEN and use TYPE_LENGTH directly.
(mips_o64_push_dummy_call): Likewise.
* s390-tdep (s390_function_arg_pass_by_reference): Eliminate
variable LENGTH and use TYPE_LENGTH directly.
(s390_function_arg_float): Likewise.
(s390_function_arg_integer): Likewise.
(s390_push_dummy_call): Likewise.
(s390_return_value_convention): Likewise.
* spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
TYPE_LENGTH directly.
Diffstat (limited to 'gdb/spu-tdep.c')
-rw-r--r-- | gdb/spu-tdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c index f05a26b..8419a5a 100644 --- a/gdb/spu-tdep.c +++ b/gdb/spu-tdep.c @@ -1373,8 +1373,7 @@ spu_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct value *arg = args[i]; struct type *type = check_typedef (value_type (arg)); const gdb_byte *contents = value_contents (arg); - int len = TYPE_LENGTH (type); - int n_regs = align_up (len, 16) / 16; + int n_regs = align_up (TYPE_LENGTH (type), 16) / 16; /* If the argument doesn't wholly fit into registers, it and all subsequent arguments go to the stack. */ |