[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 eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf