diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-12-07 12:13:24 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2004-12-07 12:13:24 +0000 |
commit | b617dc20de5aef14b09eabf2530a8bde28a7ee46 (patch) | |
tree | 02d41223db6b81c2ee1d947a12e69e1c33e5ba57 /gas | |
parent | f47b15032f1181ec95bd1666bd5c3193d80e638e (diff) | |
download | gdb-b617dc20de5aef14b09eabf2530a8bde28a7ee46.zip gdb-b617dc20de5aef14b09eabf2530a8bde28a7ee46.tar.gz gdb-b617dc20de5aef14b09eabf2530a8bde28a7ee46.tar.bz2 |
* read.c (s_align): Use an align_limit temporary to allay a GCC
signed/unsigned comparison warning.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/read.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 5603ae8..e2f0195 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-12-07 Ben Elliston <bje@gnu.org> + + * read.c (s_align): Use an align_limit temporary to allay a GCC + signed/unsigned comparison warning. + 2004-12-01 Mark Mitchell <mark@codesourcery.com> * Makefile.am (TARG_ENV_HFILES): Add te-armlinuxeabi.h. @@ -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); } |