(i386_mach): Declare.
* tc-i386.c (i386_mach): New function.
+Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
+
+ * tc-i386.h (TARGET_MACH): New macro.
+ (i386_mach): Declare.
+ * tc-i386.c (i386_mach): New function.
+
2001-01-13 Philip Blundell <philb@gnu.org>
* doc/as.texinfo: Fix spelling and cross-references.
/* Hash table for register lookup. */
static struct hash_control *reg_hash;
\f
+#ifdef BFD_ASSEMBLER
+unsigned long
+i386_mach ()
+{
+ if (!strcmp (default_arch, "x86_64"))
+ return bfd_mach_x86_64;
+ else if (!strcmp (default_arch, "i386"))
+ return bfd_mach_i386_i386;
+ else
+ as_fatal (_("Unknown architecture"));
+}
+#endif
+\f
void
md_begin ()
{
&& ! S_IS_COMMON ((FIX)->fx_addsy))))
#define TARGET_ARCH bfd_arch_i386
+#define TARGET_MACH (i386_mach ())
+extern unsigned long i386_mach PARAMS ((void));
#ifdef TE_NetBSD
#define AOUT_TARGET_FORMAT "a.out-i386-netbsd"