]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove a couple of VLAs
authorTom Tromey <tom@tromey.com>
Tue, 16 Apr 2024 19:12:28 +0000 (13:12 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 21 Apr 2024 18:33:56 +0000 (12:33 -0600)
commit6e4be957f79b67c117220b39a663c0319dec6b2d
tree13b60fe4be599e69f1dc2320fe3217af9d66a139
parente6375bc8ebbbc177c79f08e9616eb0b131229f65
Remove a couple of VLAs

I found a couple of spots where VLAs are in use but where they can
easily be removed.

In one spot, adding 'const' is enough -- and is already done in
similar code elsewhere in the file.

In another spot, one of two arrays will be used, so making the buffer
large enough for both works.

Approved-By: John Baldwin <jhb@FreeBSD.org>
gdb/aarch64-tdep.c
gdb/arc-linux-tdep.c