Commit f1a62b6f by Jakub Jelinek Committed by Jakub Jelinek

re PR c/69900 (Unhelpful diagnostic about Ignored options)

	PR c/69900
	* common.opt (Wunreachable-code): Add Warning flag.

	* gcc.dg/pr69900.c: New test.

From-SVN: r233630
parent 261e741f
2016-02-23 Jakub Jelinek <jakub@redhat.com>
PR c/69900
* common.opt (Wunreachable-code): Add Warning flag.
2016-02-23 Mark Wielaard <mjw@redhat.com>
Jakub Jelinek <jakub@redhat.com>
......
......@@ -728,7 +728,7 @@ Common Var(warn_maybe_uninitialized) Warning EnabledBy(Wuninitialized)
Warn about maybe uninitialized automatic variables.
Wunreachable-code
Common Ignore
Common Ignore Warning
Does nothing. Preserved for backward compatibility.
Wunused
......
2016-02-23 Jakub Jelinek <jakub@redhat.com>
PR c/69900
* gcc.dg/pr69900.c: New test.
2016-02-23 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/69666
......
/* PR c/69900 */
/* { dg-do compile } */
#pragma GCC diagnostic error "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */
#pragma GCC diagnostic warning "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */
#pragma GCC diagnostic ignored "-Wunreachable-code" /* { dg-bogus "is not an option that controls warnings" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment