From 4c09b8c4e7fbe03e2b2b976399025fd846317527 Mon Sep 17 00:00:00 2001 From: Gunther Nikl Date: Wed, 8 Apr 2020 12:33:16 +0100 Subject: [PATCH] [PATCH 1/4]: microblaze: remove duplicate prototypes The microblaze target header duplicates prototypes already provided by tc.h. * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol, md_show_usage, md_convert_frag, md_operand, md_number_to_chars, md_estimate_size_before_relax, md_section_align, tc_gen_reloc, md_apply_fix3): Delete prototypes. --- gas/ChangeLog | 4 ++++ gas/config/tc-microblaze.h | 15 --------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 29918231e17..d7293e1b583 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -38,6 +38,10 @@ * config/tc-sh.h (md_pcrel_from_section): Likewise. * config/tc-xc16x.h (md_pcrel_from_section): Likewise. * config/tc-xstormy16.h (md_pcrel_from_section): Likewise. + * config/tc-microblaze.h (md_begin, md_assemble, md_undefined_symbol, + md_show_usage, md_convert_frag, md_operand, md_number_to_chars, + md_estimate_size_before_relax, md_section_align, tc_gen_reloc, + md_apply_fix3): Delete prototypes. 2020-04-07 H.J. Lu diff --git a/gas/config/tc-microblaze.h b/gas/config/tc-microblaze.h index bc0ca370b75..01cb3e894f7 100644 --- a/gas/config/tc-microblaze.h +++ b/gas/config/tc-microblaze.h @@ -94,24 +94,9 @@ extern const struct relax_type md_relax_table[]; # error No target format specified. #endif -#include "write.h" /* For definition of fixS. */ - -extern void md_begin (void); -extern void md_assemble (char *); -extern symbolS * md_undefined_symbol (char *); -extern void md_show_usage (FILE *); -extern void md_convert_frag (bfd *, segT, fragS *); -extern void md_operand (expressionS *); -extern int md_estimate_size_before_relax (fragS *, segT); -extern void md_number_to_chars (char *, valueT, int); -extern valueT md_section_align (segT, valueT); -extern long md_pcrel_from_section (fixS *, segT); -extern arelent * tc_gen_reloc (asection *, fixS *); extern void cons_fix_new_microblaze (fragS *, int, int, expressionS *, bfd_reloc_code_real_type); -extern void md_apply_fix3 (fixS *, valueT *, segT); - #define EXTERN_FORCE_RELOC -1 #endif /* TC_MICROBLAZE */