Commit 44ef77c1 by Eric Christopher

darwin.c (darwin_emit_unwind_label): Strip name encoding.

2006-10-13  Eric Christopher  <echristo@apple.com>

        * config/darwin.c (darwin_emit_unwind_label): Strip
        name encoding. Use DECL_ASSEMBLER_NAME_SET_P.

From-SVN: r117708
parent 96644aba
2006-10-13 Eric Christopher <echristo@apple.com>
* config/darwin.c (darwin_emit_unwind_label): Strip
name encoding. Use DECL_ASSEMBLER_NAME_SET_P.
2006-10-13 Richard Guenther <rguenther@suse.de> 2006-10-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/29446 PR tree-optimization/29446
......
...@@ -1338,14 +1338,17 @@ no_dead_strip (FILE *file, const char *lab) ...@@ -1338,14 +1338,17 @@ no_dead_strip (FILE *file, const char *lab)
void void
darwin_emit_unwind_label (FILE *file, tree decl, int for_eh, int empty) darwin_emit_unwind_label (FILE *file, tree decl, int for_eh, int empty)
{ {
tree id = DECL_ASSEMBLER_NAME (decl) const char *base;
? DECL_ASSEMBLER_NAME (decl) char *lab;
: DECL_NAME (decl); bool need_quotes;
const char *base = IDENTIFIER_POINTER (id); if (DECL_ASSEMBLER_NAME_SET_P (decl))
base = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
else
base = IDENTIFIER_POINTER (DECL_NAME (decl));
bool need_quotes = name_needs_quotes (base); base = targetm.strip_name_encoding (base);
char *lab; need_quotes = name_needs_quotes (base);
if (! for_eh) if (! for_eh)
return; return;
......
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