[Top][All Lists]

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

Re: AC_C_NORETURN macro?

From: Vincent Lefevre
Subject: Re: AC_C_NORETURN macro?
Date: Fri, 27 Apr 2012 17:06:44 +0200
User-agent: Mutt/1.5.21-6201-vl-r48020 (2011-12-20)

On 2012-04-26 12:08:50 -0400, Nick Bowler wrote:
> On 2012-04-26 17:56 +0200, Vincent Lefevre wrote:
> > But I think that <stdnoreturn.h> is not a solution for MPFR, due to
> > the potential clashes with GMP (on which we depend), which uses GCC's
> > __attribute__ ((noreturn)). Though this may be fixed in the future,
> > problems would still appear with older versions. Thus we should use
> > _Noreturn directly, when supported.
> Another alternative is to simply make sure that you always include the
> GMP headers before including <stdnoreturn.h>.

Perhaps. But GMP requires some standard headers, like <stdio.h>
to be included before in order to use some functions. With all
constraints like that, this makes things less maintainable. And
there may be buggy C implementations, where some headers may
include other ones without enough guards. I've already seen that.

Vincent Lefèvre <address@hidden> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

reply via email to

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