Commit 7df74013 by Geoffrey Keating Committed by Geoffrey Keating

varasm.c (named_section): Use xstrdup rather than doing it by hand.

	* varasm.c (named_section): Use xstrdup rather than doing it by
	hand.

From-SVN: r95812
parent 0aca3a61
2005-03-02 Geoffrey Keating <geoffk@apple.com> 2005-03-02 Geoffrey Keating <geoffk@apple.com>
* varasm.c (named_section): Use xstrdup rather than doing it by
hand.
* config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem. * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
2005-03-02 Devang Patel <dpatel@apple.com> 2005-03-02 Devang Patel <dpatel@apple.com>
......
...@@ -455,13 +455,8 @@ named_section (tree decl, const char *name, int reloc) ...@@ -455,13 +455,8 @@ named_section (tree decl, const char *name, int reloc)
if (strcmp (name, UNLIKELY_EXECUTED_TEXT_SECTION_NAME) == 0 if (strcmp (name, UNLIKELY_EXECUTED_TEXT_SECTION_NAME) == 0
&& !unlikely_text_section_name) && !unlikely_text_section_name)
{ unlikely_text_section_name =
unlikely_text_section_name = xmalloc xstrdup (UNLIKELY_EXECUTED_TEXT_SECTION_NAME);
(strlen (UNLIKELY_EXECUTED_TEXT_SECTION_NAME) + 1
* sizeof (char));
strcpy (unlikely_text_section_name,
UNLIKELY_EXECUTED_TEXT_SECTION_NAME);
}
flags = targetm.section_type_flags (decl, name, reloc); flags = targetm.section_type_flags (decl, name, reloc);
......
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