* common.opt (Wunreachable-code): Add Warning flag.
* gcc.dg/pr69900.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233630
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
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
--- /dev/null
+/* 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" } */