This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim: add noreturn markings to more hw abort/halt funcs
On Mon, Jan 10, 2011 at 1:00 PM, Doug Evans wrote:
> On Sat, Jan 8, 2011 at 6:14 PM, Mike Frysinger 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.
committed then, thanks !
-mike