OSDN Git Service

* config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2009 10:54:30 +0000 (10:54 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2009 10:54:30 +0000 (10:54 +0000)
        (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152398 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mn10300/mn10300.h

index aebdbff..f07f555 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-02  Nick Clifton  <nickc@redhat.com>
+
+       * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
+       (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
+
 2009-10-01  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
 2009-10-01  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
index fc2ece3..d459387 100644 (file)
@@ -759,6 +759,9 @@ struct cum_arg {int nbytes; };
 
 #define ASM_APP_OFF "#NO_APP\n"
 
 
 #define ASM_APP_OFF "#NO_APP\n"
 
+#undef  USER_LABEL_PREFIX
+#define USER_LABEL_PREFIX "_"
+
 /* This says how to output the assembler to define a global
    uninitialized but not common symbol.
    Try to use asm_output_bss to implement this macro.  */
 /* This says how to output the assembler to define a global
    uninitialized but not common symbol.
    Try to use asm_output_bss to implement this macro.  */
@@ -774,7 +777,7 @@ struct cum_arg {int nbytes; };
 
 #undef ASM_OUTPUT_LABELREF
 #define ASM_OUTPUT_LABELREF(FILE, NAME) \
 
 #undef ASM_OUTPUT_LABELREF
 #define ASM_OUTPUT_LABELREF(FILE, NAME) \
-  fprintf (FILE, "_%s", (*targetm.strip_name_encoding) (NAME))
+  asm_fprintf (FILE, "%U%s", (*targetm.strip_name_encoding) (NAME))
 
 #define ASM_PN_FORMAT "%s___%lu"
 
 
 #define ASM_PN_FORMAT "%s___%lu"