i386 stabs tweek

Richard Henderson rth@cygnus.com
Wed Mar 29 00:56:00 GMT 2000


Fixes 

        .stabs "",100,0,0,Letext
Letext:

that was showing up at the end of every file.  This of
course should have been ".Letext".


r~

        * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
        (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.

Index: gcc/config/i386/att.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/att.h,v
retrieving revision 1.2
diff -c -p -d -r1.2 att.h
*** att.h	1998/12/16 21:03:07	1.2
--- att.h	2000/03/29 08:52:50
*************** do								\
*** 71,76 ****
--- 71,80 ----
  
  /* Define the syntax of labels and symbol definitions/declarations.  */
  
+ /* The prefix to add for compiler private assembler symbols.  */
+ #undef LOCAL_LABEL_PREFIX
+ #define LOCAL_LABEL_PREFIX "."
+ 
  /* This is how to store into the string BUF
     the symbol_ref name of an internal numbered label where
     PREFIX is the class of label and NUM is the number within the class.
*************** do								\
*** 78,91 ****
  
  #undef ASM_GENERATE_INTERNAL_LABEL
  #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)	\
!   sprintf ((BUF), ".%s%d", (PREFIX), (NUMBER))
  
  /* This is how to output an internal numbered label where
     PREFIX is the class of label and NUM is the number within the class.  */
  
  #undef ASM_OUTPUT_INTERNAL_LABEL
  #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)	\
!   fprintf (FILE, ".%s%d:\n", PREFIX, NUM)
  
  /* The prefix to add to user-visible assembler symbols. */
  
--- 82,95 ----
  
  #undef ASM_GENERATE_INTERNAL_LABEL
  #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)	\
!   sprintf ((BUF), "%s%s%d", LOCAL_LABEL_PREFIX, (PREFIX), (NUMBER))
  
  /* This is how to output an internal numbered label where
     PREFIX is the class of label and NUM is the number within the class.  */
  
  #undef ASM_OUTPUT_INTERNAL_LABEL
  #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)	\
!   fprintf (FILE, "%s%s%d:\n", LOCAL_LABEL_PREFIX, PREFIX, NUM)
  
  /* The prefix to add to user-visible assembler symbols. */
  


More information about the Gcc-patches mailing list