From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 9196A3853D02 for ; Fri, 30 Jun 2023 08:39:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9196A3853D02 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id C928B1F8AF; Fri, 30 Jun 2023 08:39:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688114398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=82Sn0qjR10k3y4ZrfySTleWiEVbBVJnGSJTxVc8uDsY=; b=Y+hnOKtUDO35LoMfspqPTO/gZlNENGsPhnMDysIwGrhqL4zoNtcLVR5ATNMuj7vmjv0Qa3 fU3+NYGry1XuL2hstQ4u2jBBsVMTQM3xJaz5YcwyfCGWYDKLMgfGILFr8+jgUVdp8++GXF cX/d33qYT+jgLO/5I9GFuenjVHPgy0o= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688114398; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=82Sn0qjR10k3y4ZrfySTleWiEVbBVJnGSJTxVc8uDsY=; b=iagPRYCgqlazOhOSECPPVy1upT/Pok2EACB7MtxBurguneXsXT/TdkGOF4OopL3xV0rG0Y H5UTaoOxsIkqPNCg== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 80A3B2C141; Fri, 30 Jun 2023 08:39:58 +0000 (UTC) Date: Fri, 30 Jun 2023 08:39:58 +0000 (UTC) From: Richard Biener To: Thomas Schwinge cc: gcc-patches@gcc.gnu.org, Jakub Jelinek , Pan Li , juzhe.zhong@rivai.ai, rdapp.gcc@gmail.com, jeffreyalaw@gmail.com, yanzhang.wang@intel.com, kito.cheng@gmail.com, Tobias Burnus Subject: Re: LTO: Capture 'lto_file_decl_data *file_data' in 'class lto_input_block' (was: [PATCH v3] Streamer: Fix out of range memory access of machine mode) In-Reply-To: <87v8f5uzob.fsf@euler.schwinge.homeip.net> Message-ID: References: <20230619080710.1536456-1-pan2.li@intel.com> <20230621075824.1990571-1-pan2.li@intel.com> <874jmqwr8q.fsf@euler.schwinge.homeip.net> <87sfaauit8.fsf@dem-tschwing-1.ger.mentorg.com> <87v8f5uzob.fsf@euler.schwinge.homeip.net> User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 30 Jun 2023, Thomas Schwinge wrote: > Hi! > > On 2023-06-29T22:14:59+0200, I wrote: > > [the new] 'file_data->mode_bits' needs to be considered [somewhere] > > > > Easiest is in 'gcc/lto-streamer.h:class lto_input_block' to capture > > 'lto_file_decl_data *file_data' instead of just > > 'unsigned char *mode_table', and adjust all users. > > I've split this out as a preparational "no change in behavior" patch; is > "LTO: Capture 'lto_file_decl_data *file_data' in 'class lto_input_block'" > OK to push, see attached? Yes. Richard. > > Gr??e > Thomas > > > ----------------- > Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra?e 201, 80634 M?nchen; Gesellschaft mit beschr?nkter Haftung; Gesch?ftsf?hrer: Thomas Heurung, Frank Th?rauf; Sitz der Gesellschaft: M?nchen; Registergericht M?nchen, HRB 106955 > -- Richard Biener SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman; HRB 36809 (AG Nuernberg)