2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 28322
* opts.c (handle_option): Postpone 'unknown option' errors only for
warning options.
testsuite/
* gcc.dg/pr28322-3.c: New.
From-SVN: r132870
+2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ PR 28322
+ * opts.c (handle_option): Postpone 'unknown option' errors only for
+ warning options.
+
2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
PR target/35453
opt = dup;
value = 0;
opt_index = find_opt (opt + 1, lang_mask | CL_COMMON | CL_TARGET);
- if (opt_index == cl_options_count)
+ if (opt_index == cl_options_count && opt[1] == 'W')
{
/* We don't generate errors for unknown -Wno-* options
unless we issue diagnostics. */
+2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ PR 28322
+ * gcc.dg/pr28322-3.c: New.
+
2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
PR target/35453
--- /dev/null
+/* PR28322: ignore unknown -Wno-* if no warning is emitted. */
+/* { dg-do compile } */
+/* { dg-options " -fno-foobar -mno-foobar" } */
+
+void foo(void)
+{
+ int i = 1;
+}
+/* { dg-message "unrecognized command line option .-fno-foobar." "" { target *-*-* } 0 } */
+/* { dg-message "unrecognized command line option .-mno-foobar." "" { target *-*-* } 0 } */