OSDN Git Service

make compatible with new rs6000 change.
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 1995 16:52:13 +0000 (16:52 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 1995 16:52:13 +0000 (16:52 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9796 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/rs6000/sysv4.h

index d295965..5265764 100644 (file)
@@ -302,6 +302,13 @@ extern int rs6000_pic_labelno;
 #define        DBX_DEBUGGING_INFO
 #define        DWARF_DEBUGGING_INFO
 
+/* This macro gets just the user-specified name
+   out of the string in a SYMBOL_REF.  Discard
+   a leading * */
+#undef  STRIP_NAME_ENCODING
+#define STRIP_NAME_ENCODING(VAR,SYMBOL_NAME) \
+  (VAR) = ((SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*'))
+
 /* Like block addresses, stabs line numbers are relative to the
    current function.  */
 
@@ -310,10 +317,11 @@ extern int rs6000_pic_labelno;
 do                                                                     \
   {                                                                    \
     static int sym_lineno = 1;                                         \
+    char *_p;                                                          \
     fprintf (file, "\t.stabn 68,0,%d,.LM%d-",                          \
             line, sym_lineno);                                         \
-    assemble_name (file,                                               \
-                  XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\
+    STRIP_NAME_ENCODING (_p, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); \
+    assemble_name (file, _p);                                          \
     fprintf (file, "\n.LM%d:\n", sym_lineno);                          \
     sym_lineno += 1;                                                   \
   }                                                                    \