aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-23 07:42:14 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-26 08:46:01 -0400
commit81cead6f5e9b765788483ad66f490f7540264eba (patch)
treec26c248902ffa0c4ef4ccc61950acfa3e52f2732 /gas
parent79052aaec9ec394bb6c8ec9d68e7e86d5838e42b (diff)
downloadgdb-81cead6f5e9b765788483ad66f490f7540264eba.zip
gdb-81cead6f5e9b765788483ad66f490f7540264eba.tar.gz
gdb-81cead6f5e9b765788483ad66f490f7540264eba.tar.bz2
metag: make an array's type unsigned char[]
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-metag.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index ae4de64..b21e332 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
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
bfd_reloc_code_real_type.
diff --git a/gas/config/tc-metag.c b/gas/config/tc-metag.c
index 1c45924..a6c7152 100644
--- a/gas/config/tc-metag.c
+++ b/gas/config/tc-metag.c
@@ -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;