aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1997-05-06 23:29:28 +0000
committerJason Merrill <merrill@gnu.org>1997-05-06 23:29:28 +0000
commit4f988ea21dd64269a2983315eca90f6b8094f774 (patch)
treee281c8c060560b72acb82d852de967fdcfa1e682 /gcc
parentdb3cf6fb33804557ebeae4d9d142ce365826c1ea (diff)
downloadgcc-4f988ea21dd64269a2983315eca90f6b8094f774.zip
gcc-4f988ea21dd64269a2983315eca90f6b8094f774.tar.gz
gcc-4f988ea21dd64269a2983315eca90f6b8094f774.tar.bz2
x
From-SVN: r14025
Diffstat (limited to 'gcc')
-rw-r--r--gcc/dwarf2out.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index d4ed6a4..3012c24 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -166,7 +166,7 @@ static dw_cfi_ref cie_cfi_head;
maximum number of function definitions contained within the current
compilation unit. These numbers are used to create unique label id's
unique to each function definition. */
-static unsigned current_funcdef_number = 1;
+static unsigned current_funcdef_number = 0;
/* Some DWARF extensions (e.g., MIPS/SGI) implement a subprogram
attribute that accelerates the lookup of the FDE associated
@@ -1380,6 +1380,8 @@ dwarf2out_begin_prologue ()
char label[MAX_ARTIFICIAL_LABEL_BYTES];
register dw_fde_ref fde;
+ ++current_funcdef_number;
+
function_section (current_function_decl);
ASM_GENERATE_INTERNAL_LABEL (label, FUNC_BEGIN_LABEL,
current_funcdef_number);
@@ -1421,8 +1423,6 @@ dwarf2out_end_epilogue ()
ASM_OUTPUT_LABEL (asm_out_file, label);
fde = &fde_table[fde_table_in_use - 1];
fde->dw_fde_end = xstrdup (label);
-
- ++current_funcdef_number;
}
void