aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2004-06-15 12:38:08 +0000
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2004-06-15 12:38:08 +0000
commitf84d8e26b4b82cf46329a5f69ed87a8d7fda9773 (patch)
tree0170b7b968479d55b56b16e70379e193d3a69a30
parent6bf9431b7430d0c30268c62f78a940657c8d6fbe (diff)
downloadgdb-f84d8e26b4b82cf46329a5f69ed87a8d7fda9773.zip
gdb-f84d8e26b4b82cf46329a5f69ed87a8d7fda9773.tar.gz
gdb-f84d8e26b4b82cf46329a5f69ed87a8d7fda9773.tar.bz2
* config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
comparison in .insn pseudo operation.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-s390.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1dd992b..da45ddf 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
+
+ * config/tc-s390.c (s390_insn): Avoid incorrect signed/unsigned
+ comparison in .insn pseudo operation.
+
2004-06-15 Alan Modra <amodra@bigpond.net.au>
* config/obj-coff.c (coff_adjust_section_syms): Use
diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c
index 2cb8cf1..0242728 100644
--- a/gas/config/tc-s390.c
+++ b/gas/config/tc-s390.c
@@ -1596,13 +1596,13 @@ s390_insn (ignore)
if (exp.X_op == O_constant)
{
if ( ( opformat->oplen == 6
- && exp.X_add_number >= 0
+ && (addressT) exp.X_add_number >= 0
&& (addressT) exp.X_add_number < (1ULL << 48))
|| ( opformat->oplen == 4
- && exp.X_add_number >= 0
+ && (addressT) exp.X_add_number >= 0
&& (addressT) exp.X_add_number < (1ULL << 32))
|| ( opformat->oplen == 2
- && exp.X_add_number >= 0
+ && (addressT) exp.X_add_number >= 0
&& (addressT) exp.X_add_number < (1ULL << 16)))
md_number_to_chars (insn, exp.X_add_number, opformat->oplen);
else