[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute |
Date: |
Sun, 30 Nov 2008 12:51:19 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.17 (X11/20081018) |
Avi Kivity schrieb:
> Jan Kiszka wrote:
>>> Breaking the standard is what brings us the joys of recently (re)posted
>>> patch for NetBSD and [u]intXX fun.
>>>
>>
>> I have no problem with calling it 'noreturn' instead.
>>
>
> That will break code that wants to use 'noreturn' as a local
> variable. I think ATTR_NORETURN, while a lot uglier, is safer.
>
>
>
Why do we need a new macro instead of just using __attribute__
((__noreturn__))?
The macro won't save very much writing, needs an include dependency, breaks
code which uses the same symbol for other purposes, makes code reusage
in other
products more difficult, ...
Stefan
- [Qemu-devel] [PATCH 2/2] Add __noreturn function attribute, Jan Kiszka, 2008/11/28
- Re: [Qemu-devel] [PATCH 2/2] Add __noreturn function attribute, malc, 2008/11/28
- [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Jan Kiszka, 2008/11/28
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Thiemo Seufer, 2008/11/28
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Avi Kivity, 2008/11/30
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute,
Stefan Weil <=
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Laurent Desnogues, 2008/11/30
- [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Jan Kiszka, 2008/11/30
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Stefan Weil, 2008/11/30
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Andreas Färber, 2008/11/30
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, M. Warner Losh, 2008/11/30
- [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Jan Kiszka, 2008/11/30
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Thiemo Seufer, 2008/11/30
- Re: [Qemu-devel] Re: [PATCH 2/2] Add __noreturn function attribute, Jan Kiszka, 2008/11/30