This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [pushed] Re: gdb fails to compile with GCC 4.4.7 (was: [PATCH V4 5/9] New probe type: DTrace USDT probes.)
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Joel Brobecker <brobecker at adacore dot com>, Binutils <binutils at sourceware dot org>
- Cc: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>, GDB <gdb-patches at sourceware dot org>
- Date: Fri, 27 Mar 2015 09:58:47 -0700
- Subject: Re: [pushed] Re: gdb fails to compile with GCC 4.4.7 (was: [PATCH V4 5/9] New probe type: DTrace USDT probes.)
- Authentication-results: sourceware.org; auth=none
- References: <20150326210014 dot GC13867 at adacore dot com> <20150327094653 dot GA29713 at physik dot fu-berlin dot de> <20150327134252 dot GD13867 at adacore dot com> <20150327151754 dot GA21801 at physik dot fu-berlin dot de> <20150327152704 dot GE13867 at adacore dot com>
On Fri, Mar 27, 2015 at 8:27 AM, Joel Brobecker <brobecker@adacore.com> wrote:
>> > Would you mind checking that the attached patch fixes the problem?
>>
>> Yes, it now also compiles with GCC 4.4. Thanks for the fix!
>>
>> Tobias
>>
>> > * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
>
> Excellent, thanks for reporting the problem and checking the fix
> for me. Patch is now in.
FWIW, there are other similar places in binutils-gdb tree:
https://sourceware.org/ml/binutils/2015-03/msg00368.html
I suggested a macro, like
#define SILENCE_UNIITITALIZED_WARNING(var) ....
and do
struct bfd_link_hash_entry SILENCE_UNIITITALIZED_WARNING (ehdr_start_save);
--
H.J.