[PATCH] Move 4 libdwfl nested functions.

2015-09-18 Thread Chih-Hung Hsieh
Now they should compile with clang. Used local variables are passed to new file scope functions as constant parameters, or pointers, or embedded in a 'state' structure. One simple function "report" is changed to a macro. It triggers a gcc false positive -Werror=maybe-uninitialized, so the local v

Re: Difficulties while adding local init_regs support to libebl

2015-09-18 Thread Ben Gamari
Mark Wielaard writes: > Hi Ben, > > I hope you haven't given up on these ideas. I would really like to see > some of them integrated. > Absolutely not! I was merely visiting a client for the last 11 days or so hence the silence. I have a lot of catching up to do but after this I'll be returning t

Re: [PATCH] libdw: Don't reassign result pointer in dwarf_peel_type.

2015-09-18 Thread Mark Wielaard
On Tue, 2015-09-15 at 11:02 +0200, Mark Wielaard wrote: > GCC6 will warn about the reassignement of the nonnull result pointer. > The reassignment is indeed a little questionable. The compiler cannot > see that the pointer will not actually be reassigned since the function > will just return the sa