From: Michael Meissner Date: Wed, 24 May 1995 16:52:13 +0000 (+0000) Subject: make compatible with new rs6000 change. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24ba1fb83c578950bb628bb75e335700364ad0a0;p=platform%2Fupstream%2Fgcc.git make compatible with new rs6000 change. From-SVN: r9796 --- diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index d295965..5265764 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -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; \ } \