From df696a75734ea7998d0d5ef75cbafba8be33c908 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 17 Jun 2002 10:47:22 -0700 Subject: function.h (struct function): Rename profile_label_no. * function.h (struct function) [funcdef_no]: Rename profile_label_no. (current_function_funcdef_no): Similarly. * function.c (funcdef_no): Similarly. (prepare_function_start): Set current_function_funcdef_no. (expand_function_start): Don't set current_function_profile_label_no. * dwarf2out.h (current_funcdef_number): Remove. * dwarf2out.c (current_funcdef_number): Remove. Replace with current_function_funcdef_no throughout. * dwarfout.c, vmsdbgout.c: Similarly. * except.c (sjlj_funcdef_number): Remove. (sjlj_emit_function_enter): Use current_function_funcdef_no instead. (output_function_exception_table): Likewise. * final.c (profile_function): Use current_function_funcdef_no instead of current_function_profile_label_no. From-SVN: r54709 --- gcc/vmsdbgout.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'gcc/vmsdbgout.c') diff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c index 5d19c458f45..68e0bb8cea7 100644 --- a/gcc/vmsdbgout.c +++ b/gcc/vmsdbgout.c @@ -123,13 +123,6 @@ static unsigned int line_info_table_in_use; /* Size (in elements) of increments by which we may expand line_info_table. */ #define LINE_INFO_TABLE_INCREMENT 1024 -/* The number of the current function definition for which debugging - information is being generated. These numbers range from 1 up to the - 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 int current_funcdef_number = 0; - /* Forward declarations for functions defined in this file. */ static char *full_name PARAMS ((const char *)); static unsigned int lookup_filename PARAMS ((const char *)); @@ -1290,9 +1283,8 @@ vmsdbgout_begin_prologue (line, file) if (debug_info_level > DINFO_LEVEL_NONE) { - current_funcdef_number++; ASM_GENERATE_INTERNAL_LABEL (label, FUNC_BEGIN_LABEL, - current_funcdef_number); + current_function_funcdef_no); ASM_OUTPUT_LABEL (asm_out_file, label); } } @@ -1308,7 +1300,7 @@ vmsdbgout_after_prologue () if (debug_info_level > DINFO_LEVEL_TERSE) { ASM_GENERATE_INTERNAL_LABEL (label, FUNC_PROLOG_LABEL, - current_funcdef_number); + current_function_funcdef_no); ASM_OUTPUT_LABEL (asm_out_file, label); } } @@ -1330,7 +1322,7 @@ vmsdbgout_end_epilogue () /* Output a label to mark the endpoint of the code generated for this function. */ ASM_GENERATE_INTERNAL_LABEL (label, FUNC_END_LABEL, - current_funcdef_number); + current_function_funcdef_no); ASM_OUTPUT_LABEL (asm_out_file, label); } } -- cgit v1.2.1