From: Ben Elliston Date: Tue, 7 Dec 2004 12:13:24 +0000 (+0000) Subject: * read.c (s_align): Use an align_limit temporary to allay a GCC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b617dc20de5aef14b09eabf2530a8bde28a7ee46;p=binutils-gdb.git * read.c (s_align): Use an align_limit temporary to allay a GCC signed/unsigned comparison warning. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5603ae8a064..e2f01959d5c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-12-07 Ben Elliston + + * read.c (s_align): Use an align_limit temporary to allay a GCC + signed/unsigned comparison warning. + 2004-12-01 Mark Mitchell * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h. diff --git a/gas/read.c b/gas/read.c index d1e52d66f79..524156260aa 100644 --- a/gas/read.c +++ b/gas/read.c @@ -1204,6 +1204,7 @@ do_align (int n, char *fill, int len, int max) static void s_align (int arg, int bytes_p) { + unsigned int align_limit = ALIGN_LIMIT; unsigned int align; char *stop = NULL; char stopc; @@ -1243,9 +1244,9 @@ s_align (int arg, int bytes_p) } } - if (align > ALIGN_LIMIT) + if (align > align_limit) { - align = ALIGN_LIMIT; + align = align_limit; as_warn (_("alignment too large: %u assumed"), align); }