[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:1.9.2.13) 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
> definition of _GL_ATTRIBUTE_NORETURN and _GL_ATTRIBUTE_FORMAT
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.
- [PATCH] stdlib: support non-GCC __attribute__, Paul Eggert, 2011/02/12
- Re: [PATCH] stdlib: support non-GCC __attribute__, Bruno Haible, 2011/02/13
- Re: [PATCH] stdlib: support non-GCC __attribute__, Paul Eggert, 2011/02/13
- Re: [PATCH] stdlib: support non-GCC __attribute__, Bruno Haible, 2011/02/13
- Re: [PATCH] stdlib: support non-GCC __attribute__, Jim Meyering, 2011/02/14
- Re: [PATCH] stdlib: support non-GCC __attribute__, Paul Eggert, 2011/02/14
- Re: [PATCH] stdlib: support non-GCC __attribute__, Bruno Haible, 2011/02/14
- Re: installable stdlib.h, Bruno Haible, 2011/02/13
- Re: installable stdlib.h, Paul Eggert, 2011/02/13