bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_C_NORETURN macro?


From: Eric Blake
Subject: Re: AC_C_NORETURN macro?
Date: Wed, 25 Apr 2012 10:24:19 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

[adding bug-gnulib]

On 04/25/2012 09:40 AM, Vincent Lefevre wrote:
> It seems that it is not possible to check whether _Noreturn (C11)
> or noreturn (via C11 #include <stdnoreturn.h>) or something similar
> (e.g. GCC's "__attribute__ ((noreturn))") is supported with a native
> autoconf macro (I think that AC_C_NORETURN would be the best name).
> I haven't found anything about noreturn in the list archive.
> Is there any plan to add such a macro?

Right now, gnulib already has not only such a macro, but also a
<stdnoreturn.h> replacement header that supports this functionality for
generic C11 compilers and older GCC, as well as working around a bug in
MSVC vs. native Windows headers and their use of 'noreturn' in contexts
that are incompatible with C11 usage.  I'm not sure if it is worth
trying to backport the gnulib work into upstream autoconf, or to just
recommend that you use the gnulib solution up front (adding a macro,
without also adding the code that exploits the macro, as gnulib does
with its replacement <stdnoreturn.h> header, makes the macro harder to use).

http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=modules/stdnoreturn

> 
> Note: I'm not subscribed to the autoconf list, please Cc me.

It's list policy to 'reply-all' in the first place.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]