This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] ft32: fixup TARGET_FORMAT
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Cc: Trevor Saunders <tbsaunde+binutils at tbsaunde dot org>
- Date: Mon, 23 May 2016 04:11:02 -0400
- Subject: [PATCH] ft32: fixup TARGET_FORMAT
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
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.
built and regtested cross to ft32-elf, ok?
Trev
gas/ChangeLog:
2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
(ft32_target_format): Likewise.
(TARGET_FORMAT): Adjust.
---
gas/config/tc-ft32.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gas/config/tc-ft32.h b/gas/config/tc-ft32.h
index 7b92a29..3829331 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
--
2.8.1