summaryrefslogtreecommitdiffstats
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-09 20:41:49 +0000
committerctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-09 20:41:49 +0000
commit32fb59abe84b4491fb04818d99930a1fcc3d94aa (patch)
treeec3765f0365ed2285df397e3dba04f4164e18760 /gcc/dbxout.c
parent018f5cc25aa2b970849fb0f62a9e144b52f418b5 (diff)
downloadppe42-gcc-32fb59abe84b4491fb04818d99930a1fcc3d94aa.tar.gz
ppe42-gcc-32fb59abe84b4491fb04818d99930a1fcc3d94aa.zip
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
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
{
OpenPOWER on IntegriCloud