* dwarf2out.c (stripattributes): Prepend '*' to the section name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20529
138bc75d-0d04-0410-961f-
82ee72b054a4
+Tue Jun 16 18:30:35 1998 Jim Wilson <wilson@cygnus.com>
+
+ * dwarf2out.c (stripattributes): Prepend '*' to the section name.
+
Tue Jun 16 16:49:26 1998 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_expand_prologue, alpha_expand_epilogue): New fns.
#endif
/* Return a pointer to a copy of the section string name S with all
- attributes stripped off. */
+ attributes stripped off, and an asterisk prepended (for assemble_name). */
static inline char *
stripattributes (s)
char *s;
{
- char *stripped = xstrdup (s);
+ char *stripped = xmalloc (strlen (s) + 2);
char *p = stripped;
- while (*p && *p != ',')
- p++;
+ *p++ = '*';
+
+ while (*s && *s != ',')
+ *p++ = *s++;
*p = '\0';
return stripped;