[r11-6232 Regression] FAIL: gcc.dg/pr97750.c (test for warnings, line 17) on Linux/x86_64
Andrew MacLeod
amacleod@redhat.com
Fri Dec 18 22:12:00 GMT 2020
On 12/17/20 1:37 PM, sunil.k.pandey wrote:
> On Linux/x86_64,
>
> c25b504636fec7bf8f181a84af83a52757ba7e89 is the first bad commit
> commit c25b504636fec7bf8f181a84af83a52757ba7e89
> Author: Andrew MacLeod <amacleod@redhat.com>
> Date: Thu Dec 17 09:24:11 2020 -0500
>
> Fix trap in pointer conversion in op1_range.
>
> caused
>
> FAIL: gcc.dg/pr97750.c (test for excess errors)
> FAIL: gcc.dg/pr97750.c (test for warnings, line 17)
>
> with GCC configured with
>
> ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r11-6232/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=gcc.dg/pr97750.c --target_board='unix{-m32}'"
> $ cd {build_dir}/gcc && make check RUNTESTFLAGS="dg.exp=gcc.dg/pr97750.c --target_board='unix{-m32\ -march=cascadelake}'"
>
> (Please do not reply to this email, for question about this report, contact me at skpgkp2 at gmail dot com)
>
For some reason this configuration produces the warning at a different
line number.
Fixed by not checking for the warning.. we really just want to make sure
this compiles to fix the PR.
Pushed.
Andrew
-------------- next part --------------
commit 0e9f2b2dc8df91be27acc383c63f0feae28fa229
Author: Andrew MacLeod <amacleod@redhat.com>
Date: Fri Dec 18 17:05:18 2020 -0500
Re: [r11-6232 Regression] FAIL: gcc.dg/pr97750.c
Adjust testcase to not actually check for an undefined warning since we
don't really care about it, or what line it is issued on.
gcc/testsuite/
* gcc.dg/pr97750.c: Remove check for warning.
diff --git a/gcc/testsuite/gcc.dg/pr97750.c b/gcc/testsuite/gcc.dg/pr97750.c
index 822b53abcff..90c3dc26852 100644
--- a/gcc/testsuite/gcc.dg/pr97750.c
+++ b/gcc/testsuite/gcc.dg/pr97750.c
@@ -14,8 +14,8 @@ void CopyFromUswc(long src_pitch) {
for (; CopyFromUswc_height;) {
unsigned unaligned = (long)CopyFromUswc_src;
if (unaligned)
- CopyPlane(&dst[unaligned]); /* { dg-warning "may be used uninitialized" } */
+ CopyPlane(&dst[unaligned]);
CopyFromUswc_src += src_pitch;
}
}
-
+/* { dg-prune-output "-Wmaybe-uninitialized" } */
More information about the Gcc-regression
mailing list