Include libiberty.h in files that use htab_create()

Nick Clifton nickc@cambridge.redhat.com
Thu Jun 6 03:45:00 GMT 2002


Hi Guys,

  I am applying the patch below to #include "libiberty.h" in the two
  files in BFD that use the htab_create() function.  The new version
  of hashtab.h in the FSF GCC source repository replaces this with a
  macro that references the xcalloc() function, and a prototype for
  this function is needed in order for the macro to work.

Cheers
        Nick

2002-06-06  Nick Clifton  <nickc@cambridge.redhat.com>

	* merge.c: Include libiberty.h.
	* elf-strtab.c: Include libiberty.h.

Index: bfd/merge.c
===================================================================
RCS file: /cvs/src/src/bfd/merge.c,v
retrieving revision 1.9
diff -c -3 -p -w -r1.9 merge.c
*** bfd/merge.c	5 Mar 2002 12:19:08 -0000	1.9
--- bfd/merge.c	6 Jun 2002 10:42:10 -0000
*************** Foundation, Inc., 59 Temple Place - Suit
*** 25,30 ****
--- 25,31 ----
  #include "sysdep.h"
  #include "libbfd.h"
  #include "hashtab.h"
+ #include "libiberty.h"
  
  struct sec_merge_sec_info;
  
Index: bfd/elf-strtab.c
===================================================================
RCS file: /cvs/src/src/bfd/elf-strtab.c,v
retrieving revision 1.3
diff -c -3 -p -w -r1.3 elf-strtab.c
*** bfd/elf-strtab.c	18 Dec 2001 11:47:59 -0000	1.3
--- bfd/elf-strtab.c	6 Jun 2002 10:42:10 -0000
*************** Foundation, Inc., 59 Temple Place - Suit
*** 23,28 ****
--- 23,29 ----
  #include "libbfd.h"
  #include "elf-bfd.h"
  #include "hashtab.h"
+ #include "libiberty.h"
  
  /* An entry in the strtab hash table.  */
  



More information about the Binutils mailing list