Commit 99d3d26e by Richard Kenner

(RS6000_OUTPUT_BASENAME): Always call assembler_name and pass the

actual symbol name.

From-SVN: r7652
parent 648fb7cf
...@@ -1818,13 +1818,16 @@ toc_section () \ ...@@ -1818,13 +1818,16 @@ toc_section () \
/* This outputs NAME to FILE up to the first null or '['. */ /* This outputs NAME to FILE up to the first null or '['. */
#define RS6000_OUTPUT_BASENAME(FILE, NAME) \ #define RS6000_OUTPUT_BASENAME(FILE, NAME) \
if ((NAME)[0] == '*') \ if ((NAME)[0] == '*' || (NAME)[strlen (NAME) - 1] != ']') \
assemble_name (FILE, NAME); \ assemble_name (FILE, NAME); \
else \ else \
{ \ { \
char *_p; \ int _len = strlen (NAME); \
for (_p = (NAME); *_p && *_p != '['; _p++) \ char *_p = alloca (_len + 1); \
fputc (*_p, FILE); \ \
strcpy (_p, NAME); \
_p[_len - 4] = '\0'; \
assemble_name (FILE, _p); \
} }
/* Output something to declare an external symbol to the assembler. Most /* Output something to declare an external symbol to the assembler. Most
......
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