diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-06-15 08:00:17 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-06-15 08:00:17 +0200 |
commit | 649658972ca923250019ca15e4ddd98bf28bf123 (patch) | |
tree | bc9be5d01b7e506c526ba335b8b6d9e0d045c3ca /gas/ChangeLog | |
parent | a50187b2c6c28be79a32332e06a572cf08683de3 (diff) | |
download | gdb-649658972ca923250019ca15e4ddd98bf28bf123.zip gdb-649658972ca923250019ca15e4ddd98bf28bf123.tar.gz gdb-649658972ca923250019ca15e4ddd98bf28bf123.tar.bz2 |
x86: slightly simplify offset_in_range()
Applying a mask with all bits set (or its inverse, with hence all bits
clear) won't alter the result (or won't trigger the warning). Re-arrange
the code to eliminate two more of the somewhat odd (2 << width_minus_1)
constructs.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 0a59cd7..7699447 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2021-06-15 Jan Beulich <jbeulich@suse.com> + * config/tc-i386.c (offset_in_range): Bail early when mask would + cover all bits anyway. + +2021-06-15 Jan Beulich <jbeulich@suse.com> + * config/tc-i386.c (optimize_disp): Generalize disp32 part of the BFD64-only logic to also apply to non-64-bit code. (i386_finalize_displacement): Use extend_to_32bit_address for |