This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: Fix building GAS for CRIS when checking is not enabled

Hi Guys,

  I am applying the small patch below to fix building GAS for the CRIS
  target when checking is not enabled.  The length_code variable was
  only ever used inside the know() macro, and without checking this
  macro does nothing.


2011-12-14  Nick Clifton  <>

	* config/tc-cris.c (md_convert_frag): Mark the length_code local
	variable as unused as it is only used when ENABLE_CHECKING is on.

Index: gas/config/tc-cris.c
RCS file: /cvs/src/src/gas/config/tc-cris.c,v
retrieving revision 1.51
diff -u -3 -p -r1.51 tc-cris.c
--- gas/config/tc-cris.c	16 May 2011 03:28:46 -0000	1.51
+++ gas/config/tc-cris.c	14 Dec 2011 14:05:08 -0000
@@ -815,7 +815,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNU
   /* Used to check integrity of the relaxation.
      One of 2 = long, 1 = word, or 0 = byte.  */
-  int length_code;
+  int length_code ATTRIBUTE_UNUSED;
   /* Size in bytes of variable-sized part of frag.  */
   int var_part_size = 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]