Fix msp430 build with gcc-5
authorAlan Modra <amodra@gmail.com>
Wed, 4 Feb 2015 22:44:56 +0000 (09:14 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Feb 2015 23:14:55 +0000 (09:44 +1030)
commit64a81db054a44e5539c4de5103125f3587de6403
tree1bb34bf6812d2ef65bb6414cb3e962def5e1b1e6
parentb39b8b9d90e142179709e846c15afdebd49b0fb1
Fix msp430 build with gcc-5

gcc-5 correctly complains "loop exit may only be reached after
undefined behavior".  I was going to correct this by checking the
index before dereferencing the array rather than the other way around,
but then I noticed it is possible for extract_cmd to write the
terminating zero one past the end of "cmd".  Fixing that means no
index check is needed in md_assemble.

* config/tc-msp430.c (md_assemble): Correct size passed to
extract_cmd.  Remove index check.
gas/ChangeLog
gas/config/tc-msp430.c
This page took 0.030919 seconds and 4 git commands to generate.