avr: replace sentinal with iteration from 0 to ARRAY_SIZE
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Fri, 13 May 2016 06:51:41 +0000 (02:51 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 2 Jun 2016 01:22:31 +0000 (21:22 -0400)
commit814f1489e9d1d92a30d94d69a0066addcc564bd2
treeb2238aaf40bb24cb152d9b5b0f4b3d7a77c05828
parentd05584d3eeab4cb1c1d85d8dfdfef56827e03b3d
avr: replace sentinal with iteration from 0 to ARRAY_SIZE

This seems a little easier to understand than using a sentinal, and will
hopefully let the compiler optimize the loop better.  It also has the effect
that we stop initializing a field of the sentinal that is an enum with zero.

gas/ChangeLog:

2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* config/tc-avr.c (avr_parse_cons_expression): Replace iteration to
sentinal with iteration to array size.
gas/ChangeLog
gas/config/tc-avr.c