Commit bf20f341 by Jim Wilson Committed by Jim Wilson

Fix bug reported by tege. section names wrong if USER_LABEL_PREFIX non-null.

	* dwarf2out.c (stripattributes): Prepend '*' to the section name.

From-SVN: r20529
parent 9c0e94a5
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> Tue Jun 16 16:49:26 1998 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_expand_prologue, alpha_expand_epilogue): New fns. * alpha.c (alpha_expand_prologue, alpha_expand_epilogue): New fns.
......
...@@ -512,17 +512,19 @@ expand_builtin_dwarf_fp_regnum () ...@@ -512,17 +512,19 @@ expand_builtin_dwarf_fp_regnum ()
#endif #endif
/* Return a pointer to a copy of the section string name S with all /* 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 * static inline char *
stripattributes (s) stripattributes (s)
char *s; char *s;
{ {
char *stripped = xstrdup (s); char *stripped = xmalloc (strlen (s) + 2);
char *p = stripped; char *p = stripped;
while (*p && *p != ',') *p++ = '*';
p++;
while (*s && *s != ',')
*p++ = *s++;
*p = '\0'; *p = '\0';
return stripped; return stripped;
......
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