From d9a1b402db754aca827f261c1091786dcf6c2305 Mon Sep 17 00:00:00 2001 From: meissner Date: Wed, 24 May 1995 16:52:13 +0000 Subject: [PATCH] make compatible with new rs6000 change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9796 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/rs6000/sysv4.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index d29596503fd..5265764d471 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; \ } \ -- 2.11.4.GIT