* profile.c (brnahc_prob): Pass correct value to output_location,
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2004 06:42:31 +0000 (06:42 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2004 06:42:31 +0000 (06:42 +0000)
even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88271 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/profile.c

index 8b803fa..d335cf4 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-28  Per Bothner  <per@bothner.com>
+
+       * profile.c (brnahc_prob):  Pass correct value to output_location,
+       even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
+
 2004-09-28  Richard Henderson  <rth@redhat.com>
 
        PR 15089
index 2bad285..ff85544 100644 (file)
@@ -1004,7 +1004,7 @@ branch_prob (void)
                        {
                          expanded_location s;
                          NOTE_EXPANDED_LOCATION (s, insn);
-                         output_location (s.file, NOTE_LINE_NUMBER (insn), &offset, bb);
+                         output_location (s.file, s.line, &offset, bb);
                        }
                    }
                  insn = NEXT_INSN (insn);