This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Commit: PR 22823: Fix gcc 8 compile time warnings


On Wed, 14 Feb 2018, Andreas Schwab wrote:

> > Now becomes:
> >
> >   #define _bfd_noarchive_write_ar_hdr \
> >     ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_false)
> 
> 'bfd_boolean (*)' is not a function type.

 Updating that to:

#define _bfd_noarchive_write_ar_hdr \
  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*) ()) bfd_false)

yields:

warning: function declaration isn't a prototype

however (we have `-Wstrict-prototypes' spelled out explicitly).  It looks 
like casting to `void (*) (void)' is the way to calm GCC, according to 
`-Wcast-function-type' option documentation (if all else fails, check the 
manual).

 This update on top of Nick's patch works for me.  NB we may want to 
reformat code affected once we've settled on the final version as there 
are many overlong lines here.

  Maciej

---
 bfd/aout-target.h     |    2 -
 bfd/aout-tic30.c      |    2 -
 bfd/binary.c          |    2 -
 bfd/coff-alpha.c      |   14 +++----
 bfd/coff-mips.c       |   14 +++----
 bfd/coffcode.h        |    6 +--
 bfd/elf-m10300.c      |    2 -
 bfd/elf32-cr16.c      |    2 -
 bfd/elf32-lm32.c      |    2 -
 bfd/elf32-m32r.c      |    2 -
 bfd/elf32-metag.c     |    2 -
 bfd/elf32-score.c     |    2 -
 bfd/elf32-score7.c    |    2 -
 bfd/elf32-xstormy16.c |    2 -
 bfd/elf32-xtensa.c    |    2 -
 bfd/elf64-alpha.c     |    2 -
 bfd/elf64-hppa.c      |    2 -
 bfd/elf64-ia64-vms.c  |    2 -
 bfd/elf64-mmix.c      |    2 -
 bfd/elf64-sh64.c      |    2 -
 bfd/elfnn-ia64.c      |    2 -
 bfd/elfxx-target.h    |   14 +++----
 bfd/elfxx-x86.h       |    2 -
 bfd/i386msdos.c       |    2 -
 bfd/ieee.c            |    8 ++--
 bfd/ihex.c            |    4 +-
 bfd/libaout.h         |    2 -
 bfd/libbfd-in.h       |  100 +++++++++++++++++++++++++-------------------------
 bfd/libbfd.h          |  100 +++++++++++++++++++++++++-------------------------
 bfd/libecoff.h        |    4 +-
 bfd/mach-o-target.c   |    2 -
 bfd/mmo.c             |    2 -
 bfd/nlm-target.h      |    2 -
 bfd/oasys.c           |    8 ++--
 bfd/pef.c             |    2 -
 bfd/plugin.c          |    2 -
 bfd/ppcboot.c         |    2 -
 bfd/som.c             |    2 -
 bfd/srec.c            |    2 -
 bfd/tekhex.c          |    2 -
 bfd/verilog.c         |    2 -
 bfd/versados.c        |    2 -
 bfd/vms-alpha.c       |    4 +-
 bfd/wasm-module.c     |    2 -
 bfd/xsym.c            |    2 -
 45 files changed, 172 insertions(+), 172 deletions(-)

binutils-bfd-pr22823-fix.diff
Index: binutils/bfd/aout-target.h
===================================================================
--- binutils.orig/bfd/aout-target.h	2018-02-15 08:07:30.755598182 +0000
+++ binutils/bfd/aout-target.h	2018-02-15 08:10:49.704313356 +0000
@@ -581,7 +581,7 @@ MY_bfd_final_link (bfd *abfd, struct bfd
 #endif
 
 #ifndef MY_bfd_is_target_special_symbol
-#define MY_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define MY_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #endif
 
 #ifndef MY_bfd_free_cached_info
Index: binutils/bfd/aout-tic30.c
===================================================================
--- binutils.orig/bfd/aout-tic30.c	2018-02-15 08:07:30.780893981 +0000
+++ binutils/bfd/aout-tic30.c	2018-02-15 08:10:49.717382055 +0000
@@ -1037,7 +1037,7 @@ tic30_aout_set_arch_mach (bfd *abfd,
 
 #ifndef MY_bfd_is_target_special_symbol
 #define MY_bfd_is_target_special_symbol  \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #endif
 
 #ifndef MY_bfd_free_cached_info
Index: binutils/bfd/binary.c
===================================================================
--- binutils.orig/bfd/binary.c	2018-02-15 08:07:30.799061792 +0000
+++ binutils/bfd/binary.c	2018-02-15 08:10:49.736459119 +0000
@@ -211,7 +211,7 @@ binary_get_symbol_info (bfd *ignore_abfd
 #define binary_bfd_make_debug_symbol	   _bfd_nosymbols_bfd_make_debug_symbol
 #define binary_read_minisymbols		   _bfd_generic_read_minisymbols
 #define binary_minisymbol_to_symbol	   _bfd_generic_minisymbol_to_symbol
-#define binary_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define binary_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 
 /* Set the architecture of a binary file.  */
 #define binary_set_arch_mach _bfd_generic_set_arch_mach
Index: binutils/bfd/coff-alpha.c
===================================================================
--- binutils.orig/bfd/coff-alpha.c	2018-02-15 08:07:30.820361719 +0000
+++ binutils/bfd/coff-alpha.c	2018-02-15 08:10:49.750514437 +0000
@@ -2226,13 +2226,13 @@ static const struct ecoff_backend_data a
 {
   /* COFF backend structure.  */
   {
-    (void (*) (bfd *, void *, int, int, int, int, void *)) (void (*)) bfd_void, /* aux_in */
-    (void (*) (bfd *, void *, void *)) (void (*)) bfd_void, /* sym_in */
-    (void (*) (bfd *, void *, void *)) (void (*)) bfd_void, /* lineno_in */
-    (unsigned (*) (bfd *, void *, int, int, int, int, void *)) (unsigned (*)) bfd_0u,/*aux_out*/
-    (unsigned (*) (bfd *, void *, void *)) (unsigned (*)) bfd_0u, /* sym_out */
-    (unsigned (*) (bfd *, void *, void *)) (unsigned (*)) bfd_0u, /* lineno_out */
-    (unsigned (*) (bfd *, void *, void *)) (unsigned (*)) bfd_0u, /* reloc_out */
+    (void (*) (bfd *, void *, int, int, int, int, void *)) (void (*) (void)) bfd_void, /* aux_in */
+    (void (*) (bfd *, void *, void *)) (void (*) (void)) bfd_void, /* sym_in */
+    (void (*) (bfd *, void *, void *)) (void (*) (void)) bfd_void, /* lineno_in */
+    (unsigned (*) (bfd *, void *, int, int, int, int, void *)) (void (*) (void)) bfd_0u,/*aux_out*/
+    (unsigned (*) (bfd *, void *, void *)) (void (*) (void)) bfd_0u, /* sym_out */
+    (unsigned (*) (bfd *, void *, void *)) (void (*) (void)) bfd_0u, /* lineno_out */
+    (unsigned (*) (bfd *, void *, void *)) (void (*) (void)) bfd_0u, /* reloc_out */
     alpha_ecoff_swap_filehdr_out, alpha_ecoff_swap_aouthdr_out,
     alpha_ecoff_swap_scnhdr_out,
     FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE,
Index: binutils/bfd/coff-mips.c
===================================================================
--- binutils.orig/bfd/coff-mips.c	2018-02-15 08:07:30.833582493 +0000
+++ binutils/bfd/coff-mips.c	2018-02-15 08:10:49.765559259 +0000
@@ -1244,13 +1244,13 @@ static const struct ecoff_backend_data m
 {
   /* COFF backend structure.  */
   {
-    (void (*) (bfd *,void *,int,int,int,int,void *)) (void (*)) bfd_void, /* aux_in */
-    (void (*) (bfd *,void *,void *)) (void (*)) bfd_void, /* sym_in */
-    (void (*) (bfd *,void *,void *)) (void (*)) bfd_void, /* lineno_in */
-    (unsigned (*) (bfd *,void *,int,int,int,int,void *)) (unsigned (*)) bfd_0u,/*aux_out*/
-    (unsigned (*) (bfd *,void *,void *)) (unsigned (*)) bfd_0u, /* sym_out */
-    (unsigned (*) (bfd *,void *,void *)) (unsigned (*)) bfd_0u, /* lineno_out */
-    (unsigned (*) (bfd *,void *,void *)) (unsigned (*)) bfd_0u, /* reloc_out */
+    (void (*) (bfd *,void *,int,int,int,int,void *)) (void (*) (void)) bfd_void, /* aux_in */
+    (void (*) (bfd *,void *,void *)) (void (*) (void)) bfd_void, /* sym_in */
+    (void (*) (bfd *,void *,void *)) (void (*) (void)) bfd_void, /* lineno_in */
+    (unsigned (*) (bfd *,void *,int,int,int,int,void *)) (void (*) (void)) bfd_0u,/*aux_out*/
+    (unsigned (*) (bfd *,void *,void *)) (void (*) (void)) bfd_0u, /* sym_out */
+    (unsigned (*) (bfd *,void *,void *)) (void (*) (void)) bfd_0u, /* lineno_out */
+    (unsigned (*) (bfd *,void *,void *)) (void (*) (void)) bfd_0u, /* reloc_out */
     mips_ecoff_swap_filehdr_out, mips_ecoff_swap_aouthdr_out,
     mips_ecoff_swap_scnhdr_out,
     FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE,
Index: binutils/bfd/coffcode.h
===================================================================
--- binutils.orig/bfd/coffcode.h	2018-02-15 08:07:30.841643795 +0000
+++ binutils/bfd/coffcode.h	2018-02-15 08:10:49.782624990 +0000
@@ -1986,7 +1986,7 @@ coff_set_alignment_hook (bfd *abfd, asec
 #else /* ! RS6000COFF_C */
 
 #define coff_set_alignment_hook \
-  ((void (*) (bfd *, asection *, void *)) (void (*)) bfd_void)
+  ((void (*) (bfd *, asection *, void *)) (void (*) (void)) bfd_void)
 
 #endif /* ! RS6000COFF_C */
 #endif /* ! COFF_WITH_PE */
@@ -2508,7 +2508,7 @@ symname_in_debug_hook (bfd * abfd ATTRIB
 #else
 
 #define symname_in_debug_hook \
-  (bfd_boolean (*) (bfd *, struct internal_syment *)) (bfd_boolean (*)) bfd_false
+  (bfd_boolean (*) (bfd *, struct internal_syment *)) (void (*) (void)) bfd_false
 
 #endif
 
@@ -6024,7 +6024,7 @@ static bfd_coff_backend_data bigobj_swap
 #endif
 
 #ifndef coff_bfd_is_target_special_symbol
-#define coff_bfd_is_target_special_symbol   ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define coff_bfd_is_target_special_symbol   ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #endif
 
 #ifndef coff_read_minisymbols
Index: binutils/bfd/elf-m10300.c
===================================================================
--- binutils.orig/bfd/elf-m10300.c	2018-02-15 08:07:30.862863078 +0000
+++ binutils/bfd/elf-m10300.c	2018-02-15 08:10:49.829776997 +0000
@@ -5575,7 +5575,7 @@ mn10300_elf_mkobject (bfd *abfd)
 #define elf_backend_size_dynamic_sections \
   _bfd_mn10300_elf_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_finish_dynamic_symbol \
   _bfd_mn10300_elf_finish_dynamic_symbol
 #define elf_backend_finish_dynamic_sections \
Index: binutils/bfd/elf32-cr16.c
===================================================================
--- binutils.orig/bfd/elf32-cr16.c	2018-02-15 08:07:30.875984445 +0000
+++ binutils/bfd/elf32-cr16.c	2018-02-15 08:10:49.849828552 +0000
@@ -2922,7 +2922,7 @@ _bfd_cr16_elf_reloc_type_class (const st
 #define elf_backend_size_dynamic_sections \
 				  _bfd_cr16_elf_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-      ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+      ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_finish_dynamic_symbol \
 				   _bfd_cr16_elf_finish_dynamic_symbol
 #define elf_backend_finish_dynamic_sections \
Index: binutils/bfd/elf32-lm32.c
===================================================================
--- binutils.orig/bfd/elf32-lm32.c	2018-02-15 08:07:30.893114920 +0000
+++ binutils/bfd/elf32-lm32.c	2018-02-15 08:10:49.869910984 +0000
@@ -2581,7 +2581,7 @@ lm32_elf_fdpic_copy_private_bfd_data (bf
 #define elf_backend_copy_indirect_symbol	lm32_elf_copy_indirect_symbol
 #define elf_backend_size_dynamic_sections	lm32_elf_size_dynamic_sections
 #define elf_backend_omit_section_dynsym		\
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_create_dynamic_sections	lm32_elf_create_dynamic_sections
 #define elf_backend_finish_dynamic_sections	lm32_elf_finish_dynamic_sections
 #define elf_backend_adjust_dynamic_symbol	lm32_elf_adjust_dynamic_symbol
Index: binutils/bfd/elf32-m32r.c
===================================================================
--- binutils.orig/bfd/elf32-m32r.c	2018-02-15 08:07:30.906236333 +0000
+++ binutils/bfd/elf32-m32r.c	2018-02-15 08:10:49.888030440 +0000
@@ -3855,7 +3855,7 @@ m32r_elf_reloc_type_class (const struct 
 #define bfd_elf32_bfd_link_hash_table_create	m32r_elf_link_hash_table_create
 #define elf_backend_size_dynamic_sections	m32r_elf_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_finish_dynamic_sections	m32r_elf_finish_dynamic_sections
 #define elf_backend_adjust_dynamic_symbol	m32r_elf_adjust_dynamic_symbol
 #define elf_backend_finish_dynamic_symbol	m32r_elf_finish_dynamic_symbol
Index: binutils/bfd/elf32-metag.c
===================================================================
--- binutils.orig/bfd/elf32-metag.c	2018-02-15 08:07:30.930400312 +0000
+++ binutils/bfd/elf32-metag.c	2018-02-15 08:10:49.902114193 +0000
@@ -4141,7 +4141,7 @@ elf_metag_plt_sym_val (bfd_vma i, const 
 #define elf_backend_finish_dynamic_sections	elf_metag_finish_dynamic_sections
 #define elf_backend_size_dynamic_sections	elf_metag_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_post_process_headers	elf_metag_post_process_headers
 #define elf_backend_reloc_type_class		elf_metag_reloc_type_class
 #define elf_backend_copy_indirect_symbol	elf_metag_copy_indirect_symbol
Index: binutils/bfd/elf32-score.c
===================================================================
--- binutils.orig/bfd/elf32-score.c	2018-02-15 08:07:30.941482216 +0000
+++ binutils/bfd/elf32-score.c	2018-02-15 08:10:49.917188921 +0000
@@ -4467,7 +4467,7 @@ _bfd_score_elf_common_definition (Elf_In
 #define elf_backend_size_dynamic_sections \
   _bfd_score_elf_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_create_dynamic_sections \
   _bfd_score_elf_create_dynamic_sections
 #define elf_backend_finish_dynamic_symbol \
Index: binutils/bfd/elf32-score7.c
===================================================================
--- binutils.orig/bfd/elf32-score7.c	2018-02-15 08:07:30.952595516 +0000
+++ binutils/bfd/elf32-score7.c	2018-02-15 08:10:49.928264477 +0000
@@ -3872,4 +3872,4 @@ s7_elf32_score_new_section_hook (bfd *ab
 }
 
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
Index: binutils/bfd/elf32-xstormy16.c
===================================================================
--- binutils.orig/bfd/elf32-xstormy16.c	2018-02-15 08:07:30.978903931 +0000
+++ binutils/bfd/elf32-xstormy16.c	2018-02-15 08:10:49.945345738 +0000
@@ -1009,7 +1009,7 @@ xstormy16_elf_gc_mark_hook (asection *se
 #define elf_backend_always_size_sections \
   xstormy16_elf_always_size_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_finish_dynamic_sections \
   xstormy16_elf_finish_dynamic_sections
 
Index: binutils/bfd/elf32-xtensa.c
===================================================================
--- binutils.orig/bfd/elf32-xtensa.c	2018-02-15 08:07:30.997345906 +0000
+++ binutils/bfd/elf32-xtensa.c	2018-02-15 08:10:49.965417300 +0000
@@ -11244,7 +11244,7 @@ static const struct bfd_elf_special_sect
 #define elf_backend_size_dynamic_sections    elf_xtensa_size_dynamic_sections
 #define elf_backend_always_size_sections     elf_xtensa_always_size_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_special_sections	     elf_xtensa_special_sections
 #define elf_backend_action_discarded	     elf_xtensa_action_discarded
 #define elf_backend_copy_indirect_symbol     elf_xtensa_copy_indirect_symbol
Index: binutils/bfd/elf64-alpha.c
===================================================================
--- binutils.orig/bfd/elf64-alpha.c	2018-02-15 08:07:31.032581374 +0000
+++ binutils/bfd/elf64-alpha.c	2018-02-15 08:10:49.985533872 +0000
@@ -5495,7 +5495,7 @@ static const struct elf_size_info alpha_
 #define elf_backend_size_dynamic_sections \
   elf64_alpha_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_relocate_section \
   elf64_alpha_relocate_section
 #define elf_backend_finish_dynamic_symbol \
Index: binutils/bfd/elf64-hppa.c
===================================================================
--- binutils.orig/bfd/elf64-hppa.c	2018-02-15 08:07:31.047688622 +0000
+++ binutils/bfd/elf64-hppa.c	2018-02-15 08:10:50.002650111 +0000
@@ -4053,7 +4053,7 @@ const struct elf_size_info hppa64_elf_si
 #define elf_backend_post_process_headers	elf64_hppa_post_process_headers
 
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_adjust_dynamic_symbol \
 					elf64_hppa_adjust_dynamic_symbol
 
Index: binutils/bfd/elf64-ia64-vms.c
===================================================================
--- binutils.orig/bfd/elf64-ia64-vms.c	2018-02-15 08:07:31.068822221 +0000
+++ binutils/bfd/elf64-ia64-vms.c	2018-02-15 08:10:50.011722258 +0000
@@ -5481,7 +5481,7 @@ static const struct elf_size_info elf64_
 #define elf_backend_size_dynamic_sections \
 	elf64_ia64_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_relocate_section \
 	elf64_ia64_relocate_section
 #define elf_backend_finish_dynamic_symbol \
Index: binutils/bfd/elf64-mmix.c
===================================================================
--- binutils.orig/bfd/elf64-mmix.c	2018-02-15 08:07:31.076873665 +0000
+++ binutils/bfd/elf64-mmix.c	2018-02-15 08:10:50.017756358 +0000
@@ -2902,7 +2902,7 @@ mmix_elf_relax_section (bfd *abfd,
 #define elf_backend_check_relocs	mmix_elf_check_relocs
 #define elf_backend_symbol_processing	mmix_elf_symbol_processing
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 
 #define bfd_elf64_bfd_copy_link_hash_symbol_type \
   _bfd_generic_copy_link_hash_symbol_type
Index: binutils/bfd/elf64-sh64.c
===================================================================
--- binutils.orig/bfd/elf64-sh64.c	2018-02-15 08:07:31.101031348 +0000
+++ binutils/bfd/elf64-sh64.c	2018-02-15 08:10:50.028809220 +0000
@@ -3927,7 +3927,7 @@ static const struct bfd_elf_special_sect
 #define elf_backend_size_dynamic_sections \
 					sh64_elf64_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_finish_dynamic_symbol \
 					sh64_elf64_finish_dynamic_symbol
 #define elf_backend_finish_dynamic_sections \
Index: binutils/bfd/elfnn-ia64.c
===================================================================
--- binutils.orig/bfd/elfnn-ia64.c	2018-02-15 08:07:31.117122145 +0000
+++ binutils/bfd/elfnn-ia64.c	2018-02-15 08:10:50.043870176 +0000
@@ -5046,7 +5046,7 @@ elfNN_hpux_backend_symbol_processing (bf
 #define elf_backend_size_dynamic_sections \
 	elfNN_ia64_size_dynamic_sections
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_relocate_section \
 	elfNN_ia64_relocate_section
 #define elf_backend_finish_dynamic_symbol \
Index: binutils/bfd/elfxx-target.h
===================================================================
--- binutils.orig/bfd/elfxx-target.h	2018-02-15 08:07:31.131265015 +0000
+++ binutils/bfd/elfxx-target.h	2018-02-15 08:10:50.051904884 +0000
@@ -148,7 +148,7 @@
 #define bfd_elfNN_bfd_debug_info_start	bfd_void
 #define bfd_elfNN_bfd_debug_info_end	bfd_void
 #define bfd_elfNN_bfd_debug_info_accumulate \
-  ((void (*) (bfd*, struct bfd_section *)) (void (*)) bfd_void)
+  ((void (*) (bfd*, struct bfd_section *)) (void (*) (void)) bfd_void)
 
 #ifndef bfd_elfNN_bfd_get_relocated_section_contents
 #define bfd_elfNN_bfd_get_relocated_section_contents \
@@ -212,7 +212,7 @@
 
 #ifndef bfd_elfNN_bfd_make_debug_symbol
 #define bfd_elfNN_bfd_make_debug_symbol \
-  ((asymbol * (*) (bfd *, void *, unsigned long)) (asymbol * (*)) bfd_nullvoidptr)
+  ((asymbol * (*) (bfd *, void *, unsigned long)) (void (*) (void)) bfd_nullvoidptr)
 #endif
 
 #ifndef bfd_elfNN_bfd_copy_private_symbol_data
@@ -238,18 +238,18 @@
 #endif
 #ifndef bfd_elfNN_bfd_merge_private_bfd_data
 #define bfd_elfNN_bfd_merge_private_bfd_data \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) (void (*) (void)) bfd_true)
 #endif
 #ifndef bfd_elfNN_bfd_set_private_flags
 #define bfd_elfNN_bfd_set_private_flags \
-  ((bfd_boolean (*) (bfd *, flagword)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, flagword)) (void (*) (void)) bfd_true)
 #endif
 #ifndef bfd_elfNN_bfd_is_local_label_name
 #define bfd_elfNN_bfd_is_local_label_name _bfd_elf_is_local_label_name
 #endif
 #ifndef bfd_elfNN_bfd_is_target_special_symbol
 #define bfd_elfNN_bfd_is_target_special_symbol \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #endif
 
 #ifndef bfd_elfNN_get_dynamic_reloc_upper_bound
@@ -474,7 +474,7 @@
 #endif
 #ifndef elf_backend_init_index_section
 #define elf_backend_init_index_section \
-  ((void (*) (bfd *, struct bfd_link_info *)) (void (*)) bfd_void)
+  ((void (*) (bfd *, struct bfd_link_info *)) (void (*) (void)) bfd_void)
 #endif
 #ifndef elf_backend_relocate_section
 #define elf_backend_relocate_section	0
@@ -502,7 +502,7 @@
 #endif
 #ifndef elf_backend_allow_non_load_phdr
 #define elf_backend_allow_non_load_phdr	\
-  ((bfd_boolean (*) (bfd *, const Elf_Internal_Phdr *, unsigned)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, const Elf_Internal_Phdr *, unsigned)) (void (*) (void)) bfd_false)
 #endif
 #ifndef elf_backend_ecoff_debug_swap
 #define elf_backend_ecoff_debug_swap	0
Index: binutils/bfd/elfxx-x86.h
===================================================================
--- binutils.orig/bfd/elfxx-x86.h	2018-02-15 08:07:31.149431731 +0000
+++ binutils/bfd/elfxx-x86.h	2018-02-15 08:10:50.069993819 +0000
@@ -692,7 +692,7 @@ extern bfd * _bfd_x86_elf_link_setup_gnu
 #define elf_backend_gc_mark_hook \
   _bfd_x86_elf_gc_mark_hook
 #define elf_backend_omit_section_dynsym \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) (void (*) (void)) bfd_true)
 #define elf_backend_parse_gnu_properties \
   _bfd_x86_elf_parse_gnu_properties
 #define elf_backend_merge_gnu_properties \
Index: binutils/bfd/i386msdos.c
===================================================================
--- binutils.orig/bfd/i386msdos.c	2018-02-15 08:07:31.161514760 +0000
+++ binutils/bfd/i386msdos.c	2018-02-15 08:10:50.075013049 +0000
@@ -251,7 +251,7 @@ msdos_set_section_contents (bfd *abfd,
 #define msdos_find_line _bfd_nosymbols_find_line
 #define msdos_find_inliner_info _bfd_nosymbols_find_inliner_info
 #define msdos_get_lineno _bfd_nosymbols_get_lineno
-#define msdos_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define msdos_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define msdos_bfd_is_local_label_name _bfd_nosymbols_bfd_is_local_label_name
 #define msdos_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
 #define msdos_read_minisymbols _bfd_nosymbols_read_minisymbols
Index: binutils/bfd/ieee.c
===================================================================
--- binutils.orig/bfd/ieee.c	2018-02-15 08:07:31.182672868 +0000
+++ binutils/bfd/ieee.c	2018-02-15 08:10:50.083064852 +0000
@@ -3858,22 +3858,22 @@ ieee_sizeof_headers (bfd *abfd ATTRIBUTE
 #define ieee_construct_extended_name_table \
   ((bfd_boolean (*) \
     (bfd *, char **, bfd_size_type *, const char **)) \
-   (bfd_boolean (*)) bfd_true)
+   (void (*) (void)) bfd_true)
 #define ieee_truncate_arname bfd_dont_truncate_arname
 #define ieee_write_armap \
   ((bfd_boolean (*) \
     (bfd *, unsigned int, struct orl *, unsigned int, int)) \
-   (bfd_boolean (*)) bfd_true)
+   (void (*) (void)) bfd_true)
 #define ieee_read_ar_hdr bfd_nullvoidptr
 #define ieee_write_ar_hdr \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_false)
 #define ieee_update_armap_timestamp bfd_true
 #define ieee_get_elt_at_index _bfd_generic_get_elt_at_index
 
 #define ieee_get_symbol_version_string \
   _bfd_nosymbols_get_symbol_version_string
 #define ieee_bfd_is_target_special_symbol  \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define ieee_bfd_is_local_label_name bfd_generic_is_local_label_name
 #define ieee_get_lineno _bfd_nosymbols_get_lineno
 #define ieee_bfd_make_debug_symbol _bfd_nosymbols_bfd_make_debug_symbol
Index: binutils/bfd/ihex.c
===================================================================
--- binutils.orig/bfd/ihex.c	2018-02-15 08:07:31.191792717 +0000
+++ binutils/bfd/ihex.c	2018-02-15 08:10:50.095123370 +0000
@@ -919,12 +919,12 @@ ihex_sizeof_headers (bfd *abfd ATTRIBUTE
 #define ihex_new_section_hook			  _bfd_generic_new_section_hook
 #define ihex_get_section_contents_in_window	  _bfd_generic_get_section_contents_in_window
 #define ihex_get_symtab_upper_bound		  bfd_0l
-#define ihex_canonicalize_symtab		  ((long (*) (bfd *, asymbol **)) (long (*)) bfd_0l)
+#define ihex_canonicalize_symtab		  ((long (*) (bfd *, asymbol **)) (void (*) (void)) bfd_0l)
 #define ihex_make_empty_symbol			  _bfd_generic_make_empty_symbol
 #define ihex_print_symbol			  _bfd_nosymbols_print_symbol
 #define ihex_get_symbol_info			  _bfd_nosymbols_get_symbol_info
 #define ihex_get_symbol_version_string		  _bfd_nosymbols_get_symbol_version_string
-#define ihex_bfd_is_target_special_symbol	  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define ihex_bfd_is_target_special_symbol	  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define ihex_bfd_is_local_label_name		  _bfd_nosymbols_bfd_is_local_label_name
 #define ihex_get_lineno				  _bfd_nosymbols_get_lineno
 #define ihex_find_nearest_line			  _bfd_nosymbols_find_nearest_line
Index: binutils/bfd/libaout.h
===================================================================
--- binutils.orig/bfd/libaout.h	2018-02-15 08:07:31.204922876 +0000
+++ binutils/bfd/libaout.h	2018-02-15 08:10:50.107206315 +0000
@@ -618,7 +618,7 @@ extern bfd_boolean NAME (aout, bfd_free_
 
 #ifndef aout_32_bfd_is_target_special_symbol
 #define aout_32_bfd_is_target_special_symbol \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #endif
 
 #ifndef WRITE_HEADERS
Index: binutils/bfd/libbfd-in.h
===================================================================
--- binutils.orig/bfd/libbfd-in.h	2018-02-15 08:07:31.222145763 +0000
+++ binutils/bfd/libbfd-in.h	2018-02-15 08:10:50.127317469 +0000
@@ -258,19 +258,19 @@ extern bfd_boolean _bfd_generic_get_sect
    BFD_JUMP_TABLE_COPY (_bfd_generic).  */
 
 #define _bfd_generic_bfd_copy_private_bfd_data \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_merge_private_bfd_data \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_set_private_flags \
-  ((bfd_boolean (*) (bfd *, flagword)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, flagword)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_copy_private_section_data \
-  ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_copy_private_symbol_data \
-  ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_copy_private_header_data \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_print_private_bfd_data \
-  ((bfd_boolean (*) (bfd *, void *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, void *)) (void (*) (void)) bfd_true)
 
 extern bfd_boolean _bfd_generic_init_private_section_data
   (bfd *, asection *, bfd *, asection *, struct bfd_link_info *);
@@ -294,19 +294,19 @@ extern int _bfd_nocore_core_file_pid
 #define _bfd_noarchive_slurp_extended_name_table bfd_false
 #define _bfd_noarchive_construct_extended_name_table \
   ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_noarchive_truncate_arname \
-  ((void (*) (bfd *, const char *, char *)) (void (*)) bfd_void)
+  ((void (*) (bfd *, const char *, char *)) (void (*) (void)) bfd_void)
 #define _bfd_noarchive_write_armap \
   ((bfd_boolean (*) (bfd *, unsigned int, struct orl *, unsigned int, int)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_noarchive_read_ar_hdr bfd_nullvoidptr
 #define _bfd_noarchive_write_ar_hdr \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_false)
 #define _bfd_noarchive_openr_next_archived_file \
-  ((bfd * (*) (bfd *, bfd *)) (bfd * (*)) bfd_nullvoidptr)
+  ((bfd * (*) (bfd *, bfd *)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_noarchive_get_elt_at_index \
-  ((bfd * (*) (bfd *, symindex)) (bfd * (*)) bfd_nullvoidptr)
+  ((bfd * (*) (bfd *, symindex)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_noarchive_generic_stat_arch_elt bfd_generic_stat_arch_elt
 #define _bfd_noarchive_update_armap_timestamp bfd_false
 
@@ -402,41 +402,41 @@ extern bfd_boolean _bfd_vms_lib_ia64_mka
 
 #define _bfd_nosymbols_get_symtab_upper_bound _bfd_n1
 #define _bfd_nosymbols_canonicalize_symtab \
-  ((long (*) (bfd *, asymbol **)) (long (*)) _bfd_n1)
+  ((long (*) (bfd *, asymbol **)) (void (*) (void)) _bfd_n1)
 #define _bfd_nosymbols_make_empty_symbol _bfd_generic_make_empty_symbol
 #define _bfd_nosymbols_print_symbol \
-  ((void (*) (bfd *, void *, asymbol *, bfd_print_symbol_type)) (void (*)) bfd_void)
+  ((void (*) (bfd *, void *, asymbol *, bfd_print_symbol_type)) (void (*) (void)) bfd_void)
 #define _bfd_nosymbols_get_symbol_info \
-  ((void (*) (bfd *, asymbol *, symbol_info *)) (void (*)) bfd_void)
+  ((void (*) (bfd *, asymbol *, symbol_info *)) (void (*) (void)) bfd_void)
 #define _bfd_nosymbols_get_symbol_version_string \
-  ((const char *(*) (bfd *, asymbol *, bfd_boolean *)) (const char * (*)) bfd_nullvoidptr)
+  ((const char *(*) (bfd *, asymbol *, bfd_boolean *)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nosymbols_bfd_is_local_label_name \
-  ((bfd_boolean (*) (bfd *, const char *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, const char *)) (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_bfd_is_target_special_symbol \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_get_lineno \
-  ((alent *(*) (bfd *, asymbol *)) (alent * (*)) bfd_nullvoidptr)
+  ((alent *(*) (bfd *, asymbol *)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nosymbols_find_nearest_line \
   ((bfd_boolean (*) (bfd *, asymbol **, asection *, bfd_vma,		\
 		     const char **, const char **, unsigned int *,	\
 		     unsigned int *))					\
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_find_line \
   ((bfd_boolean (*) (bfd *, asymbol **, asymbol *,	\
 		     const char **, unsigned int *))	\
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_find_inliner_info \
   ((bfd_boolean (*) (bfd *, const char **, const char **, unsigned int *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_bfd_make_debug_symbol \
   ((asymbol * (*) (bfd *, void *, unsigned long)) \
-   (asymbol * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nosymbols_read_minisymbols \
   ((long (*) (bfd *, bfd_boolean, void **, unsigned int *)) \
-   (long (*)) _bfd_n1)
+   (void (*) (void)) _bfd_n1)
 #define _bfd_nosymbols_minisymbol_to_symbol \
   ((asymbol * (*) (bfd *, bfd_boolean, const void *, asymbol *)) \
-   (asymbol * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 
 /* Routines to use for BFD_JUMP_TABLE_RELOCS when there is no reloc
    support.  Use BFD_JUMP_TABLE_RELOCS (_bfd_norelocs).  */
@@ -448,20 +448,20 @@ extern void _bfd_norelocs_set_reloc (bfd
 				     arelent **, unsigned int);
 #define _bfd_norelocs_bfd_reloc_type_lookup \
   ((reloc_howto_type * (*) (bfd *, bfd_reloc_code_real_type)) \
-   (reloc_howto_type * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_norelocs_bfd_reloc_name_lookup \
   ((reloc_howto_type * (*) (bfd *, const char *)) \
-   (reloc_howto_type * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 
 /* Routines to use for BFD_JUMP_TABLE_WRITE for targets which may not
    be written.  Use BFD_JUMP_TABLE_WRITE (_bfd_nowrite).  */
 
 #define _bfd_nowrite_set_arch_mach \
   ((bfd_boolean (*) (bfd *, enum bfd_architecture, unsigned long)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nowrite_set_section_contents \
   ((bfd_boolean (*) (bfd *, asection *, const void *, file_ptr, bfd_size_type)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 
 /* Generic routines to use for BFD_JUMP_TABLE_WRITE.  Use
    BFD_JUMP_TABLE_WRITE (_bfd_generic).  */
@@ -474,60 +474,60 @@ extern bfd_boolean _bfd_generic_set_sect
    support linking.  Use BFD_JUMP_TABLE_LINK (_bfd_nolink).  */
 
 #define _bfd_nolink_sizeof_headers \
-  ((int (*) (bfd *, struct bfd_link_info *)) (int (*)) bfd_0)
+  ((int (*) (bfd *, struct bfd_link_info *)) (void (*) (void)) bfd_0)
 #define _bfd_nolink_bfd_get_relocated_section_contents \
   ((bfd_byte * (*) (bfd *, struct bfd_link_info *, struct bfd_link_order *, \
 		   bfd_byte *, bfd_boolean, asymbol **)) \
-   (bfd_byte * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nolink_bfd_relax_section \
   ((bfd_boolean (*) \
     (bfd *, asection *, struct bfd_link_info *, bfd_boolean *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_gc_sections \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_lookup_section_flags \
   ((bfd_boolean (*) (struct bfd_link_info *, struct flag_info *, asection *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_merge_sections \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_is_group_section \
   ((bfd_boolean (*) (bfd *, const struct bfd_section *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_discard_group \
   ((bfd_boolean (*) (bfd *, struct bfd_section *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_link_hash_table_create \
   ((struct bfd_link_hash_table * (*) (bfd *)) \
-   (struct bfd_link_hash_table * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nolink_bfd_link_add_symbols \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_link_just_syms \
   ((void (*) (asection *, struct bfd_link_info *)) \
-   (void (*)) bfd_void)
+   (void (*) (void)) bfd_void)
 #define _bfd_nolink_bfd_copy_link_hash_symbol_type \
   ((void (*) (bfd *, struct bfd_link_hash_entry *, \
 	      struct bfd_link_hash_entry *)) \
-   (void (*)) bfd_void)
+   (void (*) (void)) bfd_void)
 #define _bfd_nolink_bfd_final_link \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_link_split_section \
   ((bfd_boolean (*) (bfd *, struct bfd_section *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_section_already_linked \
   ((bfd_boolean (*) (bfd *, asection *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_define_common_symbol \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *, \
 		     struct bfd_link_hash_entry *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_define_start_stop \
   ((struct bfd_link_hash_entry * (*) (struct bfd_link_info *, \
 				      const char *, asection *)) \
-   (struct bfd_link_hash_entry * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nolink_bfd_link_check_relocs \
   _bfd_generic_link_check_relocs
 
@@ -537,13 +537,13 @@ extern bfd_boolean _bfd_generic_set_sect
 
 #define _bfd_nodynamic_get_dynamic_symtab_upper_bound _bfd_n1
 #define _bfd_nodynamic_canonicalize_dynamic_symtab \
-  ((long (*) (bfd *, asymbol **)) (long (*)) _bfd_n1)
+  ((long (*) (bfd *, asymbol **)) (void (*) (void)) _bfd_n1)
 #define _bfd_nodynamic_get_synthetic_symtab \
   ((long (*) (bfd *, long, asymbol **, long, asymbol **, asymbol **)) \
-   (long (*)) _bfd_n1)
+   (void (*) (void)) _bfd_n1)
 #define _bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_n1
 #define _bfd_nodynamic_canonicalize_dynamic_reloc \
-  ((long (*) (bfd *, arelent **, asymbol **)) (long (*)) _bfd_n1)
+  ((long (*) (bfd *, arelent **, asymbol **)) (void (*) (void)) _bfd_n1)
 
 /* Generic routine to determine of the given symbol is a local
    label.  */
Index: binutils/bfd/libbfd.h
===================================================================
--- binutils.orig/bfd/libbfd.h	2018-02-15 08:07:31.238362575 +0000
+++ binutils/bfd/libbfd.h	2018-02-15 08:10:50.170586881 +0000
@@ -263,19 +263,19 @@ extern bfd_boolean _bfd_generic_get_sect
    BFD_JUMP_TABLE_COPY (_bfd_generic).  */
 
 #define _bfd_generic_bfd_copy_private_bfd_data \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_merge_private_bfd_data \
-  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_set_private_flags \
-  ((bfd_boolean (*) (bfd *, flagword)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, flagword)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_copy_private_section_data \
-  ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_copy_private_symbol_data \
-  ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_copy_private_header_data \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_true)
 #define _bfd_generic_bfd_print_private_bfd_data \
-  ((bfd_boolean (*) (bfd *, void *)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, void *)) (void (*) (void)) bfd_true)
 
 extern bfd_boolean _bfd_generic_init_private_section_data
   (bfd *, asection *, bfd *, asection *, struct bfd_link_info *);
@@ -299,19 +299,19 @@ extern int _bfd_nocore_core_file_pid
 #define _bfd_noarchive_slurp_extended_name_table bfd_false
 #define _bfd_noarchive_construct_extended_name_table \
   ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_noarchive_truncate_arname \
-  ((void (*) (bfd *, const char *, char *)) (void (*)) bfd_void)
+  ((void (*) (bfd *, const char *, char *)) (void (*) (void)) bfd_void)
 #define _bfd_noarchive_write_armap \
   ((bfd_boolean (*) (bfd *, unsigned int, struct orl *, unsigned int, int)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_noarchive_read_ar_hdr bfd_nullvoidptr
 #define _bfd_noarchive_write_ar_hdr \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_false)
 #define _bfd_noarchive_openr_next_archived_file \
-  ((bfd * (*) (bfd *, bfd *)) (bfd * (*)) bfd_nullvoidptr)
+  ((bfd * (*) (bfd *, bfd *)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_noarchive_get_elt_at_index \
-  ((bfd * (*) (bfd *, symindex)) (bfd * (*)) bfd_nullvoidptr)
+  ((bfd * (*) (bfd *, symindex)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_noarchive_generic_stat_arch_elt bfd_generic_stat_arch_elt
 #define _bfd_noarchive_update_armap_timestamp bfd_false
 
@@ -407,41 +407,41 @@ extern bfd_boolean _bfd_vms_lib_ia64_mka
 
 #define _bfd_nosymbols_get_symtab_upper_bound _bfd_n1
 #define _bfd_nosymbols_canonicalize_symtab \
-  ((long (*) (bfd *, asymbol **)) (long (*)) _bfd_n1)
+  ((long (*) (bfd *, asymbol **)) (void (*) (void)) _bfd_n1)
 #define _bfd_nosymbols_make_empty_symbol _bfd_generic_make_empty_symbol
 #define _bfd_nosymbols_print_symbol \
-  ((void (*) (bfd *, void *, asymbol *, bfd_print_symbol_type)) (void (*)) bfd_void)
+  ((void (*) (bfd *, void *, asymbol *, bfd_print_symbol_type)) (void (*) (void)) bfd_void)
 #define _bfd_nosymbols_get_symbol_info \
-  ((void (*) (bfd *, asymbol *, symbol_info *)) (void (*)) bfd_void)
+  ((void (*) (bfd *, asymbol *, symbol_info *)) (void (*) (void)) bfd_void)
 #define _bfd_nosymbols_get_symbol_version_string \
-  ((const char *(*) (bfd *, asymbol *, bfd_boolean *)) (const char * (*)) bfd_nullvoidptr)
+  ((const char *(*) (bfd *, asymbol *, bfd_boolean *)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nosymbols_bfd_is_local_label_name \
-  ((bfd_boolean (*) (bfd *, const char *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, const char *)) (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_bfd_is_target_special_symbol \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_get_lineno \
-  ((alent *(*) (bfd *, asymbol *)) (alent * (*)) bfd_nullvoidptr)
+  ((alent *(*) (bfd *, asymbol *)) (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nosymbols_find_nearest_line \
   ((bfd_boolean (*) (bfd *, asymbol **, asection *, bfd_vma,		\
 		     const char **, const char **, unsigned int *,	\
 		     unsigned int *))					\
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_find_line \
   ((bfd_boolean (*) (bfd *, asymbol **, asymbol *,	\
 		     const char **, unsigned int *))	\
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_find_inliner_info \
   ((bfd_boolean (*) (bfd *, const char **, const char **, unsigned int *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nosymbols_bfd_make_debug_symbol \
   ((asymbol * (*) (bfd *, void *, unsigned long)) \
-   (asymbol * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nosymbols_read_minisymbols \
   ((long (*) (bfd *, bfd_boolean, void **, unsigned int *)) \
-   (long (*)) _bfd_n1)
+   (void (*) (void)) _bfd_n1)
 #define _bfd_nosymbols_minisymbol_to_symbol \
   ((asymbol * (*) (bfd *, bfd_boolean, const void *, asymbol *)) \
-   (asymbol * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 
 /* Routines to use for BFD_JUMP_TABLE_RELOCS when there is no reloc
    support.  Use BFD_JUMP_TABLE_RELOCS (_bfd_norelocs).  */
@@ -453,20 +453,20 @@ extern void _bfd_norelocs_set_reloc (bfd
 				     arelent **, unsigned int);
 #define _bfd_norelocs_bfd_reloc_type_lookup \
   ((reloc_howto_type * (*) (bfd *, bfd_reloc_code_real_type)) \
-   (reloc_howto_type * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_norelocs_bfd_reloc_name_lookup \
   ((reloc_howto_type * (*) (bfd *, const char *)) \
-   (reloc_howto_type * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 
 /* Routines to use for BFD_JUMP_TABLE_WRITE for targets which may not
    be written.  Use BFD_JUMP_TABLE_WRITE (_bfd_nowrite).  */
 
 #define _bfd_nowrite_set_arch_mach \
   ((bfd_boolean (*) (bfd *, enum bfd_architecture, unsigned long)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nowrite_set_section_contents \
   ((bfd_boolean (*) (bfd *, asection *, const void *, file_ptr, bfd_size_type)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 
 /* Generic routines to use for BFD_JUMP_TABLE_WRITE.  Use
    BFD_JUMP_TABLE_WRITE (_bfd_generic).  */
@@ -479,60 +479,60 @@ extern bfd_boolean _bfd_generic_set_sect
    support linking.  Use BFD_JUMP_TABLE_LINK (_bfd_nolink).  */
 
 #define _bfd_nolink_sizeof_headers \
-  ((int (*) (bfd *, struct bfd_link_info *)) (int (*)) bfd_0)
+  ((int (*) (bfd *, struct bfd_link_info *)) (void (*) (void)) bfd_0)
 #define _bfd_nolink_bfd_get_relocated_section_contents \
   ((bfd_byte * (*) (bfd *, struct bfd_link_info *, struct bfd_link_order *, \
 		   bfd_byte *, bfd_boolean, asymbol **)) \
-   (bfd_byte * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nolink_bfd_relax_section \
   ((bfd_boolean (*) \
     (bfd *, asection *, struct bfd_link_info *, bfd_boolean *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_gc_sections \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_lookup_section_flags \
   ((bfd_boolean (*) (struct bfd_link_info *, struct flag_info *, asection *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_merge_sections \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_is_group_section \
   ((bfd_boolean (*) (bfd *, const struct bfd_section *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_discard_group \
   ((bfd_boolean (*) (bfd *, struct bfd_section *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_link_hash_table_create \
   ((struct bfd_link_hash_table * (*) (bfd *)) \
-   (struct bfd_link_hash_table * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nolink_bfd_link_add_symbols \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_link_just_syms \
   ((void (*) (asection *, struct bfd_link_info *)) \
-   (void (*)) bfd_void)
+   (void (*) (void)) bfd_void)
 #define _bfd_nolink_bfd_copy_link_hash_symbol_type \
   ((void (*) (bfd *, struct bfd_link_hash_entry *, \
 	      struct bfd_link_hash_entry *)) \
-   (void (*)) bfd_void)
+   (void (*) (void)) bfd_void)
 #define _bfd_nolink_bfd_final_link \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_link_split_section \
   ((bfd_boolean (*) (bfd *, struct bfd_section *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_section_already_linked \
   ((bfd_boolean (*) (bfd *, asection *, struct bfd_link_info *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_define_common_symbol \
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *, \
 		     struct bfd_link_hash_entry *)) \
-   (bfd_boolean (*)) bfd_false)
+   (void (*) (void)) bfd_false)
 #define _bfd_nolink_bfd_define_start_stop \
   ((struct bfd_link_hash_entry * (*) (struct bfd_link_info *, \
 				      const char *, asection *)) \
-   (struct bfd_link_hash_entry * (*)) bfd_nullvoidptr)
+   (void (*) (void)) bfd_nullvoidptr)
 #define _bfd_nolink_bfd_link_check_relocs \
   _bfd_generic_link_check_relocs
 
@@ -542,13 +542,13 @@ extern bfd_boolean _bfd_generic_set_sect
 
 #define _bfd_nodynamic_get_dynamic_symtab_upper_bound _bfd_n1
 #define _bfd_nodynamic_canonicalize_dynamic_symtab \
-  ((long (*) (bfd *, asymbol **)) (long (*)) _bfd_n1)
+  ((long (*) (bfd *, asymbol **)) (void (*) (void)) _bfd_n1)
 #define _bfd_nodynamic_get_synthetic_symtab \
   ((long (*) (bfd *, long, asymbol **, long, asymbol **, asymbol **)) \
-   (long (*)) _bfd_n1)
+   (void (*) (void)) _bfd_n1)
 #define _bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_n1
 #define _bfd_nodynamic_canonicalize_dynamic_reloc \
-  ((long (*) (bfd *, arelent **, asymbol **)) (long (*)) _bfd_n1)
+  ((long (*) (bfd *, arelent **, asymbol **)) (void (*) (void)) _bfd_n1)
 
 /* Generic routine to determine of the given symbol is a local
    label.  */
Index: binutils/bfd/libecoff.h
===================================================================
--- binutils.orig/bfd/libecoff.h	2018-02-15 08:07:31.252496450 +0000
+++ binutils/bfd/libecoff.h	2018-02-15 08:10:50.181668820 +0000
@@ -277,7 +277,7 @@ extern bfd_boolean _bfd_ecoff_write_arma
 #define _bfd_ecoff_generic_stat_arch_elt bfd_generic_stat_arch_elt
 #define _bfd_ecoff_update_armap_timestamp bfd_true
 #define _bfd_ecoff_bfd_is_target_special_symbol  \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 
 extern long _bfd_ecoff_get_symtab_upper_bound (bfd *);
 extern long _bfd_ecoff_canonicalize_symtab (bfd *, asymbol **);
@@ -327,7 +327,7 @@ extern bfd_boolean _bfd_ecoff_bfd_final_
 
 extern void * _bfd_ecoff_mkobject_hook (bfd *, void *, void *);
 #define _bfd_ecoff_set_alignment_hook \
-  ((void (*) (bfd *, asection *, void *)) (void (*)) bfd_void)
+  ((void (*) (bfd *, asection *, void *)) (void (*) (void)) bfd_void)
 extern bfd_boolean _bfd_ecoff_set_arch_mach_hook
   (bfd *, void *);
 extern bfd_boolean _bfd_ecoff_no_long_sections
Index: binutils/bfd/mach-o-target.c
===================================================================
--- binutils.orig/bfd/mach-o-target.c	2018-02-15 08:07:31.257542123 +0000
+++ binutils/bfd/mach-o-target.c	2018-02-15 08:10:50.193751280 +0000
@@ -27,7 +27,7 @@
 #define bfd_mach_o_bfd_free_cached_info		      _bfd_generic_bfd_free_cached_info
 #define bfd_mach_o_get_section_contents_in_window     _bfd_generic_get_section_contents_in_window
 #define bfd_mach_o_bfd_print_private_bfd_data	      _bfd_generic_bfd_print_private_bfd_data
-#define bfd_mach_o_bfd_is_target_special_symbol	      ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define bfd_mach_o_bfd_is_target_special_symbol	      ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define bfd_mach_o_bfd_is_local_label_name	      bfd_generic_is_local_label_name
 #define bfd_mach_o_get_lineno			      _bfd_nosymbols_get_lineno
 #define bfd_mach_o_find_inliner_info		      _bfd_nosymbols_find_inliner_info
Index: binutils/bfd/mmo.c
===================================================================
--- binutils.orig/bfd/mmo.c	2018-02-15 08:07:31.267748240 +0000
+++ binutils/bfd/mmo.c	2018-02-15 08:10:50.208832260 +0000
@@ -3276,7 +3276,7 @@ mmo_write_object_contents (bfd *abfd)
    leading ':' might more appropriately be called local.  */
 #define mmo_bfd_is_local_label_name bfd_generic_is_local_label_name
 #define mmo_bfd_is_target_special_symbol  \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 
 #define mmo_get_symbol_version_string \
   _bfd_nosymbols_get_symbol_version_string
Index: binutils/bfd/nlm-target.h
===================================================================
--- binutils.orig/bfd/nlm-target.h	2018-02-15 08:07:31.283889969 +0000
+++ binutils/bfd/nlm-target.h	2018-02-15 08:10:50.213851598 +0000
@@ -27,7 +27,7 @@
 #define nlm_get_symbol_info			nlmNAME (get_symbol_info)
 #define nlm_get_symbol_version_string		_bfd_nosymbols_get_symbol_version_string
 #define nlm_bfd_is_local_label_name		bfd_generic_is_local_label_name
-#define nlm_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define nlm_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define nlm_get_lineno				_bfd_nosymbols_get_lineno
 #define nlm_find_nearest_line			_bfd_nosymbols_find_nearest_line
 #define nlm_find_line				_bfd_nosymbols_find_line
Index: binutils/bfd/oasys.c
===================================================================
--- binutils.orig/bfd/oasys.c	2018-02-15 08:07:31.299043421 +0000
+++ binutils/bfd/oasys.c	2018-02-15 08:10:50.221882998 +0000
@@ -1160,18 +1160,18 @@ oasys_sizeof_headers (bfd *abfd ATTRIBUT
 #define oasys_slurp_armap			   bfd_true
 #define oasys_slurp_extended_name_table		   bfd_true
 #define oasys_construct_extended_name_table	   \
-  ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, char **, bfd_size_type *, const char **)) (void (*) (void)) bfd_true)
 #define oasys_truncate_arname			   bfd_dont_truncate_arname
 #define oasys_write_armap			   \
-  ((bfd_boolean (*) (bfd *, unsigned int, struct orl *, unsigned int, int)) (bfd_boolean (*)) bfd_true)
+  ((bfd_boolean (*) (bfd *, unsigned int, struct orl *, unsigned int, int)) (void (*) (void)) bfd_true)
 #define oasys_read_ar_hdr			   bfd_nullvoidptr
 #define oasys_write_ar_hdr                         \
-  ((bfd_boolean (*) (bfd *, bfd *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, bfd *)) (void (*) (void)) bfd_false)
 #define oasys_get_elt_at_index			   _bfd_generic_get_elt_at_index
 #define oasys_update_armap_timestamp		   bfd_true
 #define oasys_bfd_is_local_label_name		   bfd_generic_is_local_label_name
 #define oasys_bfd_is_target_special_symbol	   \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define oasys_get_lineno			   _bfd_nosymbols_get_lineno
 #define oasys_get_symbol_version_string		   _bfd_nosymbols_get_symbol_version_string
 #define oasys_bfd_make_debug_symbol		   _bfd_nosymbols_bfd_make_debug_symbol
Index: binutils/bfd/pef.c
===================================================================
--- binutils.orig/bfd/pef.c	2018-02-15 08:07:31.312153401 +0000
+++ binutils/bfd/pef.c	2018-02-15 08:10:50.238050807 +0000
@@ -39,7 +39,7 @@
 #define bfd_pef_new_section_hook		    _bfd_generic_new_section_hook
 #define bfd_pef_bfd_is_local_label_name		    bfd_generic_is_local_label_name
 #define bfd_pef_bfd_is_target_special_symbol        \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define bfd_pef_get_lineno			    _bfd_nosymbols_get_lineno
 #define bfd_pef_find_nearest_line		    _bfd_nosymbols_find_nearest_line
 #define bfd_pef_find_line			    _bfd_nosymbols_find_line
Index: binutils/bfd/plugin.c
===================================================================
--- binutils.orig/bfd/plugin.c	2018-02-15 08:07:31.337360087 +0000
+++ binutils/bfd/plugin.c	2018-02-15 08:10:50.245100203 +0000
@@ -80,7 +80,7 @@ dlerror (void)
 #define bfd_plugin_bfd_set_private_flags	      _bfd_generic_bfd_set_private_flags
 #define bfd_plugin_core_file_matches_executable_p     generic_core_file_matches_executable_p
 #define bfd_plugin_bfd_is_local_label_name	      _bfd_nosymbols_bfd_is_local_label_name
-#define bfd_plugin_bfd_is_target_special_symbol	      ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define bfd_plugin_bfd_is_target_special_symbol	      ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define bfd_plugin_get_lineno			      _bfd_nosymbols_get_lineno
 #define bfd_plugin_find_nearest_line		      _bfd_nosymbols_find_nearest_line
 #define bfd_plugin_find_line			      _bfd_nosymbols_find_line
Index: binutils/bfd/ppcboot.c
===================================================================
--- binutils.orig/bfd/ppcboot.c	2018-02-15 08:07:31.352465180 +0000
+++ binutils/bfd/ppcboot.c	2018-02-15 08:10:50.257195939 +0000
@@ -329,7 +329,7 @@ ppcboot_get_symbol_info (bfd *ignore_abf
 #define ppcboot_get_symbol_version_string \
   _bfd_nosymbols_get_symbol_version_string
 #define ppcboot_bfd_is_target_special_symbol \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define ppcboot_bfd_is_local_label_name bfd_generic_is_local_label_name
 #define ppcboot_get_lineno _bfd_nosymbols_get_lineno
 #define ppcboot_find_nearest_line _bfd_nosymbols_find_nearest_line
Index: binutils/bfd/som.c
===================================================================
--- binutils.orig/bfd/som.c	2018-02-15 08:07:31.376657154 +0000
+++ binutils/bfd/som.c	2018-02-15 08:10:50.279284084 +0000
@@ -6739,7 +6739,7 @@ som_bfd_link_split_section (bfd *abfd AT
 #define som_construct_extended_name_table	_bfd_archive_coff_construct_extended_name_table
 #define som_update_armap_timestamp		bfd_true
 #define som_bfd_is_target_special_symbol        \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define som_get_lineno				_bfd_nosymbols_get_lineno
 #define som_bfd_make_debug_symbol		_bfd_nosymbols_bfd_make_debug_symbol
 #define som_read_minisymbols			_bfd_generic_read_minisymbols
Index: binutils/bfd/srec.c
===================================================================
--- binutils.orig/bfd/srec.c	2018-02-15 08:07:31.382725781 +0000
+++ binutils/bfd/srec.c	2018-02-15 08:10:50.291320611 +0000
@@ -1257,7 +1257,7 @@ srec_print_symbol (bfd *abfd,
 #define	srec_close_and_cleanup			  _bfd_generic_close_and_cleanup
 #define srec_bfd_free_cached_info		  _bfd_generic_bfd_free_cached_info
 #define srec_new_section_hook			  _bfd_generic_new_section_hook
-#define srec_bfd_is_target_special_symbol	  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define srec_bfd_is_target_special_symbol	  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define srec_bfd_is_local_label_name		  bfd_generic_is_local_label_name
 #define srec_get_lineno				  _bfd_nosymbols_get_lineno
 #define srec_find_nearest_line			  _bfd_nosymbols_find_nearest_line
Index: binutils/bfd/tekhex.c
===================================================================
--- binutils.orig/bfd/tekhex.c	2018-02-15 08:07:31.398912676 +0000
+++ binutils/bfd/tekhex.c	2018-02-15 08:10:50.303353974 +0000
@@ -962,7 +962,7 @@ tekhex_print_symbol (bfd *abfd,
 #define	tekhex_close_and_cleanup		    _bfd_generic_close_and_cleanup
 #define tekhex_bfd_free_cached_info		    _bfd_generic_bfd_free_cached_info
 #define tekhex_new_section_hook			    _bfd_generic_new_section_hook
-#define tekhex_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define tekhex_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define tekhex_bfd_is_local_label_name		     bfd_generic_is_local_label_name
 #define tekhex_get_lineno			    _bfd_nosymbols_get_lineno
 #define tekhex_find_nearest_line		    _bfd_nosymbols_find_nearest_line
Index: binutils/bfd/verilog.c
===================================================================
--- binutils.orig/bfd/verilog.c	2018-02-15 08:07:31.407014310 +0000
+++ binutils/bfd/verilog.c	2018-02-15 08:10:50.313392243 +0000
@@ -293,7 +293,7 @@ verilog_mkobject (bfd *abfd)
 #define verilog_close_and_cleanup		     _bfd_generic_close_and_cleanup
 #define verilog_bfd_free_cached_info		     _bfd_generic_bfd_free_cached_info
 #define verilog_new_section_hook		     _bfd_generic_new_section_hook
-#define verilog_bfd_is_target_special_symbol	     ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define verilog_bfd_is_target_special_symbol	     ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define verilog_bfd_is_local_label_name		     bfd_generic_is_local_label_name
 #define verilog_get_lineno			     _bfd_nosymbols_get_lineno
 #define verilog_find_nearest_line		     _bfd_nosymbols_find_nearest_line
Index: binutils/bfd/versados.c
===================================================================
--- binutils.orig/bfd/versados.c	2018-02-15 08:07:31.421158306 +0000
+++ binutils/bfd/versados.c	2018-02-15 08:10:50.325478095 +0000
@@ -849,7 +849,7 @@ versados_canonicalize_reloc (bfd *abfd,
 #define versados_bfd_free_cached_info		      _bfd_generic_bfd_free_cached_info
 #define versados_new_section_hook		      _bfd_generic_new_section_hook
 #define versados_bfd_is_target_special_symbol	      \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define versados_bfd_is_local_label_name	      bfd_generic_is_local_label_name
 #define versados_get_lineno			      _bfd_nosymbols_get_lineno
 #define versados_find_nearest_line		      _bfd_nosymbols_find_nearest_line
Index: binutils/bfd/vms-alpha.c
===================================================================
--- binutils.orig/bfd/vms-alpha.c	2018-02-15 08:07:31.434293969 +0000
+++ binutils/bfd/vms-alpha.c	2018-02-15 08:10:50.339524195 +0000
@@ -9490,7 +9490,7 @@ bfd_vms_get_data (bfd *abfd)
 }
 
 #define vms_bfd_is_target_special_symbol \
-  ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+  ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define vms_bfd_link_just_syms		  _bfd_generic_link_just_syms
 #define vms_bfd_copy_link_hash_symbol_type \
   _bfd_generic_copy_link_hash_symbol_type
@@ -9511,7 +9511,7 @@ bfd_vms_get_data (bfd *abfd)
 /* Symbols table.  */
 #define alpha_vms_make_empty_symbol	   _bfd_generic_make_empty_symbol
 #define alpha_vms_bfd_is_target_special_symbol \
-   ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+   ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define alpha_vms_print_symbol		   vms_print_symbol
 #define alpha_vms_get_symbol_info	   vms_get_symbol_info
 #define alpha_vms_get_symbol_version_string \
Index: binutils/bfd/wasm-module.c
===================================================================
--- binutils.orig/bfd/wasm-module.c	2018-02-15 08:07:31.443384839 +0000
+++ binutils/bfd/wasm-module.c	2018-02-15 08:10:50.350555309 +0000
@@ -773,7 +773,7 @@ wasm_object_p (bfd *abfd)
 /* BFD_JUMP_TABLE_SYMBOLS */
 #define wasm_get_symbol_version_string	  _bfd_nosymbols_get_symbol_version_string
 #define wasm_bfd_is_local_label_name	   bfd_generic_is_local_label_name
-#define wasm_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define wasm_bfd_is_target_special_symbol ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define wasm_get_lineno			  _bfd_nosymbols_get_lineno
 #define wasm_find_nearest_line		  _bfd_nosymbols_find_nearest_line
 #define wasm_find_line			  _bfd_nosymbols_find_line
Index: binutils/bfd/xsym.c
===================================================================
--- binutils.orig/bfd/xsym.c	2018-02-15 08:07:31.451492588 +0000
+++ binutils/bfd/xsym.c	2018-02-15 08:10:50.385651517 +0000
@@ -30,7 +30,7 @@
 #define bfd_sym_bfd_free_cached_info		    _bfd_generic_bfd_free_cached_info
 #define bfd_sym_new_section_hook		    _bfd_generic_new_section_hook
 #define bfd_sym_bfd_is_local_label_name		    bfd_generic_is_local_label_name
-#define bfd_sym_bfd_is_target_special_symbol	   ((bfd_boolean (*) (bfd *, asymbol *)) (bfd_boolean (*)) bfd_false)
+#define bfd_sym_bfd_is_target_special_symbol	   ((bfd_boolean (*) (bfd *, asymbol *)) (void (*) (void)) bfd_false)
 #define bfd_sym_get_lineno			    _bfd_nosymbols_get_lineno
 #define bfd_sym_find_nearest_line		    _bfd_nosymbols_find_nearest_line
 #define bfd_sym_find_line			    _bfd_nosymbols_find_line


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]