* Commit: Fix building GAS for CRIS when checking is not enabled
@ 2011-12-14 14:10 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2011-12-14 14:10 UTC (permalink / raw)
To: binutils
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.
Cheers
Nick
gas/ChangeLog
2011-12-14 Nick Clifton <nickc@redhat.com>
* 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-14 14:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-14 14:10 Commit: Fix building GAS for CRIS when checking is not enabled 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).