mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-26 04:15:28 +00:00
* cgen-ibld.in (insert_normal): Support CGEN_IFLD_SIGN_OPT.
This commit is contained in:
parent
b9f83eaa83
commit
17f0ac8499
@ -1,3 +1,7 @@
|
|||||||
|
2001-06-30 Geoffrey Keating <geoffk@redhat.com>
|
||||||
|
|
||||||
|
* cgen-ibld.in (insert_normal): Support CGEN_IFLD_SIGN_OPT.
|
||||||
|
|
||||||
2001-06-28 Geoffrey Keating <geoffk@redhat.com>
|
2001-06-28 Geoffrey Keating <geoffk@redhat.com>
|
||||||
|
|
||||||
* cgen-asm.c (cgen_parse_keyword): Allow any first character.
|
* cgen-asm.c (cgen_parse_keyword): Allow any first character.
|
||||||
|
@ -145,7 +145,22 @@ insert_normal (cd, value, attrs, word_offset, start, length, word_length,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure VALUE will fit. */
|
/* Ensure VALUE will fit. */
|
||||||
if (! CGEN_BOOL_ATTR (attrs, CGEN_IFLD_SIGNED))
|
if (CGEN_BOOL_ATTR (attrs, CGEN_IFLD_SIGN_OPT))
|
||||||
|
{
|
||||||
|
long minval = - (1L << (length - 1));
|
||||||
|
unsigned long maxval = mask;
|
||||||
|
|
||||||
|
if ((value > 0 && (unsigned long) value > maxval)
|
||||||
|
|| value < minval)
|
||||||
|
{
|
||||||
|
/* xgettext:c-format */
|
||||||
|
sprintf (errbuf,
|
||||||
|
_("operand out of range (%ld not between %ld and %lu)"),
|
||||||
|
value, minval, maxval);
|
||||||
|
return errbuf;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (! CGEN_BOOL_ATTR (attrs, CGEN_IFLD_SIGNED))
|
||||||
{
|
{
|
||||||
unsigned long maxval = mask;
|
unsigned long maxval = mask;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user