diff options
author | Alan Modra <amodra@gmail.com> | 2007-04-21 06:54:57 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-04-21 06:54:57 +0000 |
commit | db55703487ec04ac06156ab76ea068055e494dde (patch) | |
tree | 6fde7e7c055a968a4805d584e9bf0a897237c1a5 /gas/config | |
parent | c43a438d5eb0a2e19397a4c0fb51ce3a68ed1503 (diff) | |
download | gdb-db55703487ec04ac06156ab76ea068055e494dde.zip gdb-db55703487ec04ac06156ab76ea068055e494dde.tar.gz gdb-db55703487ec04ac06156ab76ea068055e494dde.tar.bz2 |
gas/
* expr.c (expr): Assert on rankarg, not rank which can be unsigned.
* read.c (read_a_source_file): Remove buffer_limit[-1] assertion.
Don't skip over NUL char.
(pseudo_set): Set X_op for registers to O_register.
* symbols.c (symbol_clone): Remove assertion that sym is defined.
(resolve_symbol_value): Resolve O_register symbols.
* config/tc-i386.c (parse_real_register): Don't use i386_float_regtab.
Instead find st(0) by hash lookup.
* config/tc-ppc.c (ppc_macro): Warning fix.
opcodes/
* i386-opc.c (i386_float_regtab, i386_float_regtab_size): Delete.
Move contents to..
(i386_regtab): ..here.
* i386-opc.h (i386_float_regtab, i386_float_regtab_size): Delete.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 6 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 0b60387..bc0945c 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5804,14 +5804,16 @@ parse_real_register (char *reg_string, char **end_op) ++s; if (*s >= '0' && *s <= '7') { - r = &i386_float_regtab[*s - '0']; + int fpr = *s - '0'; ++s; if (is_space_char (*s)) ++s; if (*s == ')') { *end_op = s + 1; - return r; + r = hash_find (reg_hash, "st(0)"); + know (r); + return r + fpr; } } /* We have "%st(" then garbage. */ diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 1755363..978f0f3 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -2816,7 +2816,7 @@ ppc_macro (str, macro) char *s; unsigned int len; const char *format; - int arg; + unsigned int arg; char *send; char *complete; @@ -2854,7 +2854,7 @@ ppc_macro (str, macro) else { arg = strtol (format + 1, &send, 10); - know (send != format && arg >= 0 && arg < count); + know (send != format && arg < count); len += strlen (operands[arg]); format = send; } |