From 32fb59abe84b4491fb04818d99930a1fcc3d94aa Mon Sep 17 00:00:00 2001 From: ctice Date: Sat, 9 Apr 2005 20:41:49 +0000 Subject: Fix problems with labels with hot/cold partitioning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97928 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/dbxout.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/dbxout.c') diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c645edbeec2..33bbd716b17 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -938,11 +938,14 @@ dbxout_function_end (tree decl) #else if (flag_reorder_blocks_and_partition) { + struct function *cfun = DECL_STRUCT_FUNCTION (decl); + dbxout_begin_empty_stabs (N_FUN); - dbxout_stab_value_label_diff (hot_section_end_label, hot_section_label); + dbxout_stab_value_label_diff (cfun->hot_section_end_label, + cfun->hot_section_label); dbxout_begin_empty_stabs (N_FUN); - dbxout_stab_value_label_diff (cold_section_end_label, - unlikely_section_label); + dbxout_stab_value_label_diff (cfun->cold_section_end_label, + cfun->cold_section_label); } else { -- cgit v1.2.1