[pushed] Re: gdb fails to compile with GCC 4.4.7 (was: [PATCH V4 5/9] New probe type: DTrace USDT probes.)
H.J. Lu
hjl.tools@gmail.com
Fri Mar 27 16:58:00 GMT 2015
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.
More information about the Binutils
mailing list