aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1998-09-23 17:56:40 +0000
committerNick Clifton <nickc@redhat.com>1998-09-23 17:56:40 +0000
commit21056c79a4c7b131f9db81388b85599d4a474e7b (patch)
tree3dd9d8b111397efa3f9d43024598128dd5b3bb6f /gas
parent8456141bb285b312e9b14027860bbacd89df0a42 (diff)
downloadgdb-21056c79a4c7b131f9db81388b85599d4a474e7b.zip
gdb-21056c79a4c7b131f9db81388b85599d4a474e7b.tar.gz
gdb-21056c79a4c7b131f9db81388b85599d4a474e7b.tar.bz2
PR 17438 - fix parsing of MVTSYS and MVFSYS insns.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-d30v.c20
2 files changed, 17 insertions, 9 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4bb9bd7..18a3231 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+Wed Sep 23 10:54:29 1998 Nick Clifton <nickc@cygnus.com>
+
+ * config/tc-d30v.c (reg_name_search): Only warn if a name matches
+ both a register name and symbol name.
+ (find_format): Allow correct parsing of MVTSYS and MVFSYS insns.
+
Tue Sep 22 17:49:16 1998 Nick Clifton <nickc@cygnus.com>
* config/tc-d30v.c (write_2_short): Implement EITHER_BUT_PREFER_MU
diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c
index f61ff5b..1fdd45b 100644
--- a/gas/config/tc-d30v.c
+++ b/gas/config/tc-d30v.c
@@ -168,13 +168,6 @@ reg_name_search (name)
low = 0;
high = reg_name_cnt () - 1;
- if (symbol_find (name) != NULL)
- {
- if (warn_register_name_conflicts)
- as_warn ("Register name %s conflicts with symbol of the same name",
- name);
- }
-
do
{
middle = (low + high) / 2;
@@ -183,8 +176,17 @@ reg_name_search (name)
high = middle - 1;
else if (cmp > 0)
low = middle + 1;
- else
- return pre_defined_registers[middle].value;
+ else
+ {
+ if (symbol_find (name) != NULL)
+ {
+ if (warn_register_name_conflicts)
+ as_warn ("Register name %s conflicts with symbol of the same name",
+ name);
+ }
+
+ return pre_defined_registers[middle].value;
+ }
}
while (low <= high);