aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/final.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2566a78..766b4c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2002-04-04 Jakub Jelinek <jakub@redhat.com>
+ PR c++/6119
+ * final.c (final_start_function): Don't bump profile_label_no here...
+ (final_end_function): ...but here.
+
+2002-04-04 Jakub Jelinek <jakub@redhat.com>
+
* config/sparc/sparc.md (pic): New attribute.
(do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
into stack slots.
diff --git a/gcc/final.c b/gcc/final.c
index 4992ced..7d33beb 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1564,8 +1564,6 @@ final_start_function (first, file, optimize)
if (! HAVE_prologue)
#endif
profile_after_prologue (file);
-
- profile_label_no++;
}
static void
@@ -1677,6 +1675,8 @@ final_end_function ()
&& dwarf2out_do_frame ())
dwarf2out_end_epilogue ();
#endif
+
+ profile_label_no++;
}
/* Output assembler code for some insns: all or part of a function.