Commit 24ba1fb8 by Michael Meissner

make compatible with new rs6000 change.

From-SVN: r9796
parent 938937d8
...@@ -302,6 +302,13 @@ extern int rs6000_pic_labelno; ...@@ -302,6 +302,13 @@ extern int rs6000_pic_labelno;
#define DBX_DEBUGGING_INFO #define DBX_DEBUGGING_INFO
#define DWARF_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 /* Like block addresses, stabs line numbers are relative to the
current function. */ current function. */
...@@ -310,10 +317,11 @@ extern int rs6000_pic_labelno; ...@@ -310,10 +317,11 @@ extern int rs6000_pic_labelno;
do \ do \
{ \ { \
static int sym_lineno = 1; \ static int sym_lineno = 1; \
char *_p; \
fprintf (file, "\t.stabn 68,0,%d,.LM%d-", \ fprintf (file, "\t.stabn 68,0,%d,.LM%d-", \
line, sym_lineno); \ line, sym_lineno); \
assemble_name (file, \ STRIP_NAME_ENCODING (_p, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); \
XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\ assemble_name (file, _p); \
fprintf (file, "\n.LM%d:\n", sym_lineno); \ fprintf (file, "\n.LM%d:\n", sym_lineno); \
sym_lineno += 1; \ sym_lineno += 1; \
} \ } \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment