aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-01-27 17:29:05 +0000
committerIan Lance Taylor <ian@airs.com>1998-01-27 17:29:05 +0000
commit8ecadea45b833bff6edc9c46f87b7fb91211b797 (patch)
tree265a405d714e6ca9ebfcbab4c8a2786de86716b7 /gas
parent76f9e5afa3c762dfcc3b2c92d2b6c349e0f6f0b2 (diff)
downloadgdb-8ecadea45b833bff6edc9c46f87b7fb91211b797.zip
gdb-8ecadea45b833bff6edc9c46f87b7fb91211b797.tar.gz
gdb-8ecadea45b833bff6edc9c46f87b7fb91211b797.tar.bz2
* config/tc-arm.c (md_apply_fix3): Add casts before comparing
offsetT variable set to unsigned int value with FAIL.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c12
2 files changed, 13 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5a95a62..0d0f824 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 27 12:24:32 1998 Ian Lance Taylor <ian@cygnus.com>
+
+ * config/tc-arm.c (md_apply_fix3): Add casts before comparing
+ offsetT variable set to unsigned int value with FAIL.
+
Tue Jan 27 06:51:59 1998 Richard Henderson <rth@cygnus.com>
* listing.c (MAX_BYTES): Use listing variables not constants.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index f0ce280..93ac1ba 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -1114,7 +1114,9 @@ s_ltorg (internal)
symbol_table_insert (current_poolP);
ARM_SET_THUMB (current_poolP, thumb_mode);
+#ifdef OBJ_COFF
ARM_SET_INTERWORK (current_poolP, support_interwork);
+#endif
while (lit_count < next_literal_pool_place)
/* First output the expression in the instruction to the pool */
@@ -5070,13 +5072,13 @@ md_apply_fix3 (fixP, val, seg)
switch (fixP->fx_r_type)
{
case BFD_RELOC_ARM_IMMEDIATE:
- newval = validate_immediate (value);
+ newval = (offsetT) validate_immediate (value);
temp = md_chars_to_number (buf, INSN_SIZE);
/* If the instruction will fail, see if we can fix things up by
changing the opcode. */
- if (newval == FAIL
- && (newval = negate_data_op (&temp, value)) == FAIL)
+ if (newval == (offsetT) FAIL
+ && (newval = negate_data_op (&temp, value)) == (offsetT) FAIL)
{
as_bad_where (fixP->fx_file, fixP->fx_line,
"invalid constant after fixup\n");
@@ -6245,8 +6247,10 @@ arm_frob_label (sym)
{
last_label_seen = sym;
ARM_SET_THUMB (sym, thumb_mode);
+#ifdef OBJ_COFF
ARM_SET_INTERWORK (sym, support_interwork);
-
+#endif
+
if (label_is_thumb_function_name)
{
/* When the address of a Thumb function is taken the bottom