public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Commit: V850: Define TC_FIX_SIZE_SLACK
@ 2011-05-23  9:28 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2011-05-23  9:28 UTC (permalink / raw)
  To: binutils

Hi Guys,

  I am checking in the patch below to fix a problem with the V850 port
  of gas when it is invoked with assembler relaxation enabled.  The
  resulting frags can need a couple of extra bytes of slack to handle
  the alignment of the relaxed insns.

Cheers
  Nick
  
gas/ChangeLog
2011-05-23  Nick Clifton  <nickc@redhat.com>

	* config/tc-v850.h (TC_FX_SIZE_SLACK): Define.

Index: gas/config/tc-v850.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-v850.h,v
retrieving revision 1.22
diff -u -3 -p -r1.22 tc-v850.h
--- gas/config/tc-v850.h	3 Jul 2007 11:01:05 -0000	1.22
+++ gas/config/tc-v850.h	23 May 2011 09:25:09 -0000
@@ -70,6 +70,9 @@ extern const struct relax_type md_relax_
 #define HANDLE_ALIGN(frag) v850_handle_align (frag)
 extern void v850_handle_align (fragS *);
 
+/* We need space in a frag's fixed size to allow for alignment when relaxing.  */
+#define TC_FX_SIZE_SLACK(FIX) 2
+
 #define MD_PCREL_FROM_SECTION(FIX, SEC) v850_pcrel_from_section (FIX, SEC)
 extern long v850_pcrel_from_section (struct fix *, asection *);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-23  9:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23  9:28 Commit: V850: Define TC_FIX_SIZE_SLACK Nick Clifton

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