public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108334] New: Strange message
@ 2023-01-08  7:55 lukaszcz18 at wp dot pl
  2023-01-08  8:01 ` [Bug tree-optimization/108334] Strange message in libgav1 pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lukaszcz18 at wp dot pl @ 2023-01-08  7:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108334
           Summary: Strange message
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lukaszcz18 at wp dot pl
  Target Milestone: ---

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.'

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/108334] Strange message in libgav1
  2023-01-08  7:55 [Bug c++/108334] New: Strange message lukaszcz18 at wp dot pl
@ 2023-01-08  8:01 ` pinskia at gcc dot gnu.org
  2023-01-08 10:27 ` lukaszcz18 at wp dot pl
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-08  8:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/108334] Strange message in libgav1
  2023-01-08  7:55 [Bug c++/108334] New: Strange message lukaszcz18 at wp dot pl
  2023-01-08  8:01 ` [Bug tree-optimization/108334] Strange message in libgav1 pinskia at gcc dot gnu.org
@ 2023-01-08 10:27 ` lukaszcz18 at wp dot pl
  2023-01-08 10:28 ` lukaszcz18 at wp dot pl
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lukaszcz18 at wp dot pl @ 2023-01-08 10:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jamaika <lukaszcz18 at wp dot pl> ---
Created attachment 54212
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54212&action=edit
preprocessed source

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/108334] Strange message in libgav1
  2023-01-08  7:55 [Bug c++/108334] New: Strange message lukaszcz18 at wp dot pl
  2023-01-08  8:01 ` [Bug tree-optimization/108334] Strange message in libgav1 pinskia at gcc dot gnu.org
  2023-01-08 10:27 ` lukaszcz18 at wp dot pl
@ 2023-01-08 10:28 ` lukaszcz18 at wp dot pl
  2023-01-11  0:11 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lukaszcz18 at wp dot pl @ 2023-01-08 10:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jamaika <lukaszcz18 at wp dot pl> ---
I add preprocessed source `cdef.o`.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/108334] Strange message in libgav1
  2023-01-08  7:55 [Bug c++/108334] New: Strange message lukaszcz18 at wp dot pl
                   ` (2 preceding siblings ...)
  2023-01-08 10:28 ` lukaszcz18 at wp dot pl
@ 2023-01-11  0:11 ` pinskia at gcc dot gnu.org
  2023-01-11 15:28 ` lukaszcz18 at wp dot pl
  2023-01-11 20:06 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-11  0:11 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-01-11
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(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 .

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/108334] Strange message in libgav1
  2023-01-08  7:55 [Bug c++/108334] New: Strange message lukaszcz18 at wp dot pl
                   ` (3 preceding siblings ...)
  2023-01-11  0:11 ` pinskia at gcc dot gnu.org
@ 2023-01-11 15:28 ` lukaszcz18 at wp dot pl
  2023-01-11 20:06 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: lukaszcz18 at wp dot pl @ 2023-01-11 15:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jamaika <lukaszcz18 at wp dot pl> ---
Created attachment 54247
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54247&action=edit
Added zip files

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/108334] Strange message in libgav1
  2023-01-08  7:55 [Bug c++/108334] New: Strange message lukaszcz18 at wp dot pl
                   ` (4 preceding siblings ...)
  2023-01-11 15:28 ` lukaszcz18 at wp dot pl
@ 2023-01-11 20:06 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-11 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED
     Ever confirmed|1                           |0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-11 20:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-08  7:55 [Bug c++/108334] New: Strange message lukaszcz18 at wp dot pl
2023-01-08  8:01 ` [Bug tree-optimization/108334] Strange message in libgav1 pinskia at gcc dot gnu.org
2023-01-08 10:27 ` lukaszcz18 at wp dot pl
2023-01-08 10:28 ` lukaszcz18 at wp dot pl
2023-01-11  0:11 ` pinskia at gcc dot gnu.org
2023-01-11 15:28 ` lukaszcz18 at wp dot pl
2023-01-11 20:06 ` pinskia at gcc dot gnu.org

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).