[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1016628: gcc-12: makes nodejs testsuite fail on mips64el/riscv64 only



On Fri, 2022-08-05 at 09:09 +0800, YunQiang Su wrote:
> > > > > /usr/include/c++/12/bits/atomic_base.h:488:31: warning: ‘long
> > > > > unsigned int __atomic_load_8(const volatile void*, int)’
> > > > > writing 8
> > > > > bytes into a region of size 0 overflows the destination [-
> > > > > Wstringop-
> > > > > overflow=]
> > > > >     488 |         return __atomic_load_n(&_M_i, int(__m));
> > > > > 
> > > > 
> > > > @Xi Ruoyao Is this what you are working on?
> > > 
> > > If we have evidence showing it's a GCC code generation bug, I'll
> > > try to
> > > fix it.  I don't have any interest in node.js.
> > 
> 
> I mean is it about then zero legth var in C++?

I don't think they are related.  "writing x bytes into a region of size
0" is a common false warning with GCC 12.  There are multiple PRs about
it and I think this is likely https://gcc.gnu.org/PR104475.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


Reply to: