On Sat, Nov 07, 2020 at 10:15:14AM -0800, sunil.k.pandey via Gcc-patches wrote:
> On Linux/x86_64,
> 
> 8b7a9a249a63e066cff6e95db05a3158b4cc56cc is the first bad commit
> commit 8b7a9a249a63e066cff6e95db05a3158b4cc56cc
> Author: Martin Uecker <muec...@gwdg.de>
> Date:   Sat Nov 7 00:48:33 2020 +0100
> 
>     C Parser: Implement mixing of labels and code.
> 
> caused
> 
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++14 (test for excess 
> errors)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++14  (test for 
> warnings, line 30)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++14  (test for 
> warnings, line 32)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++14  (test for 
> warnings, line 36)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++17 (test for excess 
> errors)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++17  (test for 
> warnings, line 30)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++17  (test for 
> warnings, line 32)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++17  (test for 
> warnings, line 36)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++2a (test for excess 
> errors)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++2a  (test for 
> warnings, line 30)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++2a  (test for 
> warnings, line 32)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++2a  (test for 
> warnings, line 36)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++98 (test for excess 
> errors)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++98  (test for 
> warnings, line 30)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++98  (test for 
> warnings, line 32)
> FAIL: c-c++-common/Wimplicit-fallthrough-20.c  -std=gnu++98  (test for 
> warnings, line 36)

Fixed:

-- >8 --
The r11-4813 patch removed "ignored" from the dg-warnings in this test,
causing this test to fail when compiled as C++.

Tested x86_64-pc-linux-gnu, applying to trunk.

gcc/testsuite/ChangeLog:

        * c-c++-common/Wimplicit-fallthrough-20.c: Adjust dg-warning.
---
 gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c 
b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c
index 810c331b19a..bc0cd0fe580 100644
--- a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c
+++ b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c
@@ -27,13 +27,13 @@ g (int i)
   switch (i)
     {
     case -1:
-      __attribute__((used)); /* { dg-warning "empty declaration" } */
+      __attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
     default:
-      __attribute__((used)); /* { dg-warning "empty declaration" } */
+      __attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
     case 1:
       return 6;
     case 2 ... 4:
-      __attribute__((used)); /* { dg-warning "empty declaration" } */
+      __attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
     case 5:
       return 7;
     }

base-commit: 497c9f8d4dd0252f2e0dd5bf0f1cb29e187525ee
-- 
2.28.0

Reply via email to