Bug 108334 - Strange message in libgav1
Summary: Strange message in libgav1
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 13.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic, needs-reduction
Depends on:
Blocks: Wstringop-overflow
  Show dependency treegraph
 
Reported: 2023-01-08 07:55 UTC by Jamaika
Modified: 2023-01-11 20:06 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2023-01-11 00:00:00


Attachments
preprocessed source (24.87 KB, application/octet-stream)
2023-01-08 10:27 UTC, Jamaika
Details
Added zip files (371.17 KB, application/octet-stream)
2023-01-11 15:28 UTC, Jamaika
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jamaika 2023-01-08 07:55:54 UTC
Strange message
In GCC version 20221124 this message wasn't there.

Using built-in specs.
COLLECT_GCC=g++.exe
Target: x86_64-w64-mingw32
Configured with: /home/ma/m/source/gcc-g/configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-nls --enable-languages=c,c++,objc,obj-c++ --with-gmp=/home/ma/m/build/for_target --with-mpfr=/home/ma/m/build/for_target --with-mpc=/home/ma/m/build/for_target --with-isl=/home/ma/m/build/for_target --enable-twoprocess --disable-libstdcxx-pch --disable-win32-registry --disable-shared --enable-fully-dynamic-string --enable-libssp --prefix=/home/ma/m/target --with-sysroot=/home/ma/m/target
Thread model: win32
Supported LTO compression algorithms: zlib
gcc version 13.0.0 20221229 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-std=gnu++11' '-march=x86-64-v2' '-ftree-vectorize' '-g0' '-O3' '-fPIC' '-mavx' '-mxsave' '-mpclmul' '-maes' '-D' 'WINVER=0x0602' '-D' '_WIN32_WINNT=0x0602' '-D' 'WIN32_LEAN_AND_MEAN=//' '-D' '_WIN32_WINNT_WIN7=0x0601' '-D' 'LIBGAV1_THREADPOOL_USE_STD_MUTEX=1' '-D' 'LIBGAV1_MAX_BITDEPTH=12' '-D' 'LIBGAV1_PUBLIC=//' '-D' 'LIBGAV1_ENABLE_SSE4_1' '-c' '-o' 'cdef.o'
 c:/gcc1300/bin/../libexec/gcc/x86_64-w64-mingw32/13.0.0/cc1plus.exe -quiet -v -iprefix c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/ -U_REENTRANT -D WINVER=0x0602 -D _WIN32_WINNT=0x0602 -D WIN32_LEAN_AND_MEAN=// -D _WIN32_WINNT_WIN7=0x0601 -D LIBGAV1_THREADPOOL_USE_STD_MUTEX=1 -D LIBGAV1_MAX_BITDEPTH=12 -D LIBGAV1_PUBLIC=// -D LIBGAV1_ENABLE_SSE4_1 cdef.cc -quiet -dumpbase cdef.cc -dumpbase-ext .cc -march=x86-64-v2 -mavx -mxsave -mpclmul -maes -g0 -O3 -std=gnu++11 -version -ftree-vectorize -fPIC -o C:\Users\KOMPUT~1\AppData\Local\Temp\ccMZzeha.s
GNU C++11 (GCC) version 13.0.0 20221229 (experimental) (x86_64-w64-mingw32)
        compiled by GNU C version 13.0.0 20221229 (experimental), GMP version 6.2.1, MPFR version 4.1.1, MPC version 1.3.1, isl version isl-0.24-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++/13.0.0"
ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++/13.0.0/x86_64-w64-mingw32"
ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++/13.0.0/backward"
ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/include"
ignoring nonexistent directory "/home/ma/m/target/home/ma/m/target/lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include"
ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/include-fixed"
ignoring duplicate directory "c:/gcc1300/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "/home/ma/m/target/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++/13.0.0
 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++/13.0.0/x86_64-w64-mingw32
 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../include/c++/13.0.0/backward
 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/include
 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/include-fixed
 c:\gcc1300\bin\../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/include
