[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: manywarnings and -f options
From: |
Eric Blake |
Subject: |
Re: manywarnings and -f options |
Date: |
Fri, 02 Dec 2011 11:08:29 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 |
On 12/02/2011 11:05 AM, Eric Blake wrote:
> Should gl_MANYWARN_ALL_GCC be adding some gcc -f options? For example,
> at least gcc 4.3.4 -Wdisabled-optimization would emit a warning that
> several other -W warnings are useless without -funit-at-a-time also in
> place (see coreutils commit 5e361387d). Also, according to 'info gcc,
> -Wsuggest-attribute=pure only works if -fipa-pure-const is turned on
> (true by default for -O compilation, but apparently the -W option can
> also catch a few cases even without -O if -fipa-pure-const is manually
> turned on).
I also meant to add that -fdiagnostics-show-option is a must for
determining which warnings are firing, when deciding which warnings to
avoid. Having these -f options added by default instead of making each
client add them would make maintenance easier.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature