This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix compile time warning in tc-xtensa.c
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 20 Apr 2005 16:25:05 +0100
- Subject: Fix compile time warning in tc-xtensa.c
Hi Guys,
I am checking in the patch below to fix this compile time warning
message encountered whilst building the xtensa toolchain:
.../config/tc-xtensa.c: In function `get_aligned_diff':
.../config/tc-xtensa.c:8194: warning: comparison between signed and unsigned
Cheers
Nick
gas/ChangeLog
2005-04-20 Nick Clifton <nickc@redhat.com>
* config/tc-xtensa.c (get_aligned_diff): Change type of
branch_align to offsetT so that its signedness matches that of
target_size.
Index: gas/config/tc-xtensa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xtensa.c,v
retrieving revision 1.33
diff -c -3 -p -r1.33 tc-xtensa.c
*** gas/config/tc-xtensa.c 15 Apr 2005 04:15:02 -0000 1.33
--- gas/config/tc-xtensa.c 20 Apr 2005 15:24:02 -0000
*************** get_aligned_diff (fragS *fragP, addressT
*** 8179,8185 ****
bfd_boolean is_loop;
int align_power;
offsetT opt_diff;
! addressT branch_align;
assert (fragP->fr_type == rs_machine_dependent);
switch (fragP->fr_subtype)
--- 8179,8185 ----
bfd_boolean is_loop;
int align_power;
offsetT opt_diff;
! offsetT branch_align;
assert (fragP->fr_type == rs_machine_dependent);
switch (fragP->fr_subtype)