[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testing for unknown flags in different compilers
From: |
Eric Blake |
Subject: |
Re: Testing for unknown flags in different compilers |
Date: |
Thu, 20 Feb 2014 08:16:31 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
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
signature.asc
Description: OpenPGP digital signature
- Re: Testing for unknown flags in different compilers, David A. Wheeler, 2014/02/19
- Re: Testing for unknown flags in different compilers, David A. Wheeler, 2014/02/20
- Re: Testing for unknown flags in different compilers,
Eric Blake <=
- Re: Testing for unknown flags in different compilers, David A. Wheeler, 2014/02/21
- Re: Testing for unknown flags in different compilers, David A. Wheeler, 2014/02/21
- Re: Testing for unknown flags in different compilers, David A. Wheeler, 2014/02/21