summaryrefslogtreecommitdiff
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@gcc.gnu.org>2005-04-09 13:41:49 -0700
commite5e625da47c6215bb0075bfdf7da3a7595d16a32 (patch)
treeec3765f0365ed2285df397e3dba04f4164e18760 /gcc/dbxout.c
parentbd0e28a2adf23055c04afb46a8cda62bc02265b1 (diff)
downloadgcc-e5e625da47c6215bb0075bfdf7da3a7595d16a32.tar.gz
Fix problems with labels with hot/cold partitioning.
From-SVN: r97928
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
{