From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id B1D093858D28 for ; Tue, 24 Jan 2023 19:26:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B1D093858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: by gnu.wildebeest.org (Postfix, from userid 1000) id 4C705302BBEC; Tue, 24 Jan 2023 20:26:26 +0100 (CET) Date: Tue, 24 Jan 2023 20:26:26 +0100 From: Mark Wielaard To: Tom Tromey Cc: gdb-patches@sourceware.org, Simon Marchi , Sam James Subject: Re: [PATCHv2] gdb: Ignore some stringop-overflow and restrict warnings on sparc Message-ID: <20230124192626.GF11538@gnu.wildebeest.org> References: <20230124004444.703203-1-mark@klomp.org> <87k01cvtt2.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k01cvtt2.fsf@tromey.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-3031.9 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Tom, On Tue, Jan 24, 2023 at 08:25:13AM -0700, Tom Tromey wrote: > Is there any chance that std::copy or std::memmove would avoid the > warning? It would be nice if this could be fixed without having to add > a bunch of #if goo. memmove also doesn't work since although this would resolve the overlapping confusion, gcc still believes specified bound 18446744073709551612 exceeds maximum object size 9223372036854775807. But it looks like the std::copy approach does just compile without issue. I'll sent a v3. Thanks, Mark