* config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Declare.
        * config/arc/arc.c (arc_legitimize_tls_address)
        <TLS_MODEL_GLOBAL_DYNAMIC>: Use gen_tls_gd_dispatch.
        (insn_is_tls_gd_dispatch): New function.
        * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Check
        insn_is_tls_gd_dispatch.
        * config/arc/arc.md (R10_REG): New constant.
        (tls_gd_dispatch): New pattern.

Conflicts:
	gcc/config/arc/arc-protos.h
        * config/arc/arc.c (arc_legitimize_tls_address)
        <TLS_MODEL_INITIAL_EXEC>: Force MEM into a register before adding
        thread pointer.