octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #60527] Warnings during compilation and test e


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60527] Warnings during compilation and test errors with gcc 11
Date: Wed, 5 May 2021 08:03:50 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.51

Follow-up Comment #3, bug #60527 (project octave):

I believe some of those warnings will disappear after this changeset:
https://hg.savannah.gnu.org/hgweb/octave/rev/0169ffb3fe5d

But there are quite a few others of this type:

In file included from /usr/include/c++/11/list:60,
                 from ../src/liboctave/util/lo-regexp.cc:30:
In static member function ‘static _Tp* std::__copy_move<_IsMove, true,
std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*) [with
_Tp = long int; bool _IsMove = false]’,
    inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove
= false; _II = long int*; _OI = long int*]’ at
/usr/include/c++/11/bits/stl_algobase.h:495:30,
    inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove
= false; _II = long int*; _OI = long int*]’ at
/usr/include/c++/11/bits/stl_algobase.h:522:42,
    inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove =
false; _II = long int*; _OI = long int*]’ at
/usr/include/c++/11/bits/stl_algobase.h:529:31,
    inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = long int*; _OI =
long int*]’ at /usr/include/c++/11/bits/stl_algobase.h:620:7,
    inlined from ‘_OutputIterator std::__copy_n(_RandomAccessIterator,
_Size, _OutputIterator, std::random_access_iterator_tag) [with
_RandomAccessIterator = long int*; _Size = int; _OutputIterator = long
int*]’ at /usr/include/c++/11/bits/stl_algo.h:725:23,
    inlined from ‘_OIter std::copy_n(_IIter, _Size, _OIter) [with _IIter =
long int*; _Size = int; _OIter = long int*]’ at
/usr/include/c++/11/bits/stl_algo.h:757:27,
    inlined from ‘_OIter std::copy_n(_IIter, _Size, _OIter) [with _IIter =
long int*; _Size = int; _OIter = long int*]’ at
/usr/include/c++/11/bits/stl_algo.h:743:5,
    inlined from ‘octave_idx_type* dim_vector::clonerep()’ at
../src/liboctave/array/dim-vector.h:132:17,
    inlined from ‘void dim_vector::make_unique()’ at
../src/liboctave/array/dim-vector.h:169:45,
    inlined from ‘void dim_vector::make_unique()’ at
../src/liboctave/array/dim-vector.h:165:8,
    inlined from ‘void dim_vector::chop_trailing_singletons()’ at
../src/liboctave/array/dim-vector.h:246:21,
    inlined from ‘Array<T>::Array(const dim_vector&) [with T =
std::__cxx11::basic_string<char>]’ at
../src/liboctave/array/Array.h:271:41,
    inlined from ‘string_vector::string_vector(octave_idx_type)’ at
../src/liboctave/util/str-vec.h:45:48,
    inlined from ‘octave::regexp::match_data octave::regexp::match(const
string&) const’ at ../src/liboctave/util/lo-regexp.cc:374:44:
/usr/include/c++/11/bits/stl_algobase.h:431:30: warning: ‘void*
__builtin_memcpy(void*, const void*, long unsigned int)’ reading between 24
and 17179869176 bytes from a region of size 16 [-Wstringop-overread]
  431 |             __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
      |             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/liboctave/array/Array.h:38,
                 from ../src/liboctave/array/Array-util.h:31,
                 from ../src/liboctave/array/MSparse.h:31,
                 from ../src/liboctave/array/MatrixType.h:31,
                 from ../src/liboctave/operators/mx-base.h:33,
                 from ../src/liboctave/array/Matrix.h:34,
                 from ../src/liboctave/util/lo-regexp.cc:41:
../src/liboctave/array/dim-vector.h: In member function
‘octave::regexp::match_data octave::regexp::match(const string&) const’:
../src/liboctave/array/dim-vector.h:116:56: note: at offset 16 into source
object of size 32 allocated by ‘operator new []’
  116 |     octave_idx_type *r = new octave_idx_type [ndims + 2];
      |                                                        ^


Tbh, I don't know what to make out of them.
It might very well be that we can safely ignore those.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60527>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]