diff options
author | carlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-18 04:16:02 +0000 |
---|---|---|
committer | carlos <carlos@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-18 04:16:02 +0000 |
commit | ff1a5b4a144517181a6839da8af735717e650e6b (patch) | |
tree | f9ff2a74ab033c69aec5e5b176e392bc48d703e4 /gcc/dbxout.c | |
parent | a4b6566aa290c4d7a28e4866b9aa4fed6073f3d9 (diff) | |
download | gcc-ff1a5b4a144517181a6839da8af735717e650e6b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115544 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 07d0bccfb3a..49a32425f90 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -905,7 +905,6 @@ static void dbxout_function_end (tree decl) { char lscope_label_name[100]; - int lscope_labelno = scope_labelno++; /* The Lscope label must be emitted even if we aren't doing anything else; dbxout_block needs it. */ @@ -914,8 +913,8 @@ dbxout_function_end (tree decl) /* Convert Lscope into the appropriate format for local labels in case the system doesn't insert underscores in front of user generated labels. */ - ASM_GENERATE_INTERNAL_LABEL (lscope_label_name, "Lscope", lscope_labelno); - targetm.asm_out.internal_label (asm_out_file, "Lscope", lscope_labelno); + ASM_GENERATE_INTERNAL_LABEL (lscope_label_name, "Lscope", scope_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, which may be undesirable, and is unnecessary if we do not have @@ -941,7 +940,7 @@ dbxout_function_end (tree decl) { char begin_label[20]; /* 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_stab_value_label_diff (lscope_label_name, begin_label); } @@ -1249,6 +1248,9 @@ dbxout_begin_prologue (unsigned int lineno, const char *filename) && !flag_debug_only_used_symbols) dbxout_stabd (N_BNSYM, 0); + /* pre-increment the scope counter */ + scope_labelno++; + dbxout_source_line (lineno, filename); /* Output function begin block at function scope, referenced by dbxout_block, dbxout_source_line and dbxout_function_end. */ |