This is the mail archive of the binutils@sources.redhat.com 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-export macro_hash


Hi Guys,

  Ben's recent patch to make unreferenced globals static missed one
  small case.  The file gas/config/tc-iq2000.c references the
  macro_hash pointer from gas/macro.c.  So I am applying the patch
  below to fixup this case.

Cheers
  Nick

gas/ChangeLog
2005-05-03  Nick Clifton  <nickc@redhat.com>

	* macro.c (macro_hash): Remove static.
	* macro.h (macro_hash): Provide an external declaration.

Index: gas/macro.c
===================================================================
RCS file: /cvs/src/src/gas/macro.c,v
retrieving revision 1.33
diff -c -3 -p -r1.33 macro.c
*** gas/macro.c	29 Apr 2005 00:22:26 -0000	1.33
--- gas/macro.c	3 May 2005 11:55:43 -0000
*************** static void free_macro(macro_entry *);
*** 94,100 ****
  
  /* The macro hash table.  */
  
! static struct hash_control *macro_hash;
  
  /* Whether any macros have been defined.  */
  
--- 94,100 ----
  
  /* The macro hash table.  */
  
! struct hash_control *macro_hash;
  
  /* Whether any macros have been defined.  */
  
Index: gas/macro.h
===================================================================
RCS file: /cvs/src/src/gas/macro.h,v
retrieving revision 1.12
diff -c -3 -p -r1.12 macro.h
*** gas/macro.h	25 Apr 2005 06:43:45 -0000	1.12
--- gas/macro.h	3 May 2005 11:55:43 -0000
*************** extern int macro_defined;
*** 73,78 ****
--- 73,82 ----
  
  extern int macro_nest;
  
+ /* The macro hash table.  */
+ 
+ extern struct hash_control *macro_hash;
+ 
  extern int buffer_and_nest (const char *, const char *, sb *, int (*) (sb *));
  extern void macro_init
    (int, int, int, int (*) (const char *, int, sb *, int *));


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