ft32: fixup TARGET_FORMAT
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Sat, 21 May 2016 08:21:32 +0000 (04:21 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Tue, 24 May 2016 12:49:46 +0000 (08:49 -0400)
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  <tbsaunde+binutils@tbsaunde.org>

* config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
(ft32_target_format): Likewise.
(TARGET_FORMAT): Adjust.

gas/ChangeLog
gas/config/tc-ft32.h

index a7f1a184dc04f2820942cef2ad37bac4dcfbb446..eca2c129f4442c6f598593eee86399ce4425ed2b 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
+
+       * config/tc-ft32.h (DEFAULT_TARGET_FORMAT): Remove.
+       (ft32_target_format): Likewise.
+       (TARGET_FORMAT): Adjust.
+
 2016-05-24  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
        * config/tc-ia64.c (dot_rot): simplify allocations from obstacks.
index 7b92a290da08682f67b2449209ad73a51f7a060e..3829331b5a2b8d75b2f32fdc89412804c6ffef0a 100644 (file)
@@ -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
 
This page took 0.027094 seconds and 4 git commands to generate.