+2016-04-12 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * config/tc-arc.c (mach_type_specified_p): Change type to
+ bfd_boolean.
+ (arc_option): Set private flags when parsing cpu pseudo-op.
+ (md_parse_option): Set mach_type_specified_p to TRUE.
+
2016-04-13 Nick Clifton <nickc@redhat.com>
PR target/19937
/* The default architecture. */
static int arc_mach_type;
-/* Non-zero if the cpu type has been explicitly specified. */
-static int mach_type_specified_p = 0;
+/* TRUE if the cpu type has been explicitly specified. */
+static bfd_boolean mach_type_specified_p = FALSE;
/* The hash table of instruction opcodes. */
static struct hash_control *arc_opcode_hash;
if (!bfd_set_arch_mach (stdoutput, bfd_arch_arc, mach))
as_fatal (_("could not set architecture and machine"));
+
+ /* Set elf header flags. */
+ bfd_set_private_flags (stdoutput, arc_eflag);
}
else
if (arc_mach_type != mach)
case OPTION_MCPU:
{
arc_select_cpu (arg);
- mach_type_specified_p = 1;
+ mach_type_specified_p = TRUE;
break;
}