diff options
author | David Howells <dhowells@redhat.com> | 2014-06-16 16:58:55 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-06-16 17:04:08 +0100 |
commit | cab55cf2a5d1795c3e27fa2ba0d1dac2293f8a46 (patch) | |
tree | 9f13e60f548ac0f163b26ca767db0ac441f48604 /cross-binutils-2.24-m68k-gcc-error.patch | |
parent | 057864be46e85a6461080a94260c6574c9385708 (diff) | |
download | cross-binutils-master.tar.gz cross-binutils-master.tar.xz cross-binutils-master.zip |
Ignore this:
../../binutils-2.24/gas/config/tc-m68k.c: In function 'md_assemble':
../../binutils-2.24/gas/config/tc-m68k.c:4516:36: error: array subscript is below array bounds [-Werror=array-bounds]
n = (the_ins.numo - the_ins.fragb[n - 1].fragoff);
which is caught by gcc-4.9 and not by gcc-4.8
Diffstat (limited to 'cross-binutils-2.24-m68k-gcc-error.patch')
-rw-r--r-- | cross-binutils-2.24-m68k-gcc-error.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cross-binutils-2.24-m68k-gcc-error.patch b/cross-binutils-2.24-m68k-gcc-error.patch new file mode 100644 index 0000000..0281e72 --- /dev/null +++ b/cross-binutils-2.24-m68k-gcc-error.patch @@ -0,0 +1,11 @@ +--- binutils-2.24/gas/config/tc-m68k.c.old 2014-06-16 16:54:53.752365338 +0100 ++++ binutils-2.24/gas/config/tc-m68k.c 2014-06-16 16:55:11.151441285 +0100 +@@ -4513,7 +4513,7 @@ + (relax_substateT) (the_ins.fragb[n].fragty), + the_ins.fragb[n].fadd, the_ins.fragb[n].foff, to_beg_P); + } +- n = (the_ins.numo - the_ins.fragb[n - 1].fragoff); ++ n = (n > 0) ? (the_ins.numo - the_ins.fragb[n - 1].fragoff) : 0; + shorts_this_frag = 0; + if (n) + { |