From: Trevor Saunders Date: Sat, 21 May 2016 08:21:32 +0000 (-0400) Subject: ft32: fixup TARGET_FORMAT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b19e0aeb53c77e0dbb2083c18dcb0a154db99d17;p=binutils-gdb.git ft32: fixup TARGET_FORMAT Nothing ever assigns to ft32_target_format, so its always null, which means the bfd target arch is the default one. It looks like ft32 only has one target format, so we can just define TARGET_FORMAT to be that literal string. gas/ChangeLog: 2016-05-24 Trevor Saunders * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove. (ft32_target_format): Likewise. (TARGET_FORMAT): Adjust. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a7f1a184dc0..eca2c129f44 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2016-05-24 Trevor Saunders + + * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove. + (ft32_target_format): Likewise. + (TARGET_FORMAT): Adjust. + 2016-05-24 Trevor Saunders * config/tc-ia64.c (dot_rot): simplify allocations from obstacks. diff --git a/gas/config/tc-ft32.h b/gas/config/tc-ft32.h index 7b92a290da0..3829331b5a2 100644 --- a/gas/config/tc-ft32.h +++ b/gas/config/tc-ft32.h @@ -24,9 +24,7 @@ #define WORKING_DOT_WORD /* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */ -const char *ft32_target_format; -#define DEFAULT_TARGET_FORMAT "elf32-ft32" -#define TARGET_FORMAT ft32_target_format +#define TARGET_FORMAT "elf32-ft32" #define TARGET_ARCH bfd_arch_ft32