* Re: [r11-4813 Regression] FAIL: c-c++-common/Wimplicit-fallthrough-20.c -std=gnu++98 (test for warnings, line 36) on Linux/x86_64
@ 2020-11-07 21:26 Uecker, Martin
0 siblings, 0 replies; 3+ messages in thread
From: Uecker, Martin @ 2020-11-07 21:26 UTC (permalink / raw)
To: polacek; +Cc: gcc-patches
Thanks, Marek!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [r11-4813 Regression] FAIL: c-c++-common/Wimplicit-fallthrough-20.c -std=gnu++98 (test for warnings, line 36) on Linux/x86_64
2020-11-07 18:15 sunil.k.pandey
@ 2020-11-07 18:31 ` Marek Polacek
0 siblings, 0 replies; 3+ messages in thread
From: Marek Polacek @ 2020-11-07 18:31 UTC (permalink / raw)
To: sunil.k.pandey; +Cc: gcc-patches, gcc-regression, muecker
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 <muecker@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [r11-4813 Regression] FAIL: c-c++-common/Wimplicit-fallthrough-20.c -std=gnu++98 (test for warnings, line 36) on Linux/x86_64
@ 2020-11-07 18:15 sunil.k.pandey
2020-11-07 18:31 ` Marek Polacek
0 siblings, 1 reply; 3+ messages in thread
From: sunil.k.pandey @ 2020-11-07 18:15 UTC (permalink / raw)
To: gcc-patches, gcc-regression, muecker
On Linux/x86_64,
8b7a9a249a63e066cff6e95db05a3158b4cc56cc is the first bad commit
commit 8b7a9a249a63e066cff6e95db05a3158b4cc56cc
Author: Martin Uecker <muecker@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)
with GCC configured with
../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r11-4813/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstrap
To reproduce:
$ cd {build_dir}/gcc && make check RUNTESTFLAGS="dg.exp=c-c++-common/Wimplicit-fallthrough-20.c --target_board='unix{-m32}'"
$ cd {build_dir}/gcc && make check RUNTESTFLAGS="dg.exp=c-c++-common/Wimplicit-fallthrough-20.c --target_board='unix{-m32\ -march=cascadelake}'"
$ cd {build_dir}/gcc && make check RUNTESTFLAGS="dg.exp=c-c++-common/Wimplicit-fallthrough-20.c --target_board='unix{-m64}'"
$ cd {build_dir}/gcc && make check RUNTESTFLAGS="dg.exp=c-c++-common/Wimplicit-fallthrough-20.c --target_board='unix{-m64\ -march=cascadelake}'"
(Please do not reply to this email, for question about this report, contact me at skpgkp2 at gmail dot com)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-07 21:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-07 21:26 [r11-4813 Regression] FAIL: c-c++-common/Wimplicit-fallthrough-20.c -std=gnu++98 (test for warnings, line 36) on Linux/x86_64 Uecker, Martin
-- strict thread matches above, loose matches on Subject: below --
2020-11-07 18:15 sunil.k.pandey
2020-11-07 18:31 ` Marek Polacek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).