diff options
author | Geoffrey Keating <geoffk@apple.com> | 2004-09-10 19:03:13 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2004-09-10 19:03:13 +0000 |
commit | 375d2edc9f376bd6bb0e102075744664edb0c6c3 (patch) | |
tree | 1e94e6ae42e1b69753445c8709d3b5658b924507 /gcc/dwarf2out.c | |
parent | c383c15f2961771877e363073e38ef371405f0dc (diff) | |
download | gcc-375d2edc9f376bd6bb0e102075744664edb0c6c3.zip gcc-375d2edc9f376bd6bb0e102075744664edb0c6c3.tar.gz gcc-375d2edc9f376bd6bb0e102075744664edb0c6c3.tar.bz2 |
dbxout.c (dbxout_block): Update for current_function_func_begin_label a string.
* dbxout.c (dbxout_block): Update for
current_function_func_begin_label a string.
* dwarf2out.c (dwarf2out_begin_prologue): Likewise.
* except.c (dw2_output_call_site_table): Likewise.
* toplev.c (current_function_func_begin_label): Likewise.
* tree.h (current_function_func_begin_label): Likewise.
* config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
From-SVN: r87317
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8b60c26..25f4b25 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -2334,9 +2334,10 @@ dwarf2out_begin_prologue (unsigned int line ATTRIBUTE_UNUSED, const char *file ATTRIBUTE_UNUSED) { char label[MAX_ARTIFICIAL_LABEL_BYTES]; + char * dup_label; dw_fde_ref fde; - current_function_func_begin_label = 0; + current_function_func_begin_label = NULL; #ifdef TARGET_UNWIND_INFO /* ??? current_function_func_begin_label is also used by except.c @@ -2355,7 +2356,8 @@ dwarf2out_begin_prologue (unsigned int line ATTRIBUTE_UNUSED, current_function_funcdef_no); ASM_OUTPUT_DEBUG_LABEL (asm_out_file, FUNC_BEGIN_LABEL, current_function_funcdef_no); - current_function_func_begin_label = get_identifier (label); + dup_label = xstrdup (label); + current_function_func_begin_label = dup_label; #ifdef TARGET_UNWIND_INFO /* We can elide the fde allocation if we're not emitting debug info. */ @@ -2379,7 +2381,7 @@ dwarf2out_begin_prologue (unsigned int line ATTRIBUTE_UNUSED, /* Add the new FDE at the end of the fde_table. */ fde = &fde_table[fde_table_in_use++]; fde->decl = current_function_decl; - fde->dw_fde_begin = xstrdup (label); + fde->dw_fde_begin = dup_label; fde->dw_fde_current_label = NULL; fde->dw_fde_end = NULL; fde->dw_fde_cfi = NULL; |