aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2004-09-28 23:42:31 -0700
committerPer Bothner <bothner@gcc.gnu.org>2004-09-28 23:42:31 -0700
commit50fd1c970f533732a7c4e948adbe901f93965ee3 (patch)
tree96fb74aaefca16431f1fb6ad3c3ffb97ed225148 /gcc
parent550f100c572c857db7f7cae4339143b195de6b5a (diff)
downloadgcc-50fd1c970f533732a7c4e948adbe901f93965ee3.zip
gcc-50fd1c970f533732a7c4e948adbe901f93965ee3.tar.gz
gcc-50fd1c970f533732a7c4e948adbe901f93965ee3.tar.bz2
profile.c (brnahc_prob): Pass correct value to output_location, even when USE_MAPPED_LOCATION.
* profile.c (brnahc_prob): Pass correct value to output_location, even when USE_MAPPED_LOCATION. Fixes bug from 09-11. From-SVN: r88271
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/profile.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8b803fa..d335cf4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/profile.c b/gcc/profile.c
index 2bad285..ff85544 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -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);