This is the mail archive of the binutils@sourceware.cygnus.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]

Globalization of gas/stabs.c:aout_process_stab. Also, small warning-patch.


Currently, aout_process_stab is defined if AOUT_STABS, used in
the default-definition of the OBJ_PROCESS_STABS macro (ifdef
AOUT_STABS), as is glimpsed from the first line in the context.

However, OBJ_PROCESS_STABS being an object-specific macro needs to use
the struct format_ops when multi-object-format target, and so has to
be visible in the obj-aout.c; being called from a function in
the table there.  It also seemed to need a comment as to why it
is there and not in obj-aout.c so I added one.

Random silencing of warning thrown in for good measure.

Ok to install?

Sat May 20 16:41:55 2000  Hans-Peter Nilsson  <hp@axis.com>

	* stabs.c (aout_process_stab): Make global.
	(s_desc): Add ATTRIBUTE_UNUSED to args as appropriate.
	* read.h (aout_process_stab): Declare.

Index: read.h
===================================================================
RCS file: /cvs/src/src/gas/read.h,v
retrieving revision 1.4
diff -p -c -r1.4 read.h
*** read.h	2000/02/08 19:06:00	1.4
--- read.h	2000/05/20 15:42:22
*************** enum linkonce_type
*** 89,94 ****
--- 89,95 ----
  extern void pop_insert PARAMS ((const pseudo_typeS *));
  extern unsigned int get_stab_string_offset
    PARAMS ((const char *string, const char *stabstr_secname));
+ extern void aout_process_stab PARAMS ((int, const char *, int, int, int));
  extern char *demand_copy_C_string PARAMS ((int *len_pointer));
  extern char get_absolute_expression_and_terminator
    PARAMS ((long *val_pointer));
Index: stabs.c
===================================================================
RCS file: /cvs/src/src/gas/stabs.c,v
retrieving revision 1.4
diff -p -c -r1.4 stabs.c
*** stabs.c	2000/02/02 00:24:17	1.4
--- stabs.c	2000/05/20 15:42:28
*************** get_stab_string_offset (string, stabstr_
*** 131,139 ****
  #define OBJ_PROCESS_STAB(SEG,W,S,T,O,D)	aout_process_stab(W,S,T,O,D)
  #endif
  
! static void aout_process_stab PARAMS ((int, const char *, int, int, int));
! 
! static void
  aout_process_stab (what, string, type, other, desc)
       int what;
       const char *string;
--- 131,138 ----
  #define OBJ_PROCESS_STAB(SEG,W,S,T,O,D)	aout_process_stab(W,S,T,O,D)
  #endif
  
! /* Here instead of obj-aout.c because other formats use it too.  */
! void
  aout_process_stab (what, string, type, other, desc)
       int what;
       const char *string;
*************** s_xstab (what)
*** 441,447 ****
  
  void 
  s_desc (ignore)
!      int ignore;
  {
    char *name;
    char c;
--- 440,446 ----
  
  void 
  s_desc (ignore)
!      int ignore ATTRIBUTE_UNUSED;
  {
    char *name;
    char c;

brgds, H-P

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