[PATCH] sim: add noreturn markings to more hw abort/halt funcs

Doug Evans dje@google.com
Mon Jan 10 18:00:00 GMT 2011


On Sat, Jan 8, 2011 at 6:14 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> These functions either call abort() themselves, or call functions which
> are already marked noreturn.  Either way, they don't return, so mark them
> as such so calling code can assume this.  This fixes some uninitialized
> warnings due to code paths that end in an abort function.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
> 2010-01-08  Mike Frysinger  <vapier@gentoo.org>
>
>        * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
>        * sim-hw.h (sim_hw_abort): Likewise.

This is ok.



More information about the Gdb-patches mailing list