aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2005-04-09 20:41:49 +0000
committerCaroline Tice <ctice@apple.com>2005-04-09 20:41:49 +0000
commit8bfdb4bd39859b08dce3156f2e599410785e4278 (patch)
treeec3765f0365ed2285df397e3dba04f4164e18760 /gcc/dbxout.c
parentfe2c20f8e4182770b57f2b47e072d713eb9adb18 (diff)
Fix problems with labels with hot/cold partitioning.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@97928 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c9
1 files changed, 6 insertions, 3 deletions
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
{