diff options
author | Tom Tromey <tromey@adacore.com> | 2022-10-20 07:08:48 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-11-28 07:26:07 -0700 |
commit | 912b12ad84adf32af5827511af5afecedb108c63 (patch) | |
tree | 75c86277589247b19782e24bcf6b04ff31667631 /ltversion.m4 | |
parent | ed14d866a31625c6f8c2cb6d4a445a8372b46161 (diff) | |
download | gdb-912b12ad84adf32af5827511af5afecedb108c63.zip gdb-912b12ad84adf32af5827511af5afecedb108c63.tar.gz gdb-912b12ad84adf32af5827511af5afecedb108c63.tar.bz2 |
Fix range type signed-ness heuristic
The code to create a range type has a heuristic to decide whether the
range is unsigned. However, this heuristic can fail if the upper
bound of the range has its high bit set, because the test is done
using LONGEST.
With this patch, if the underlying type of a range is unsigned, then
the range will always be unsigned. A new test is included.
Regression tested on x86-64 Fedora 34. We've also been using this
internally at AdaCore for a while.
Diffstat (limited to 'ltversion.m4')
0 files changed, 0 insertions, 0 deletions