]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Tidy objdump opb expressions
authorAlan Modra <amodra@gmail.com>
Wed, 17 Apr 2024 08:46:55 +0000 (18:16 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 18 Apr 2024 01:01:59 +0000 (10:31 +0930)
commit170957ff9b847cf44f6121fd846f5483f2090afd
treea5b4eaec22c13f35175886a4a0df7247cc52ff11
parent1c8102d17f5e56796adb27d9a9180f2c5013b913
Tidy objdump opb expressions

I don't think any of these can overflow, but since all of the
expressions I'm editing here are inside a while loop with condition
addr_offset < stop_offset, this change makes it more obvious that they
can't overflow.

* objdump.c (disassemble_bytes): Calculate octet expressions
involving both addr_offset and stop_offset by first
subtracting addr_offset from stop_offset.
binutils/objdump.c