It is intended that -Wall over-ride specific flags?
Bruce Korb
bruce.korb@gmail.com
Thu Aug 9 20:57:00 GMT 2012
Hi,
On Thu, Aug 9, 2012 at 1:42 PM, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Thu, 9 Aug 2012, Bruce Korb wrote:
>> This command:
>>
>> gcc -Wno-format-contains-nul -Wall -Werror
>>
>> falls over if a format string contains a nul byte.
>> I think it should not. There needs to be a way for
>
> Indeed. My model for how options should interact in such cases is
> appendix 1 of <http://gcc.gnu.org/ml/gcc/2010-01/msg00063.html>.
Our models agree. My approach would be fairly simple.
if option A implies a setting for option B, then the state of
option B is checked before making a change. If it is unset
from load time, it is changed. Otherwise, the levels of
indirection used to set B are examined. If it is greater than
the levels from A to B, it is modified and the indirection
count from A to B is saved with the setting. A always gets
set with an indirection count of zero.
This would likely be my biggest foray into GCC, so nobody
hold your breath. :)
More information about the Gcc
mailing list