tc-i386.c: store encoded instructions in unsigned char[]
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Sun, 14 Feb 2016 19:41:38 +0000 (14:41 -0500)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Sun, 20 Mar 2016 17:22:55 +0000 (13:22 -0400)
commitbad6e36d96dcfe09dc4bec0fcda12bf4a1bc1b28
treecd42ee8d003d328b04c7520cd70d10b9e154fd53
parent148fa56275a662782428df0a42d9e68bf65a11a0
tc-i386.c: store encoded instructions in unsigned char[]

char can be a signed type, and some of the values in these arrays are greater
than 0x80 which means they are outside of the range a signed char can store.
Fortunately it seems most compilers handle this in the obvious way by storing
the same bits as a negative number, but this is wierd and easily fixed.

gas/ChangeLog:

2016-03-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* tc-i386.c (f32_1): Change type to unsigned char[].
(f32_2): Likewise.
(f32_3): Likewise.
(f32_4): Likewise.
(f32_5): Likewise.
(f32_6): Likewise.
(f32_7): Likewise.
(f32_8): Likewise.
(f32_9): Likewise.
(f32_10): Likewise.
(f32_11): Likewise.
(f32_12): Likewise.
(f32_13): Likewise.
(f32_14): Likewise.
(f16_3): Likewise.
(f16_4): Likewise.
(f16_5): Likewise.
(f16_6): Likewise.
(f16_7): Likewise.
(f16_8): Likewise.
(jump_31): Likewise.
(f32_patt): Likewise.
(f16_patt): Likewise.
(alt_3): Likewise.
(alt_4): Likewise.
(alt_5): Likewise.
(alt_6): Likewise.
(alt_7): Likewise.
(alt_8): Likewise.
(alt_9): Likewise.
(alt_10): Likewise.
(alt_patt): Likewise.
gas/ChangeLog
gas/config/tc-i386.c