End of search list.
GNU C++11 (GCC) version 13.0.0 20221229 (experimental) (x86_64-w64-mingw32)
        compiled by GNU C version 13.0.0 20221229 (experimental), GMP version 6.2.1, MPFR version 4.1.1, MPC version 1.3.1, isl version isl-0.24-GMP

GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 764f1c9ee3426717f9fd65dfa7ce224a
In function 'void libgav1::{anonymous}::CopyPixels(const uint8_t*, int, uint8_t*, int, int, int, size_t)',
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneUnit(uint16_t*, int, int, int, int, int, uint8_t (*)[3][256], bool (*)[2]) [with Pixel = short unsigned int]' at cdef.cc:330:15,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRowHelper(uint16_t*, uint8_t (*)[3][256], int, int)' at cdef.cc:612:36,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)' at cdef.cc:642:41:
cdef.cc:81:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
   81 |     memcpy(dst, src, width * pixel_size);
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In member function 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)':
cc1plus.exe: note: destination object is likely at address zero
In function 'void libgav1::{anonymous}::CopyPixels(const uint8_t*, int, uint8_t*, int, int, int, size_t)',
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneUnit(uint16_t*, int, int, int, int, int, uint8_t (*)[3][256], bool (*)[2]) [with Pixel = short unsigned int]' at cdef.cc:330:15,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRowHelper(uint16_t*, uint8_t (*)[3][256], int, int)' at cdef.cc:612:36,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)' at cdef.cc:642:41:
cdef.cc:81:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
In member function 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)':
cc1plus.exe: note: destination object is likely at address zero
In function 'void libgav1::{anonymous}::CopyPixels(const uint8_t*, int, uint8_t*, int, int, int, size_t)',
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneUnit(uint16_t*, int, int, int, int, int, uint8_t (*)[3][256], bool (*)[2]) [with Pixel = short unsigned int]' at cdef.cc:330:15,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRowHelper(uint16_t*, uint8_t (*)[3][256], int, int)' at cdef.cc:612:36,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)' at cdef.cc:642:41:
cdef.cc:81:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
In member function 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)':
cc1plus.exe: note: destination object is likely at address zero
In function 'void libgav1::{anonymous}::CopyPixels(const uint8_t*, int, uint8_t*, int, int, int, size_t)',
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneUnit(uint16_t*, int, int, int, int, int, uint8_t (*)[3][256], bool (*)[2]) [with Pixel = short unsigned int]' at cdef.cc:330:15,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRowHelper(uint16_t*, uint8_t (*)[3][256], int, int)' at cdef.cc:612:36,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)' at cdef.cc:642:41:
cdef.cc:81:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
In member function 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)':
cc1plus.exe: note: destination object is likely at address zero
In function 'void libgav1::{anonymous}::CopyPixels(const uint8_t*, int, uint8_t*, int, int, int, size_t)',
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneUnit(uint16_t*, int, int, int, int, int, uint8_t (*)[3][256], bool (*)[2]) [with Pixel = short unsigned int]' at cdef.cc:330:15,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRowHelper(uint16_t*, uint8_t (*)[3][256], int, int)' at cdef.cc:612:36,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)' at cdef.cc:642:41:
cdef.cc:81:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
In member function 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)':
cc1plus.exe: note: destination object is likely at address zero
In function 'void libgav1::{anonymous}::CopyPixels(const uint8_t*, int, uint8_t*, int, int, int, size_t)',
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneUnit(uint16_t*, int, int, int, int, int, uint8_t (*)[3][256], bool (*)[2]) [with Pixel = short unsigned int]' at cdef.cc:330:15,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRowHelper(uint16_t*, uint8_t (*)[3][256], int, int)' at cdef.cc:612:36,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)' at cdef.cc:642:41:
cdef.cc:81:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
In member function 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)':
cc1plus.exe: note: destination object is likely at address zero
In function 'void libgav1::{anonymous}::CopyPixels(const uint8_t*, int, uint8_t*, int, int, int, size_t)',
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneUnit(uint16_t*, int, int, int, int, int, uint8_t (*)[3][256], bool (*)[2]) [with Pixel = short unsigned int]' at cdef.cc:330:15,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRowHelper(uint16_t*, uint8_t (*)[3][256], int, int)' at cdef.cc:612:36,
    inlined from 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)' at cdef.cc:642:41:
