[patch] v850 ASM_OUTPUT_LABELREF restored.

Catherine Moore clm@cygnus.com
Thu Jul 19 10:45:00 GMT 2001


: On Wed, Jul 18, 2001 at 10:29:51AM -0700, Catherine Moore wrote:
: > +   fprintf (FILE, "_%s", real_name);               \
: 
: This isn't right.  It needs to honor user_label_prefix.
: Suggest you use asm_fprintf as in the arm.h definition.

This one okay?

2001-07-19  Catherine Moore  <clm@cygnus.com>

        * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore. 


Index: v850.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/v850/v850.h,v
retrieving revision 1.40
diff -p -r1.40 v850.h
*** v850.h      2001/07/09 06:10:08     1.40
--- v850.h      2001/07/19 17:43:20
*************** do { char dstr[30];                                     \
*** 1332,1337 ****
--- 1332,1348 ----
      }                                         \
    while (0)
  
+ /* This is how to output a reference to a user-level label named NAME.
+    `assemble_name' uses this.  */
+ 
+ #undef ASM_OUTPUT_LABELREF
+ #define ASM_OUTPUT_LABELREF(FILE, NAME)           \
+   do {                                            \
+   char* real_name;                                \
+   STRIP_NAME_ENCODING (real_name, (NAME));        \
+   asm_fprintf (FILE, "%U%s", real_name);          \
+   } while (0)
+ 
  
  /* Store in OUTPUT a string (made with alloca) containing
     an assembler-name for a local static variable named NAME.



More information about the Gcc-patches mailing list