gas/arc: Make member of arc_flags const
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 6 May 2016 12:59:03 +0000 (13:59 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 18 May 2016 21:24:51 +0000 (22:24 +0100)
commit38cd8a0de838966a045ddef4ad31c715ef720a42
tree11dc246063d8806d029b452457c6264930c63c91
parent9e32d9ae97bf54078f993955a7de2f5a9247c497
gas/arc: Make member of arc_flags const

By making the flgp field of struct arc_flags constant we can remove a
place where we cast away the const-ness of a variable.  Also, given that
the value assigned to this field almost always comes from compile-time
constant data, having the field non-constant is probably a bad thing.

gas/ChangeLog:

* config/tc-arc.c (find_opcode_match): Remove casting away of
const.
* config/tc-arc.h (struct arc_flags): Make flgp field const.
gas/ChangeLog
gas/config/tc-arc.c
gas/config/tc-arc.h