]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/6119 (sparc-sun-solaris2.7 gcc-3.1 extra g++ testsuite failure w/-fpic...
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Apr 2002 21:04:09 +0000 (23:04 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 4 Apr 2002 21:04:09 +0000 (23:04 +0200)
PR c++/6119
* final.c (final_start_function): Don't bump profile_label_no here...
(final_end_function): ...but here.

From-SVN: r51872

gcc/ChangeLog
gcc/final.c

index 2566a78a80c48ecb7ce3ca98e111f875ad855187..766b4c765247a34cf003d730268e2e598d03f819 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 4992cedaeb63ddb3e8aa139d41460b23a49cc362..7d33bebc97b646a94ccdabda80ed41429155fa53 100644 (file)
@@ -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++;
 }
 \f
 /* Output assembler code for some insns: all or part of a function.