diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2016-03-24 22:42:09 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2016-03-24 22:42:09 +0100 |
commit | 0d2f91fe2d5ea93dc3dc76780e6ec2e27d022d39 (patch) | |
tree | 50438dc3eb17b75889544974c8ed09842010256e /opcodes/aarch64-dis.c | |
parent | f65c3d1b26e05f445d976aabd48d4b1264c182bc (diff) | |
download | gdb-0d2f91fe2d5ea93dc3dc76780e6ec2e27d022d39.zip gdb-0d2f91fe2d5ea93dc3dc76780e6ec2e27d022d39.tar.gz gdb-0d2f91fe2d5ea93dc3dc76780e6ec2e27d022d39.tar.bz2 |
More -Wstack-usage warnings: opcodes/aarch64-*
opcodes Fix -Wstack-usage warnings.
* aarch64-dis.c (print_operands): Substitute size.
* aarch64-opc.c (print_register_offset_address): Substitute tblen.
Diffstat (limited to 'opcodes/aarch64-dis.c')
-rw-r--r-- | opcodes/aarch64-dis.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c index 025d5d1..05e4768 100644 --- a/opcodes/aarch64-dis.c +++ b/opcodes/aarch64-dis.c @@ -2154,8 +2154,7 @@ print_operands (bfd_vma pc, const aarch64_opcode *opcode, int i, pcrel_p, num_printed; for (i = 0, num_printed = 0; i < AARCH64_MAX_OPND_NUM; ++i) { - const size_t size = 128; - char str[size]; + char str[128]; /* We regard the opcode operand info more, however we also look into the inst->operands to support the disassembling of the optional operand. @@ -2166,7 +2165,7 @@ print_operands (bfd_vma pc, const aarch64_opcode *opcode, break; /* Generate the operand string in STR. */ - aarch64_print_operand (str, size, pc, opcode, opnds, i, &pcrel_p, + aarch64_print_operand (str, sizeof (str), pc, opcode, opnds, i, &pcrel_p, &info->target); /* Print the delimiter (taking account of omitted operand(s)). */ |