gas/arc: Use #define from include/opcode/arc.h
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 1 Apr 2016 17:35:29 +0000 (18:35 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 4 Apr 2016 08:09:53 +0000 (09:09 +0100)
commit26cdfd92055ece05e1abb5248ddb78f3386f857b
treeb5d7c6cd1fc9eb9a271353adb9b09ff003af5f52
parent22987cec624a7890637aa9d8760fbeaeb45a0e20
gas/arc: Use #define from include/opcode/arc.h

In tc-arc.h we redefine constants that are also defined in the
include/opcode/arc.h header file.  The problem is that changing one
without changing the other resulting in strange crashes.

We could comment both locations to stress the importance of remembering
to update the other location too, or we could just include the
opcode/arc.h header file into the assembler.

Given that other targets include their opcode/ARCH.h header file, and
only having a single definition, where possible, is usually the safest
solution, that's what I switch too with this commit.

gas/ChangeLog:

* config/tc-arc.h: Include 'opcode/arc.h'.
(MAX_INSN_ARGS): Delete.
(MAX_INSN_FLGS): Delete.
gas/ChangeLog
gas/config/tc-arc.h