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

            Bug ID: 106479
           Summary: FAIL: gcc.dg/analyzer/pr104308.c  (test for warnings,
                    line 9)
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa*-*-linux*
            Target: hppa*-*-linux*
             Build: hppa*-*-linux*

Executing on host: /home/dave/gnu/gcc/objdir/gcc/xgcc
-B/home/dave/gnu/gcc/objdi
r/gcc/  /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/analyzer/pr104308.c   
-fdia
gnostics-plain-output   -fanalyzer -Wanalyzer-too-complex
-fanalyzer-call-summar
ies -S -o pr104308.s    (timeout = 300)
spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/xgcc
-B/home/dave/gnu/gcc/obj
dir/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/analyzer/pr104308.c
-fdiagn
ostics-plain-output -fanalyzer -Wanalyzer-too-complex -fanalyzer-call-summaries
-S -o pr104308.s
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/analyzer/pr104308.c: In function
'te
st_memcpy_from_uninit':
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/analyzer/pr104308.c:18:11: warning:
use of uninitialized value '*(unsigned char (*)[5])(&a2[0])' [CWE-457]
[-Wanalyz
er-use-of-uninitialized-value]
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/analyzer/pr104308.c:17:8: note: (1)
region created on stack here
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/analyzer/pr104308.c:18:11: note:
(2)
 use of uninitialized value '*(unsigned char (*)[5])(&a2[0])' here
FAIL: gcc.dg/analyzer/pr104308.c  (test for warnings, line 9)
FAIL: gcc.dg/analyzer/pr104308.c  (test for warnings, line 10)
PASS: gcc.dg/analyzer/pr104308.c  (test for warnings, line 17)
PASS: gcc.dg/analyzer/pr104308.c  (test for warnings, line 18)
PASS: gcc.dg/analyzer/pr104308.c (test for excess errors)

dave@atlas:~/gnu/gcc/objdir/gcc$ ./xgcc -B. -v
Reading specs from ./specs
COLLECT_GCC=./xgcc
COLLECT_LTO_WRAPPER=./lto-wrapper
Target: hppa-linux-gnu
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared
--enable-multiarch --enable-linker-build-id --build=hppa-linux-gnu
--host=hppa-linux-gnu --target=hppa-linux-gnu
--prefix=/home/dave/opt/gnu/gcc/gcc-13 --with-local-prefix=/home/dave/opt/gnu
--enable-threads=posix --enable-__cxa_atexit --build=hppa-linux-gnu
--enable-clocale=gnu --enable-checking=release
--enable-languages=c,c++,d,objc,fortran,obj-c++,ada,lto --without-ppl
--enable-libssp --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.0 20220728 (experimental) [master r13-1220-g7c1c7e120cc] (GCC)

Reply via email to