OSDN Git Service

2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Feb 2008 23:41:43 +0000 (23:41 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Feb 2008 23:41:43 +0000 (23:41 +0000)
commitddb48b8291f05bf65f23be0e77b2a23dbf4ce4a4
tree3c64cf898a8a27198eb86ae7840a3237d55c24f0
parent7ecd92995a8b9d89a35238f53fce09d884c72bb7
2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 28322
* toplev.c (toplev_main): If there are warnings or error, print
errors for ignored options.
* opts.c (ignored_options): New static variable.
(postpone_unknown_option_error): New.
(print_ignored_options): New.
(handle_option): Postpone errors for unknown -Wno-* options.
* opts.h (print_ignored_options): Declare.
testsuite/
* gcc.dg/pr28322.c: New.
* gcc.dg/pr28322-2.c: New.
* lib/prune.exp: Ignore "At top level" even if there is no ':'
preceding it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132648 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr28322-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr28322.c [new file with mode: 0644]
gcc/testsuite/lib/prune.exp
gcc/toplev.c