Re: [PATCH] libdw: Enable building with -Og.

2018-11-26 Thread Mark Wielaard
On Fri, 2018-11-23 at 21:08 +0100, Mark Wielaard wrote: > When building with -Og gcc is unable to see that __libdw_dieabbrev () > will initialize what the second argument points to when no error > occurs > as called by dwarf_child and dwarf_getattrs. Causing an possibly > uninitialized error. Just

[PATCH] libdw: Enable building with -Og.

2018-11-23 Thread Mark Wielaard
When building with -Og gcc is unable to see that __libdw_dieabbrev () will initialize what the second argument points to when no error occurs as called by dwarf_child and dwarf_getattrs. Causing an possibly uninitialized error. Just initialize readp/die_addr to NULL, which is the value we would ret