2007-01-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651
* c.opt (Wordered-pointer-comparison): New.
* doc/invoke.texi (Wordered-pointer-comparison): Document it.
(Wextra): Enabled by -Wextra.
(C-only Warning Options): Add it.
* c-opts.c (c_common_handle_option): Enabled by -pedantic.
(c_common_post_options): Enabled by -Wextra.
* c-typeck.c (build_binary_op): Replace pedantic and extra_warnings
by warn_ordered_pointer_comparison.
testsuite/
2007-01-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR middle-end/7651
* gcc.dg/Wordered-pointer-comparison.c: New.
* gcc.dg/Wordered-pointer-comparison-Wextra.c: New.
* gcc.dg/Wordered-pointer-comparison-pedantic.c: New.
* gcc.dg/Wordered-pointer-comparison-no.c: New.