metag: make an array's type unsigned char[]
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Mon, 23 May 2016 11:42:14 +0000 (07:42 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 26 May 2016 12:46:01 +0000 (08:46 -0400)
It contains values between 128 and 256 which fit in an unsigned char, but not a
signed char, so we should explicitly use unsigned char to not rely on how these
values are converted to signed char.

gas/ChangeLog:

2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* config/tc-metag.c (metag_handle_align): Make the type of noop
unsigned char.

gas/ChangeLog
gas/config/tc-metag.c

index ae4de64f90fab7af03841492a2805d6c224f22d8..b21e332d80da93ccbb15ec8891779d3220dcfc97 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
+       * config/tc-metag.c (metag_handle_align): Make the type of noop
+       unsigned char.
+
 2016-05-26  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
        * config/tc-rx.c (md_convert_frag): Make the type of reloc_type
index 1c459241a6a86676dccca4bc3a41a28f3f6514fa..a6c71526ce8194e9bb364e54dd74d061d899d4bb 100644 (file)
@@ -6847,7 +6847,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED, segT sec ATTRIBUTE_UNUSED,
 void
 metag_handle_align (fragS * fragP)
 {
-  static char const noop[4] = { 0xfe, 0xff, 0xff, 0xa0 };
+  static unsigned char const noop[4] = { 0xfe, 0xff, 0xff, 0xa0 };
   int bytes, fix;
   char *p;
 
This page took 0.03117 seconds and 4 git commands to generate.