This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pushed] Re: gdb fails to compile with GCC 4.4.7 (was: [PATCH V4 5/9] New probe type: DTrace USDT probes.)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]