public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* gas patch for ARM
@ 1998-01-27  2:20 Philip Blundell
  1998-01-27  9:35 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Philip Blundell @ 1998-01-27  2:20 UTC (permalink / raw)
  To: gas2

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");


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-01-27  9:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-27  2:20 gas patch for ARM Philip Blundell
1998-01-27  9:35 ` Ian Lance Taylor

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).