Avoid undefined behaviour with signed expressions
[deliverable/binutils-gdb.git] / gas / ChangeLog
index 5eb4813d227b1089882b737403d2c96e5a8626cd..1b4fda974085f362bdce13c10df4e43278c29405 100644 (file)
@@ -1,3 +1,13 @@
+2014-10-14  Alan Modra  <amodra@gmail.com>
+
+       PR 17453
+       * config/tc-i386.c (fits_in_signed_long): Use unsigned param and
+       expression to avoid signed overflow.
+       (fits_in_signed_byte, fits_in_unsigned_byte, fits_in_unsigned_word,
+       fits_in_signed_word, fits_in_unsigned_long): Similarly.
+       * expr.c (operand <'-'>): Avoid signed overflow.
+       * read.c (s_comm_internal): Likewise.
+
 2014-10-14  Alan Modra  <amodra@gmail.com>
 
        * config/tc-sparc.c (sparc_md_end): Fix unused variable warnings.
This page took 0.024941 seconds and 4 git commands to generate.