bug-gnulib
[Top][All Lists]
Advanced

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

Re: GL_LINK_WARNING


From: Simon Josefsson
Subject: Re: GL_LINK_WARNING
Date: Tue, 15 Dec 2009 22:02:47 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Eric Blake <address@hidden> writes:

> Eric Blake <ebb9 <at> byu.net> writes:
>
>> 
>> So, what should I do?  Options:
>> 1. Check in the patches below as-is
>> 2. Ditch this series, and instead go and change all uses of 
>> GNULIB_POSIXCHECK 
>> that used
>>  #define func(args) (GL_LINK_WARNING("..."),func(args))
>> to instead use
>>  #define func (GL_LINK_WARNING("..."),func)
>> 3. Like 2, but also check in the new va-args module (others might have a use 
>> for it, even though it would be unused in gnulib at this point)
>
> Another thing to consider.  Why are we even bothering with a link warning, 
> which only works for ELF, when gcc provides a more generic solution that will 
> also work for Cygwin and other non-ELF platforms?

Because gcc is not the only supported compiler?

However, looking at link-warning.h, it seems it only works when the
system uses GNU LD _and_ ELF.  So I'm not sure link-warning.h provides
anything substantial that a Gcc-specific solution wouldn't.  Are there
popular environments that use GNU LD but not Gcc?  Adding support for
cygwin would be useful though.

/Simon




reply via email to

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