Commit e098f3a5 by Carlos O'Donell Committed by Carlos O'Donell

dbxout.c (dbxout_function_end): Do not increment scope_labelno.


2006-07-17  Carlos O'Donell  <carlos@codesourcery.com>

	* dbxout.c (dbxout_function_end): Do not increment scope_labelno.
	(dbxout_begin_prologue): Increment scope_labelno.

From-SVN: r115544
parent 8bcbc000
2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
* dbxout.c (dbxout_function_end): Do not increment scope_labelno.
(dbxout_begin_prologue): Increment scope_labelno.
2006-07-17 Richard Henderson <rth@redhat.com> 2006-07-17 Richard Henderson <rth@redhat.com>
PR 27889 PR 27889
......
...@@ -905,7 +905,6 @@ static void ...@@ -905,7 +905,6 @@ static void
dbxout_function_end (tree decl) dbxout_function_end (tree decl)
{ {
char lscope_label_name[100]; char lscope_label_name[100];
int lscope_labelno = scope_labelno++;
/* The Lscope label must be emitted even if we aren't doing anything /* The Lscope label must be emitted even if we aren't doing anything
else; dbxout_block needs it. */ else; dbxout_block needs it. */
...@@ -914,8 +913,8 @@ dbxout_function_end (tree decl) ...@@ -914,8 +913,8 @@ dbxout_function_end (tree decl)
/* Convert Lscope into the appropriate format for local labels in case /* Convert Lscope into the appropriate format for local labels in case
the system doesn't insert underscores in front of user generated the system doesn't insert underscores in front of user generated
labels. */ labels. */
ASM_GENERATE_INTERNAL_LABEL (lscope_label_name, "Lscope", lscope_labelno); ASM_GENERATE_INTERNAL_LABEL (lscope_label_name, "Lscope", scope_labelno);
targetm.asm_out.internal_label (asm_out_file, "Lscope", lscope_labelno); targetm.asm_out.internal_label (asm_out_file, "Lscope", scope_labelno);
/* The N_FUN tag at the end of the function is a GNU extension, /* The N_FUN tag at the end of the function is a GNU extension,
which may be undesirable, and is unnecessary if we do not have which may be undesirable, and is unnecessary if we do not have
...@@ -941,7 +940,7 @@ dbxout_function_end (tree decl) ...@@ -941,7 +940,7 @@ dbxout_function_end (tree decl)
{ {
char begin_label[20]; char begin_label[20];
/* Reference current function start using LFBB. */ /* Reference current function start using LFBB. */
ASM_GENERATE_INTERNAL_LABEL (begin_label, "LFBB", lscope_labelno); ASM_GENERATE_INTERNAL_LABEL (begin_label, "LFBB", scope_labelno);
dbxout_begin_empty_stabs (N_FUN); dbxout_begin_empty_stabs (N_FUN);
dbxout_stab_value_label_diff (lscope_label_name, begin_label); dbxout_stab_value_label_diff (lscope_label_name, begin_label);
} }
...@@ -1249,6 +1248,9 @@ dbxout_begin_prologue (unsigned int lineno, const char *filename) ...@@ -1249,6 +1248,9 @@ dbxout_begin_prologue (unsigned int lineno, const char *filename)
&& !flag_debug_only_used_symbols) && !flag_debug_only_used_symbols)
dbxout_stabd (N_BNSYM, 0); dbxout_stabd (N_BNSYM, 0);
/* pre-increment the scope counter */
scope_labelno++;
dbxout_source_line (lineno, filename); dbxout_source_line (lineno, filename);
/* Output function begin block at function scope, referenced /* Output function begin block at function scope, referenced
by dbxout_block, dbxout_source_line and dbxout_function_end. */ by dbxout_block, dbxout_source_line and dbxout_function_end. */
......
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