From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3EFD438515CD; Mon, 30 May 2022 19:11:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EFD438515CD From: "danglin at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug compile/29198] New: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 Date: Mon, 30 May 2022 19:11:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: compile X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2022 19:11:53 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29198 Bug ID: 29198 Summary: [Regression] specified bound 4294967295 may exceed maximum object size 2147483647 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: compile Assignee: unassigned at sourceware dot org Reporter: danglin at gcc dot gnu.org CC: tromey at sourceware dot org Target Milestone: --- Host: hppa*-*-linux* Target: hppa*-*-linux* Build: hppa*-*-linux* The following compile error was introduced by commit 8839e3f3b0d1af5d93ba1d4f667ce33936bb7db2: CXX debuginfod-support.o In file included from /usr/include/c++/11/string:40, from ../../src/gdb/../gdbsupport/ptid.h:36, from ../../src/gdb/../gdbsupport/common-defs.h:198, from ../../src/gdb/defs.h:28, from ../../src/gdb/debuginfod-support.c:19: In static member function 'static constexpr const char_type* std::char_traits::find(const char_type*, std::size_t, const char_type= &)', inlined from 'constexpr std::basic_string_view<_CharT, _Traits>::size_t= ype std::basic_string_view<_CharT, _Traits>::find(_CharT, std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT =3D = char; _Traits =3D std::char_traits]' at /usr/include/c++/11/bits/string_view.tcc:87:41, inlined from 'constexpr std::basic_string_view<_CharT, _Traits>::size_t= ype std::basic_string_view<_CharT, _Traits>::find_first_of(_CharT, std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT =3D = char; _Traits =3D std::char_traits]' at /usr/include/c++/11/string_view:431= :26, inlined from 'bool debuginfod_is_enabled()' at ../../src/gdb/debuginfod-support.c:193:40: /usr/include/c++/11/bits/char_traits.h:413:62: error: 'void* __builtin_memchr(const void*, int, unsigned int)' specified bound 4294967295 may exceed maximum object size 2147483647 [-Werror=3Dstringop-overread] 413 | return static_cast(__builtin_memchr(__s, = __a, __n)); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [Makefile:1659: debuginfod-support.o] Error 1 make[2]: Leaving directory '/home/dave/gnu/binutils/objdir/gdb' --=20 You are receiving this mail because: You are on the CC list for the bug.=