diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/common.opt | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr69900.c | 6 |
4 files changed, 17 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c77b39..020a1b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> diff --git a/gcc/common.opt b/gcc/common.opt index 3c3669a..bc5b4c4 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d2fd43..f83aa50 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/testsuite/gcc.dg/pr69900.c b/gcc/testsuite/gcc.dg/pr69900.c new file mode 100644 index 0000000..2761d9f --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr69900.c @@ -0,0 +1,6 @@ +/* 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" } */ |