Re: Testing for unknown flags in different compilers

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

 



On 02/20/2014 08:12 AM, David A. Wheeler wrote:
> Thomas Jahns:
>> Also this is going to cause all sorts problems for compilers that use -W for
>> something else entirely, for example on PowerPC xlc has
>> -W<program>,<options_list>
>> so simply adding some arbitrary -Wsomecharactersequence might easily cause
>> catastrophic results later on.
> 
> I think that's the whole point of the macro; instead of just adding arbitrary flags,
> it tests to make sure there are *not* catastrophic effects, but instead, that
> the flag is recognized.

Or at least has no observable negative effects even if it is a no-op to
a particular compiler by including the flag.

-- 
Eric Blake   eblake redhat com    +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

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux