This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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: [PATCH 2/2] tests: ensure backtrace.c exec_dump sets jmp


Josh Stone <jistone@redhat.com> writes:

> With CFLAGS='-Og -g', F21 gcc hits -Werror=maybe-uninitialized on jmp in
> the call "prepare_thread (pid2, jmp)".  It's fine with -O2/-O0.
>
> The only way this could be unset is if the loop before ran to
> completion, and there's already an assert against this case.

GCC is sort of right in that that assert could in theory be a nop.  It's
not appropirate in the first place, for handling what amounts to user
input, but this is a test case, so who cares.

Looks good to me.

Thanks,
Petr

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