From 50fd1c970f533732a7c4e948adbe901f93965ee3 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Tue, 28 Sep 2004 23:42:31 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/profile.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b803fa8596..d335cf41b3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-28 Per Bothner + + * 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 PR 15089 diff --git a/gcc/profile.c b/gcc/profile.c index 2bad285e1d9..ff85544e595 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); -- 2.30.2