public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109175] New: error: 'void* __builtin_memset(void*, int, long unsigned int)' writing 4 or more bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
@ 2023-03-17 14:52 malat at debian dot org
  2023-03-17 14:54 ` [Bug c++/109175] " malat at debian dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: malat at debian dot org @ 2023-03-17 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109175
           Summary: error: 'void* __builtin_memset(void*, int, long
                    unsigned int)' writing 4 or more bytes into a region
                    of size 0 overflows the destination
                    [-Werror=stringop-overflow=]
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: malat at debian dot org
  Target Milestone: ---

A new warning is appearing in the highway compilation logs on aarch64:

[...]
FAILED: CMakeFiles/convert_test.dir/hwy/tests/convert_test.cc.o 
/usr/lib/gcc-snapshot/bin/g++ -DHWY_SHARED_DEFINE -I"/<<PKGBUILDDIR>>" -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -DHWY_BROKEN_EMU128=0 -Wdate-time -D_FORTIFY_SOURCE=2
-fPIE -fvisibility=hidden -fvisibility-inlines-hidden
-Wno-builtin-macro-redefined -D__DATE__=\"redacted\"
-D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -fmerge-all-constants
-Wall -Wextra -Wconversion -Wsign-conversion -Wvla -Wnon-virtual-dtor
-fmath-errno -fno-exceptions -Werror -DHWY_IS_TEST=1 -DGTEST_HAS_PTHREAD=1 -MD
-MT CMakeFiles/convert_test.dir/hwy/tests/convert_test.cc.o -MF
CMakeFiles/convert_test.dir/hwy/tests/convert_test.cc.o.d -o
CMakeFiles/convert_test.dir/hwy/tests/convert_test.cc.o -c
'/<<PKGBUILDDIR>>/hwy/tests/convert_test.cc'
In file included from /<<PKGBUILDDIR>>/hwy/foreach_target.h:114,
                 from /<<PKGBUILDDIR>>/hwy/tests/convert_test.cc:26:
In function 'hwy::AlignedFreeUniquePtr<float []> hwy::N_SVE2::F16TestCases(D,
size_t&) [with D = Simd<float, 64, 0>]',
    inlined from 'void hwy::N_SVE2::TestF16::operator()(TF32, DF32) [with TF32
= float; DF32 = hwy::N_SVE2::Simd<float, 64, 0>]' at
/<<PKGBUILDDIR>>/hwy/tests/convert_test.cc:300:10:
/<<PKGBUILDDIR>>/hwy/tests/convert_test.cc:288:11: error: 'void*
__builtin_memset(void*, int, long unsigned int)' writing 4 or more bytes into a
region of size 0 overflows the destination [-Werror=stringop-overflow=]
  288 |     in[i] = 0.0f;
In function 'void hwy::N_SVE2::TestF16::operator()(TF32, DF32) [with TF32 =
float; DF32 = hwy::N_SVE2::Simd<float, 64, 0>]':
cc1plus: note: destination object is likely at address zero
In file included from /<<PKGBUILDDIR>>/hwy/foreach_target.h:103:
In function 'hwy::AlignedFreeUniquePtr<float []> hwy::N_SVE::F16TestCases(D,
size_t&) [with D = Simd<float, 64, 0>]',
    inlined from 'void hwy::N_SVE::TestF16::operator()(TF32, DF32) [with TF32 =
float; DF32 = hwy::N_SVE::Simd<float, 64, 0>]' at
/<<PKGBUILDDIR>>/hwy/tests/convert_test.cc:300:10:
/<<PKGBUILDDIR>>/hwy/tests/convert_test.cc:288:11: error: 'void*
__builtin_memset(void*, int, long unsigned int)' writing 4 or more bytes into a
region of size 0 overflows the destination [-Werror=stringop-overflow=]
  288 |     in[i] = 0.0f;
In function 'void hwy::N_SVE::TestF16::operator()(TF32, DF32) [with TF32 =
float; DF32 = hwy::N_SVE::Simd<float, 64, 0>]':
cc1plus: note: destination object is likely at address zero
cc1plus: all warnings being treated as errors
[...]

ref:
*
https://buildd.debian.org/status/fetch.php?pkg=highway&arch=arm64&ver=1.0.4%7Egit20230308.a1d7764-1&stamp=1679052435&raw=0

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

end of thread, other threads:[~2023-09-26 11:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17 14:52 [Bug c++/109175] New: error: 'void* __builtin_memset(void*, int, long unsigned int)' writing 4 or more bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=] malat at debian dot org
2023-03-17 14:54 ` [Bug c++/109175] " malat at debian dot org
2023-03-17 14:55 ` malat at debian dot org
2023-03-17 15:04 ` malat at debian dot org
2023-03-20 19:50 ` [Bug tree-optimization/109175] " pinskia at gcc dot gnu.org
2023-03-24 18:20 ` malat at debian dot org
2023-03-24 18:46 ` pinskia at gcc dot gnu.org
2023-03-24 19:44 ` jan.wassenberg at gmail dot com
2023-09-26 11:59 ` malat at debian dot 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).