cdef.cc:81:11: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
In member function 'void libgav1::PostFilter::ApplyCdefForOneSuperBlockRow(int, int, bool)':
cc1plus.exe: note: destination object is likely at address zero
COLLECT_GCC_OPTIONS='-v' '-std=gnu++11' '-march=x86-64-v2' '-ftree-vectorize' '-g0' '-O3' '-fPIC' '-mavx' '-mxsave' '-mpclmul' '-maes' '-D' 'WINVER=0x0602' '-D' '_WIN32_WINNT=0x0602' '-D' 'WIN32_LEAN_AND_MEAN=//' '-D' '_WIN32_WINNT_WIN7=0x0601' '-D' 'LIBGAV1_THREADPOOL_USE_STD_MUTEX=1' '-D' 'LIBGAV1_MAX_BITDEPTH=12' '-D' 'LIBGAV1_PUBLIC=//' '-D' 'LIBGAV1_ENABLE_SSE4_1' '-c' '-o' 'cdef.o'
 c:/gcc1300/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/bin/as.exe -v -o cdef.o C:\Users\KOMPUT~1\AppData\Local\Temp\ccMZzeha.s
GNU assembler version 2.39 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.39
COMPILER_PATH=c:/gcc1300/bin/../libexec/gcc/x86_64-w64-mingw32/13.0.0/;c:/gcc1300/bin/../libexec/gcc/;c:/gcc1300/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=c:/gcc1300/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/;c:/gcc1300/bin/../lib/gcc/;c:/gcc1300/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/lib/../lib/;c:/gcc1300/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../lib/;c:/gcc1300/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../../x86_64-w64-mingw32/lib/;c:/gcc1300/bin/../lib/gcc/x86_64-w64-mingw32/13.0.0/../../../
COLLECT_GCC_OPTIONS='-v' '-std=gnu++11' '-march=x86-64-v2' '-ftree-vectorize' '-g0' '-O3' '-fPIC' '-mavx' '-mxsave' '-mpclmul' '-maes' '-D' 'WINVER=0x0602' '-D' '_WIN32_WINNT=0x0602' '-D' 'WIN32_LEAN_AND_MEAN=//' '-D' '_WIN32_WINNT_WIN7=0x0601' '-D' 'LIBGAV1_THREADPOOL_USE_STD_MUTEX=1' '-D' 'LIBGAV1_MAX_BITDEPTH=12' '-D' 'LIBGAV1_PUBLIC=//' '-D' 'LIBGAV1_ENABLE_SSE4_1' '-c' '-o' 'cdef.o' '-dumpdir' 'cdef.'
Comment 1 Andrew Pinski 2023-01-08 08:01:42 UTC
Can you attach the preprocessed source?

GCC thinks you are trying to do a memcpy to a null pointer really:
cc1plus.exe: note: destination object is likely at address zero

Which could mean either the code which GCC is warning is "dead" code and should have been optimized away or you really are trying to do a memcpy to a nullptr.
Comment 2 Jamaika 2023-01-08 10:27:30 UTC
Created attachment 54212 [details]
preprocessed source
Comment 3 Jamaika 2023-01-08 10:28:48 UTC
I add preprocessed source `cdef.o`.
Comment 4 Andrew Pinski 2023-01-11 00:11:08 UTC
(In reply to Jamaika from comment #3)
> I add preprocessed source `cdef.o`.

That is not the preprocessed source but rather the resulting object file.
Try adding -save-temps and attaching the file that has the suffix of .ii .
Comment 5 Jamaika 2023-01-11 15:28:25 UTC
Created attachment 54247 [details]
Added zip files