re PR other/28322 (GCC new warnings and compatibility)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 25 Feb 2008 23:41:43 +0000 (23:41 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 25 Feb 2008 23:41:43 +0000 (23:41 +0000)
commit369dcbd9d2f7d4577f689b46ee3028bc7949049c
tree3c64cf898a8a27198eb86ae7840a3237d55c24f0
parent23dc794c0e7bb0d82dbbe118a435d17c31af6732
re PR other/28322 (GCC new warnings and compatibility)

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.

From-SVN: r132648
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