mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 07:29:16 +08:00
c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, [...]): Use EnabledBy.
2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org> c-family/ * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers, Wmissing-field-initializers,Wmissing-parameter-type, Wold-style-declaration,Woverride-init): Use EnabledBy. * c-opts.c (c_common_post_options): Do not set here explicitly. gcc/ * common.opt (Wtype-limits): Use EnabledBy. From-SVN: r187441
This commit is contained in:
parent
daa5129526
commit
9574478218
@ -1,3 +1,7 @@
|
|||||||
|
2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||||
|
|
||||||
|
* common.opt (Wtype-limits): Use EnabledBy.
|
||||||
|
|
||||||
2012-05-13 Uros Bizjak <ubizjak@gmail.com>
|
2012-05-13 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
* config/i386/sse.md (<sse>_andnot<mode>3): Handle
|
* config/i386/sse.md (<sse>_andnot<mode>3): Handle
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||||
|
|
||||||
|
* c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
|
||||||
|
Wmissing-field-initializers,Wmissing-parameter-type,
|
||||||
|
Wold-style-declaration,Woverride-init): Use EnabledBy.
|
||||||
|
* c-opts.c (c_common_post_options): Do not set here explicitly.
|
||||||
|
|
||||||
2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
|
||||||
|
|
||||||
PR 53063
|
PR 53063
|
||||||
|
@ -912,24 +912,10 @@ c_common_post_options (const char **pfilename)
|
|||||||
|
|
||||||
/* -Wextra implies the following flags
|
/* -Wextra implies the following flags
|
||||||
unless explicitly overridden. */
|
unless explicitly overridden. */
|
||||||
if (warn_type_limits == -1)
|
|
||||||
warn_type_limits = extra_warnings;
|
/* Wsign-compare is also enabled by -Wall in C++. */
|
||||||
if (warn_clobbered == -1)
|
|
||||||
warn_clobbered = extra_warnings;
|
|
||||||
if (warn_empty_body == -1)
|
|
||||||
warn_empty_body = extra_warnings;
|
|
||||||
if (warn_sign_compare == -1)
|
if (warn_sign_compare == -1)
|
||||||
warn_sign_compare = extra_warnings;
|
warn_sign_compare = extra_warnings;
|
||||||
if (warn_missing_field_initializers == -1)
|
|
||||||
warn_missing_field_initializers = extra_warnings;
|
|
||||||
if (warn_missing_parameter_type == -1)
|
|
||||||
warn_missing_parameter_type = extra_warnings;
|
|
||||||
if (warn_old_style_declaration == -1)
|
|
||||||
warn_old_style_declaration = extra_warnings;
|
|
||||||
if (warn_override_init == -1)
|
|
||||||
warn_override_init = extra_warnings;
|
|
||||||
if (warn_ignored_qualifiers == -1)
|
|
||||||
warn_ignored_qualifiers = extra_warnings;
|
|
||||||
|
|
||||||
/* -Wpointer-sign is disabled by default, but it is enabled if any
|
/* -Wpointer-sign is disabled by default, but it is enabled if any
|
||||||
of -Wall or -Wpedantic are given. */
|
of -Wall or -Wpedantic are given. */
|
||||||
|
@ -304,7 +304,7 @@ C ObjC C++ ObjC++ Var(warn_char_subscripts) Warning
|
|||||||
Warn about subscripts whose type is \"char\"
|
Warn about subscripts whose type is \"char\"
|
||||||
|
|
||||||
Wclobbered
|
Wclobbered
|
||||||
C ObjC C++ ObjC++ Var(warn_clobbered) Init(-1) Warning
|
C ObjC C++ ObjC++ Var(warn_clobbered) Warning EnabledBy(Wextra)
|
||||||
Warn about variables that might be changed by \"longjmp\" or \"vfork\"
|
Warn about variables that might be changed by \"longjmp\" or \"vfork\"
|
||||||
|
|
||||||
Wcomment
|
Wcomment
|
||||||
@ -352,7 +352,7 @@ C++ ObjC++ Var(warn_ecpp) Warning
|
|||||||
Warn about violations of Effective C++ style rules
|
Warn about violations of Effective C++ style rules
|
||||||
|
|
||||||
Wempty-body
|
Wempty-body
|
||||||
C ObjC C++ ObjC++ Var(warn_empty_body) Init(-1) Warning
|
C ObjC C++ ObjC++ Var(warn_empty_body) Warning EnabledBy(Wextra)
|
||||||
Warn about an empty body in an if or else statement
|
Warn about an empty body in an if or else statement
|
||||||
|
|
||||||
Wendif-labels
|
Wendif-labels
|
||||||
@ -407,7 +407,7 @@ Wformat=
|
|||||||
C ObjC C++ ObjC++ Joined Warning
|
C ObjC C++ ObjC++ Joined Warning
|
||||||
|
|
||||||
Wignored-qualifiers
|
Wignored-qualifiers
|
||||||
C C++ Var(warn_ignored_qualifiers) Init(-1) Warning
|
C C++ Var(warn_ignored_qualifiers) Warning EnabledBy(Wextra)
|
||||||
Warn whenever type qualifiers are ignored.
|
Warn whenever type qualifiers are ignored.
|
||||||
|
|
||||||
Winit-self
|
Winit-self
|
||||||
@ -474,7 +474,7 @@ C ObjC C++ ObjC++ Var(warn_missing_declarations) Warning
|
|||||||
Warn about global functions without previous declarations
|
Warn about global functions without previous declarations
|
||||||
|
|
||||||
Wmissing-field-initializers
|
Wmissing-field-initializers
|
||||||
C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Init(-1) Warning
|
C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Warning EnabledBy(Wextra)
|
||||||
Warn about missing fields in struct initializers
|
Warn about missing fields in struct initializers
|
||||||
|
|
||||||
Wsuggest-attribute=format
|
Wsuggest-attribute=format
|
||||||
@ -490,7 +490,7 @@ C ObjC C++ ObjC++ Warning
|
|||||||
Warn about user-specified include directories that do not exist
|
Warn about user-specified include directories that do not exist
|
||||||
|
|
||||||
Wmissing-parameter-type
|
Wmissing-parameter-type
|
||||||
C ObjC Var(warn_missing_parameter_type) Init(-1) Warning
|
C ObjC Var(warn_missing_parameter_type) Warning EnabledBy(Wextra)
|
||||||
Warn about function parameters declared without a type specifier in K&R-style functions
|
Warn about function parameters declared without a type specifier in K&R-style functions
|
||||||
|
|
||||||
Wmissing-prototypes
|
Wmissing-prototypes
|
||||||
@ -538,7 +538,7 @@ C++ ObjC++ Var(warn_old_style_cast) Warning
|
|||||||
Warn if a C-style cast is used in a program
|
Warn if a C-style cast is used in a program
|
||||||
|
|
||||||
Wold-style-declaration
|
Wold-style-declaration
|
||||||
C ObjC Var(warn_old_style_declaration) Init(-1) Warning
|
C ObjC Var(warn_old_style_declaration) Warning EnabledBy(Wextra)
|
||||||
Warn for obsolescent usage in a declaration
|
Warn for obsolescent usage in a declaration
|
||||||
|
|
||||||
Wold-style-definition
|
Wold-style-definition
|
||||||
@ -554,7 +554,7 @@ C++ ObjC++ Var(warn_overloaded_virtual) Warning
|
|||||||
Warn about overloaded virtual function names
|
Warn about overloaded virtual function names
|
||||||
|
|
||||||
Woverride-init
|
Woverride-init
|
||||||
C ObjC Var(warn_override_init) Init(-1) Warning
|
C ObjC Var(warn_override_init) Warning EnabledBy(Wextra)
|
||||||
Warn about overriding initializers without side effects
|
Warn about overriding initializers without side effects
|
||||||
|
|
||||||
Wpacked-bitfield-compat
|
Wpacked-bitfield-compat
|
||||||
|
@ -646,7 +646,7 @@ Common Var(warn_trampolines) Warning
|
|||||||
Warn whenever a trampoline is generated
|
Warn whenever a trampoline is generated
|
||||||
|
|
||||||
Wtype-limits
|
Wtype-limits
|
||||||
Common Var(warn_type_limits) Init(-1) Warning
|
Common Var(warn_type_limits) Warning EnabledBy(Wextra)
|
||||||
Warn if a comparison is always true or always false due to the limited range of the data type
|
Warn if a comparison is always true or always false due to the limited range of the data type
|
||||||
|
|
||||||
Wuninitialized
|
Wuninitialized
|
||||||
|
Loading…
Reference in New Issue
Block a user