Commit 9a3873b4 by Steve Ellcey Committed by Steve Ellcey

ia64.c (ia64_hpux_asm_file_end): Don't send stripped name to globalize_label or assemble_name.

	* config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
	name to globalize_label or assemble_name.

From-SVN: r60046
parent 9a4816af
2002-12-09 Steve Ellcey <sje@cup.hp.com>
* config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
name to globalize_label or assemble_name.
Wed Dec 11 20:15:19 2002 J"orn Rennecke <joern.rennecke@superh.com> Wed Dec 11 20:15:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
* sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS * sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS
......
...@@ -8141,16 +8141,19 @@ ia64_hpux_asm_file_end (file) ...@@ -8141,16 +8141,19 @@ ia64_hpux_asm_file_end (file)
{ {
while (extern_func_head) while (extern_func_head)
{ {
const char *const real_name = char *real_name;
(* targetm.strip_name_encoding) (extern_func_head->name); tree decl;
tree decl = get_identifier (real_name);
if (decl && ! TREE_ASM_WRITTEN (decl) && TREE_SYMBOL_REFERENCED (decl)) real_name = (* targetm.strip_name_encoding) (extern_func_head->name);
tree decl = maybe_get_identifier (real_name);
if (!decl || ! TREE_ASM_WRITTEN (decl) && TREE_SYMBOL_REFERENCED (decl))
{ {
TREE_ASM_WRITTEN (decl) = 1; if (decl)
(*targetm.asm_out.globalize_label) (file, real_name); TREE_ASM_WRITTEN (decl) = 1;
(*targetm.asm_out.globalize_label) (file, extern_func_head->name);
fprintf (file, "%s", TYPE_ASM_OP); fprintf (file, "%s", TYPE_ASM_OP);
assemble_name (file, real_name); assemble_name (file, extern_func_head->name);
putc (',', file); putc (',', file);
fprintf (file, TYPE_OPERAND_FMT, "function"); fprintf (file, TYPE_OPERAND_FMT, "function");
putc ('\n', file); putc ('\n', file);
......
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