This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
tc-m68k.c portability patch
- To: binutils at sources dot redhat dot com
- Subject: tc-m68k.c portability patch
- From: Andreas Schwab <schwab at suse dot de>
- Date: 05 May 2001 17:47:00 +0200
2001-05-05 Andreas Schwab <schwab@suse.de>
* config/tc-m68k.c (md_convert_frag_1): Don't set fx_pcrel_adjust
to a negative number.
--- gas/config/tc-m68k.c.~1.19.~ Mon Mar 12 09:51:39 2001
+++ gas/config/tc-m68k.c Sat May 5 17:34:57 2001
@@ -4375,7 +4375,10 @@
as_bad (_("short branch with zero offset: use :w"));
fixP = fix_new (fragP, fragP->fr_fix - 1, 1, fragP->fr_symbol,
fragP->fr_offset, 1, RELAX_RELOC_PC8);
- fixP->fx_pcrel_adjust = -1;
+ /* fx_pcrel_adjust is a char, and may therefore be unsigned. We
+ want to set it to -1, but we use 64 instead, and convert back in
+ md_pcrel_from. */
+ fixP->fx_pcrel_adjust = 64;
break;
case TAB (BRANCHBWL, SHORT):
case TAB (BRABSJUNC, SHORT):
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5