public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Philip Blundell <pb@nexus.co.uk>
To: gas2@cygnus.com
Subject: gas patch for ARM
Date: Tue, 27 Jan 1998 02:20:00 -0000	[thread overview]
Message-ID: <E0xx7x9-0005hQ-00@spring.nexus.co.uk> (raw)

Hi.

The following patch makes ADR instructions work correctly when
cross-assembling for the ARM from a machine with a word size greater
than 32 bits.

p.

Tue Jan 27 10:06:45 1998  Philip Blundell  <pb@nexus.co.uk>

	* config/tc-arm.c (md_apply_fix3): Force sign extension to happen
	before comparing 32-bit values with FAIL.
	
Index: tc-arm.c
===================================================================
RCS file: /usr/repository/gnu/binutils/gas/config/tc-arm.c,v
retrieving revision 1.3
diff -u -r1.3 tc-arm.c
--- tc-arm.c	1998/01/16 10:00:19	1.3
+++ tc-arm.c	1998/01/21 11:38:37
@@ -5096,8 +5096,8 @@
 
       /* 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 ((int)newval == FAIL
+	  && ((int)(newval = negate_data_op (&temp, value))) == FAIL)
 	{
 	  as_bad_where (fixP->fx_file, fixP->fx_line,
 			"invalid constant after fixup\n");


             reply	other threads:[~1998-01-27  2:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-27  2:20 Philip Blundell [this message]
1998-01-27  9:35 ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E0xx7x9-0005hQ-00@spring.nexus.co.uk \
    --to=pb@nexus.co.uk \
    --cc=gas2@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).