* arc-opc-old.c (arc_opcodes): Added RTSC instruction.
	* arcompact-dis.c (dsmOneArcInst): Fixed decoding of RTSC.
Fix for STAR9000593624

        Port from
        2013-03-19  Claudiu Zissulescu <claziss@synopsys.com>
        gas/
        * config/tc-arc.c (md_assemble): Fixup fix for STAR9000593624.
        opcodes/
        * arc-opc-old.c (arc_operands_ac): Remove ARC_OPERAND_LIMM from 'o'
        operand.

Conflicts:
	gas/config/tc-arc.c
	opcodes/arc-opc.c
Further fix on gas-fixups. STAR9000593624

        Port from
        2013-04-02  Claudiu Zissulescu <claziss@synopsys.com>
        gas/
        * config/tc-arc.c (md_assemble): Fix fixup for %st operand.
        opcodes/
        * arc-opc-old.c (insert_offset): Change error message.

Conflicts:
	gas/config/tc-arc.c
	opcodes/arc-opc.c
Merge in EM working branch

Conflicts:
	ChangeLog.ARC
	bfd/ChangeLog.ARC
	bfd/cpu-arc.c
	bfd/elf32-arc.c
	gas/ChangeLog.ARC
	gas/config/tc-arc.c
	opcodes/ChangeLog.ARC
	opcodes/arc-opc-old.c
        * arcompact-dis.c (ARCompact_decodeInstr): Change number of bytes per
        chunk back to 1 to resolve test issues.
Add EM as a valid processor option.
ChangeLog ommitted in previous commit.

2013-01-30 Claudiu Zissulescu <claziss@synopsys.com>

	* cpu-arc.c (arc_info_struct): Add EM as valid processor type.
* arc-opc-old.c (arc_opcodes): Added RTSC encoding
Add seti/clri instr
add prefetch variant
Rearange seti/clri
Allow seti/clri insns without brackets
Clean up code: resolve coredump of the linker when linking arcv1 and arcv2 objects
Allow mov_s.nz mnemonic
ARC: Globally replace EM_ARCOMPACT2 with EM_ARCV2

include/

	* elf/common.h: Replaced EM_ARCOMPACT2 with EM_ARCV2

binutils/
	* readelf.c : Globally replaced EM_ARCOMPACT2 with EM_ARCV2.
	(get_machine_flags) Changed strings to "ARCv2"
	(get_machine_name) likewise

bfd/
	* elf32-arc.c: Replaced EM_ARCOMPACT2 with EM_ARCV2

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Simon Cook <simon.cook@embecosm.com>
Cc: Francois Bedard <Francois.Bedard@synopsys.com>
Cc: jeremy.bennett@embecosm.com <jeremy.bennett@embecosm.com>
Cc: Anton Kolesov <Anton.Kolesov@synopsys.com>
Cc: Mischa Jonker <Mischa.Jonker@synopsys.com>
Cc: Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
Get rid of warnings which upset -Werror.

gas:
	* config/tc-arc.c (em_jumplink_or_jump_insn): Add extern
	declaration.
	(em_branch_or_jump_insn): Likewise.
	(arc_set_ext_seg): Comment out unneeded forward declaration, mark
	as static.
	(arc_handle_extinst): Comment out unneeded forward declaration,
	mark as static.  Move declaration after arc_extinst, and properly
	declare argument, which is not unused.
	(arc_extinst): Comment out unneeded forward declaration, mark
	as static.  Cast results of xstrdup to (unsigned char *).
	(arc_extoper): Comment out unneeded forward declaration, mark
	as static.
	(get_arc_exp_reloc_type): Likewise.
	(arc_insert_operand): Add dummy argument to as_warn ().
	(get_arc_exp_reloc_type): Mark first argument unused.
	(arc_add_ext_inst): Cast results of xstrdup to (unsigned char *).
	(arc_add_long_ext_inst): Likewise.
	(arc_generate_extinst32_operand_strings): Comment out unused
	suffixstr.
	(md_assemble): Cast loop test for insn_name_idx to unsigned
	int.  Cast args of strcmp and assignments to firstsuf to
	char *.  Add dummy arguments to as_warn and as_bad. Replace
	shadowed "s" by "s2".  Cast assignments to syn to unsigned
	char *.  Comment out unused sda_seen_p.  Replaced shadowed limm_p
	by limm2_p and limm by limm2.  Replaced shadowed operand by operand2.

opcodes:
	* arc-dis.c (print_insn_arc): Comment out unused function.
	* arc-opc-old.c (arc_get_branch_prediction): Add prototype
	declaration.
	(arc_reset_branch_prediction): Likewise.
	(em_jumplink_or_jump_insn): Likewise.
	(em_branch_or_jump_insn): Likewise.
	(brpredict): Comment out - unused.
	(arc_opcodes): Add parentheses to clarify expressions in pseudo
	menomnics or BRcc instruction.
	* arcompact-dis.c (CHECK_T): Add parentheses around use of "x".
	(ARCompact_decodeInstr): Remove all references to unused "bytes".
	Add extra parentheses to clarify logical expressions.
	(arcAnalyzeInstr): Remove all references to unused "bytes".
Fixed misplaced parenthesis and tidied up shadow variables.

gas:
	* config/tc-arc.c (md_assemble): No need to replace s by s2, limm
	by limm2 or limm_p by limm2_p. In each case we can just remove
	shadow declaration and reuse existing declaration.

opcodes:
	* arc-opc-old.c (arc_opcodes): Correct parentheses change for
	"brgt%.n %B,%u,%d".
        * arc-dis-old.c (write_comments_): Comment out unused function.
        (comment_prefix): Mark as ATTRIBUTE_UNUSED (used by above function).
        * arcompact-dis.c: Likewise.
Add llock mnemonic for EM
Add PLT support for ARCv2