From b9d79e0379726fd6d072b987a30f3f8bed4985e4 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 13 Jan 2001 23:37:57 +0000 Subject: * tc-i386.h (TARGET_MACH): New macro. (i386_mach): Declare. * tc-i386.c (i386_mach): New function. --- gas/config/tc-i386.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gas/config/tc-i386.c') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index da2bf48..00fcfe1 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -778,6 +778,19 @@ static struct hash_control *op_hash; /* Hash table for register lookup. */ static struct hash_control *reg_hash; +#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 + void md_begin () { -- cgit v1.1