diff options
author | Alan Modra <amodra@gmail.com> | 2024-10-31 08:50:22 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-11-12 17:06:35 +1030 |
commit | 510fa4aadb1c6509ebbbe55b901231c45039efd8 (patch) | |
tree | 32bf0abfe94f83ad4226ceeb7c9960a0cf2a806c /gdb/i386-linux-nat.c | |
parent | a3741bc6c7018f5c7a5093eabdb7473d19ea6630 (diff) | |
download | binutils-510fa4aadb1c6509ebbbe55b901231c45039efd8.zip binutils-510fa4aadb1c6509ebbbe55b901231c45039efd8.tar.gz binutils-510fa4aadb1c6509ebbbe55b901231c45039efd8.tar.bz2 |
Remove redundant section merge hash table field
sec_merge_hash.size duplicates sec_merge_hash.table.count, albeit using
bfd_size_type rather than unsigned int. The only reason to have the
duplicate field is to catch unsigned int overflows, and that can be
done easily enough when and if required. Overflow isn't possible at
the moment. See the needs_resize comment.
* merge.c (sec_merge_hash): Remove "size" field.
(NEEDS_RESIZE): Delete macro, replacing with..
(needs_resize): ..this inline function.
(sec_merge_resize): Rename from sec_merge_maybe_resize,
removing redundant check.
(sec_merge_hash_insert, sec_merge_hash_lookup): Adjust to suit.
(sec_merge_init, merge_strings): Likewise.
Diffstat (limited to 'gdb/i386-linux-nat.c')
0 files changed, 0 insertions, 0 deletions