On Wed, Apr 20, 2011 at 11:22 AM, Cary Coutant <ccout...@google.com> wrote:
>> This caused:
>>
>> http://sourceware.org/bugzilla/show_bug.cgi?id=12689
>
> I've committed the following to fix this. Thanks!
>
> -cary
>
>        PR gold/12689
>        * archive.h (Incremental_archive_entry::Archive_member):
>        Initialize arg_serial_ (second constructor).
>
> Index: archive.h
> ===================================================================
> RCS file: /cvs/src/src/gold/archive.h,v
> retrieving revision 1.35
> diff -u -p -r1.35 archive.h
> --- archive.h   12 Apr 2011 00:44:47 -0000      1.35
> +++ archive.h   20 Apr 2011 18:15:38 -0000
> @@ -51,7 +51,7 @@ struct Archive_member
>       : obj_(NULL), sd_(NULL), arg_serial_(0)
>   { }
>   Archive_member(Object* obj, Read_symbols_data* sd)
> -      : obj_(obj), sd_(sd)
> +      : obj_(obj), sd_(sd), arg_serial_(0)
>   { }
>   // The object file.
>   Object* obj_;
>
This brings out 2 questions.  Why don't GCC 4.4/4.6/4.7 warn it?
Why doesn't 64bit GCC 4.2 warn it?

-- 
H.J.

Reply via email to