COMMIT: Fix compile time warning building tc-cr16.c
Nick Clifton
nickc@redhat.com
Mon Apr 11 08:20:00 GMT 2011
Hi Guys,
I am checking in the patch below to fix these compile time warnings
building tc-cr16.c:
gas/config/tc-cr16.c: In function 'getprocreg_image':
gas/config/tc-cr16.c:1673:25: error: comparison between 'reg' and 'enum <anonymous>'
gas/config/tc-cr16.c: In function 'getprocregp_image':
gas/config/tc-cr16.c:1712:25: error: comparison between 'reg' and 'enum <anonymous>'
Cheers
Nick
gas/ChangeLog
2011-04-11 Nick Clifton <nickc@redhat.com>
* config/tc-cr16.c (getprocregp_image): Fix type of 'r' parameter
in order to avoid a compile time warning.
(getprocreg_image): Likewise.
Index: gas/config/tc-cr16.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-cr16.c,v
retrieving revision 1.12
diff -u -3 -p -r1.12 tc-cr16.c
--- gas/config/tc-cr16.c 11 Apr 2011 04:52:01 -0000 1.12
+++ gas/config/tc-cr16.c 11 Apr 2011 08:16:37 -0000
@@ -1664,7 +1664,7 @@ getidxregp_image (reg r)
If the register is illegal for the current instruction,
issue an error. */
static int
-getprocreg_image (reg r)
+getprocreg_image (int r)
{
const reg_entry *rreg;
char *reg_name;
@@ -1702,7 +1702,7 @@ getprocreg_image (reg r)
If the register is illegal for the current instruction,
issue an error. */
static int
-getprocregp_image (reg r)
+getprocregp_image (int r)
{
const reg_entry *rreg;
char *reg_name;
More information about the Binutils
mailing list