https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78319

--- Comment #11 from prathamesh3492 at gcc dot gnu.org ---
(In reply to amker from comment #10)
> Hi Prathamesh,
> I saw it starting XPASS on arm-none-eabi in test now:
> 
> spawn /.../gcc/xgcc -B/.../gcc/
> /.../gcc/gcc/testsuite/gcc.dg/uninit-pred-8_a.c -fno-diagnostics-show-caret
> -fdiagnostics-color=never -Wuninitialized -O2 -S -o uninit-pred-8_a.s
> /.../gcc/gcc/testsuite/gcc.dg/uninit-pred-8_a.c: In function 'foo_2':
> /.../gcc/gcc/testsuite/gcc.dg/uninit-pred-8_a.c:43:7: warning: 'v' may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> output is:
> /.../gcc/gcc/testsuite/gcc.dg/uninit-pred-8_a.c: In function 'foo_2':
> /.../gcc/gcc/testsuite/gcc.dg/uninit-pred-8_a.c:43:7: warning: 'v' may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> 
> XPASS: gcc.dg/uninit-pred-8_a.c bogus warning (test for bogus messages, line
> 21)
> PASS: gcc.dg/uninit-pred-8_a.c bogus warning (test for bogus messages, line
> 24)
> PASS: gcc.dg/uninit-pred-8_a.c bogus warning (test for bogus messages, line
> 27)
> PASS: gcc.dg/uninit-pred-8_a.c warning (test for warnings, line 43)
> PASS: gcc.dg/uninit-pred-8_a.c (test for excess errors)
> 
> The gcc is configured as:
> /.../gcc/configure --target=arm-none-eabi --prefix=/.../install
> --with-gmp=... --with-mpfr=... --with-mpc=... --with-isl=...
> --with-pkgversion=unknown --disable-shared --disable-nls --disable-threads
> --disable-tls --enable-checking=yes --enable-languages=c,c++ --with-newlib

The test should ideally be XFAIL'd only for cortex-m7 subtarget of
arm-none-eabi.
However I am not sure if that's possible, so XFAIL'd for arm-none-eabi.
With cortex-m7 I am still seeing the XFAIL:

XFAIL: gcc.dg/uninit-pred-8_a.c bogus warning (test for bogus messages, line
21)
PASS: gcc.dg/uninit-pred-8_a.c bogus warning (test for bogus messages, line 24)
PASS: gcc.dg/uninit-pred-8_a.c bogus warning (test for bogus messages, line 27)
PASS: gcc.dg/uninit-pred-8_a.c warning (test for warnings, line 43)
PASS: gcc.dg/uninit-pred-8_a.c (test for excess errors)

Thanks,
Prathamesh

Reply via email to