aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli-out.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-05-19 09:16:04 +0200
committerJan Beulich <jbeulich@suse.com>2023-05-19 09:16:04 +0200
commit762acf217c4013bed5a4cc679e4bac78d13ce23a (patch)
tree4f20ebf4c32d4a30e9e8c036a6f623f06145ccea /gdb/cli-out.c
parentdf81d460b2d9ec7327a0c1ab2344d7ec62874ce0 (diff)
downloadbinutils-762acf217c4013bed5a4cc679e4bac78d13ce23a.zip
binutils-762acf217c4013bed5a4cc679e4bac78d13ce23a.tar.gz
binutils-762acf217c4013bed5a4cc679e4bac78d13ce23a.tar.bz2
gas: maintain O_constant signedness in more cases
Unary '~' doesn't really produce an unsigned result. Neither does subtraction (unless taking operand values into consideration). And an abstract operator applied to two operands which aren't both unsigned can't be assumed to yield an unsigned result; exceptions are - shifts, where only signedness of the left hand operand matters, - comparisons, which - unlike unary '!' - produce signed results (they deliver 0 or ~0, as opposed to '!', which yields 0 or 1), - logical operators (yielding 0 or 1 and hence treated like unary '!'). While doing this (specifically while extending the all/quad testcase), update .quad and .8byte documentation: With 64-bit architectures now being common, it is highly inappropriate to state that these directives unconditionally require bignums.
Diffstat (limited to 'gdb/cli-out.c')
0 files changed, 0 insertions, 0 deletions