Re: [Qemu-devel] [PATCH 1/3] Add support for target helper functions which don't return

2012-03-19 Thread Stefan Weil
Am 19.03.2012 11:45, schrieb Andreas Färber: Am 18.03.2012 23:16, schrieb Stefan Weil: Most functions which handle exceptions don't return. With a compiler attribute (added by QEMU_NORETURN), gcc can optimize the code. Do you have any numbers? Yes, of course: for (;;) { printf("%ld\n", rand

Re: [Qemu-devel] [PATCH 1/3] Add support for target helper functions which don't return

2012-03-19 Thread Andreas Färber
Am 18.03.2012 23:16, schrieb Stefan Weil: > Most functions which handle exceptions don't return. > > With a compiler attribute (added by QEMU_NORETURN), > gcc can optimize the code. Do you have any numbers? > > Signed-off-by: Stefan Weil Seems like a sensible optimization, Reviewed-by: Andre

[Qemu-devel] [PATCH 1/3] Add support for target helper functions which don't return

2012-03-18 Thread Stefan Weil
Most functions which handle exceptions don't return. With a compiler attribute (added by QEMU_NORETURN), gcc can optimize the code. Signed-off-by: Stefan Weil --- def-helper.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/def-helper.h b/def-helper.h index 0e70c3