[Top][All Lists]

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

Re: [PATCH] stdlib: support non-GCC __attribute__

From: Paul Eggert
Subject: Re: [PATCH] stdlib: support non-GCC __attribute__
Date: Sun, 13 Feb 2011 12:45:30 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101208 Thunderbird/3.1.7

On 02/13/2011 03:34 AM, Bruno Haible wrote:
> it could be useful for applications to override gnulib's

While that might be useful, there's a downside to it too.
With the current approach, if a program includes two gnulib-supplied
headers (stdin.h and stdlib.h, say), and if these headers due to
some versioning screwup define _GL_ATTRIBUTE_NORETURN differently,
a C compiler is required to diagnose the screwup.  With the proposed
approach, the earlier header (whatever it happened to be) would
silently win.

As the current approach is simpler, it may be better to stick
with it until we find a real need for applications to
override these macros.

reply via email to

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