diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b803fa8596c..d335cf41b3ec 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 2bad285e1d96..ff85544e595d 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);