Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5837)

Issue 4553059: [google] initialize eof_pos

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by xur
Modified:
12 years, 11 months ago
Reviewers:
davidxl
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/main/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M gcc/libgcov.c View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3
xur
Add the initializtion for eof_pos. eof_pos may not be initialized properly when part of gcda ...
12 years, 11 months ago (2011-05-23 21:06:48 UTC) #1
xur
This patch is for google_main only. The bug was introduced in r173806 (only in google_main). ...
12 years, 11 months ago (2011-05-23 21:21:15 UTC) #2
davidxl
12 years, 11 months ago (2011-05-23 21:32:04 UTC) #3
ok for google/main.

David

On Mon, May 23, 2011 at 2:06 PM, Rong Xu <xur@google.com> wrote:
> Add the initializtion for eof_pos. eof_pos may not be initialized properly
> when part of gcda files got merged.
>
> Tested with gcc bootstrap and regression tests.
>
> 2011-05-23  Rong Xu  <xur@google.com>
>
>        * gcc/libgcov.c (gcov_merge_gcda_file): initialize eof_pos for
>        every invocation.
>
> Index: gcc/libgcov.c
> ===================================================================
> --- gcc/libgcov.c       (revision 174088)
> +++ gcc/libgcov.c       (working copy)
> @@ -748,6 +748,8 @@
>   int error = 0;
>   gcov_unsigned_t tag, length;
>
> +  eof_pos = 0;
> +
>   tag = gcov_read_unsigned ();
>   if (tag)
>     {
>
> --
> This patch is available for review at http://codereview.appspot.com/4553059
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b