From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id AACFA3857419 for ; Mon, 6 Sep 2021 10:24:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AACFA3857419 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E0BBC2214F; Mon, 6 Sep 2021 10:24:37 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id C68901363C; Mon, 6 Sep 2021 10:24:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id RkokL2XsNWE7DwAAGKfGzw (envelope-from ); Mon, 06 Sep 2021 10:24:37 +0000 Subject: Re: Array out of bounds To: Simon Marchi , Jan-Benedict Glaw , gdb@sourceware.org References: <20210905064035.azigz657cpfjonoo@lug-owl.de> <20210905180613.ykl6f3lvsio46jdg@lug-owl.de> <6e5e153c-e540-63d5-4f5d-e1e700ee08d7@polymtl.ca> From: Tom de Vries Message-ID: <8d535493-e77b-05da-d7b1-afb4379801f1@suse.de> Date: Mon, 6 Sep 2021 12:24:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <6e5e153c-e540-63d5-4f5d-e1e700ee08d7@polymtl.ca> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2021 10:24:39 -0000 On 9/6/21 3:48 AM, Simon Marchi via Gdb wrote: > > > On 2021-09-05 2:06 p.m., Jan-Benedict Glaw wrote: >> Hi! >> >> On Sun, 2021-09-05 08:40:35 +0200, Jan-Benedict Glaw wrote: >>> Hi! >>> >>> As I started with automated building/testing the GNU Toolchain again, >>> I found this when building GDB (make all-gdb) with a fairly recent GCC >>> on a Linux system (PC) when GDB is configured for >>> --target=aarch64-linux: >> >> Just to add: Seems to be independent of a target. Produces the same >> warning/error for all tested targets using a current GCC. >> >> Thanks, >> Jan-Benedict >> > > I just built gcc at 66bba4dc263d ("Daily bump."), and I don't see it. > I've managed to reproduce, filed as PR gcc/102216 - "False positive warray-bounds with -O2" @ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102216 . Thanks, - Tom