Message ID | 20240119094240.BAB731388C@imap1.dmz-prg2.suse.org |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=ioYzKFez; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=327TPlF+; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=DdJ+r7lR; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=HJAJP34w; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TGZT50YhZz1yPV for <incoming@patchwork.ozlabs.org>; Fri, 19 Jan 2024 20:44:25 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 18F2E385800C for <incoming@patchwork.ozlabs.org>; Fri, 19 Jan 2024 09:44:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 487913858422 for <gcc-patches@gcc.gnu.org>; Fri, 19 Jan 2024 09:42:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 487913858422 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 487913858422 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705657364; cv=none; b=NcPsnPhPFzurWPcrJ+jB1vSpTutXsG74gM0zC/uMTpnjQka8jQevInh4CFnAO04Iquy1edudBJznu97kGtEQarI1VoR9WZBKxqHm3ivDvTKzy0kioVcYsMKo8N7kAlxA2C8rAMxwnejw8Db3QkLQ5D5ttw7sQ/JXu+h8VL3mLn8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705657364; c=relaxed/simple; bh=UBqd/aP4dPF34/l+ksbPiwOLQvOeEUm1+Y1ifshaQ2U=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:MIME-Version:Message-Id; b=xJmi0sABXWOwoGuGlbBKUUvvnLeC5LazI6rNqU4KxlI5cww1v6vf/4zBH2lVOTgG394i+weqxXFNSzvlm+XcIRLiQgW8dgdShiWoV4o7CpWEI98kM0qNp/RFLa7UK3ZE/09hjQ8L5wq9ON5MFWeGoTVYxjEB5A2B8CFtHZUgLEI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DB63521DCE for <gcc-patches@gcc.gnu.org>; Fri, 19 Jan 2024 09:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705657361; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=Q1+ArzHBf9ztMkMoSKniON3PUwm+biIkQDGsCKhbvug=; b=ioYzKFezd8WZui9mEUiA5WwUZH/Sy22nDhocq3CwLdXcW8NkQ6p0pbgLvYTBAXH45tElx3 DCKK8F5YdRQYAseZpGiiJNn1SqLuPQ6yEgpa7Xp2tV1/so3C7zXrZO5BTX3Rc/n5hjAMCN F0owiqW0hwtHiHZkLlQ1bkhFxFkEzkw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705657361; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=Q1+ArzHBf9ztMkMoSKniON3PUwm+biIkQDGsCKhbvug=; b=327TPlF+MtbkUk5mmoe3I0Bu8gfjx16gKWPYkCit/LxZh9UqZ59u15ueqGOYQK3gs9mLm2 gCtT0MYKS+v723AA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705657360; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=Q1+ArzHBf9ztMkMoSKniON3PUwm+biIkQDGsCKhbvug=; b=DdJ+r7lRsz/npF0KEIVlSt70+wqZN7W7FwAzUg9hvNZmHK+j/+kBcZeIaMQYK0W1d6i67V 2sTpR4yZ5KC7iRguOl7dUn2VHIjHbblDIPQMUvbB2BIAlaxl9c6t7P/b6RShJ1lThh9nT4 RiBWKlaihs3s4QyTUc5rhocO6fPqJ/A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705657360; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=Q1+ArzHBf9ztMkMoSKniON3PUwm+biIkQDGsCKhbvug=; b=HJAJP34whgY+51F4+EgyrYzJ8r4m8GtqRWPwcnR0jp2cKiz9VcXf8UPmKBTDqMmpSuH1l/ hn33BZLDWAebUUAQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id BAB731388C for <gcc-patches@gcc.gnu.org>; Fri, 19 Jan 2024 09:42:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id Q9RUKxBEqmU9WAAAD6G6ig (envelope-from <rguenther@suse.de>) for <gcc-patches@gcc.gnu.org>; Fri, 19 Jan 2024 09:42:40 +0000 Date: Fri, 19 Jan 2024 10:42:40 +0100 (CET) From: Richard Biener <rguenther@suse.de> To: gcc-patches@gcc.gnu.org Subject: [PATCH] debug/113488 - DW_AT_abstract_origin to self MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20240119094240.BAB731388C@imap1.dmz-prg2.suse.org> X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=DdJ+r7lR; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=HJAJP34w X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-3.56 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[gcc-patches@gcc.gnu.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.05)[59.39%] X-Spam-Score: -3.56 X-Rspamd-Queue-Id: DB63521DCE X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
debug/113488 - DW_AT_abstract_origin to self
|
expand
|
diff --git a/gcc/lto-streamer-in.cc b/gcc/lto-streamer-in.cc index bef0743b2cd..ad0ca24007a 100644 --- a/gcc/lto-streamer-in.cc +++ b/gcc/lto-streamer-in.cc @@ -1746,6 +1746,11 @@ lto_read_tree_1 (class lto_input_block *ib, class data_in *data_in, tree expr) dref_entry e = { expr, str, off }; dref_queue.safe_push (e); } + /* When there's no early DIE to refer to but dwarf2out set up + things in a way to expect that fixup. This tends to happen + with -g1, see for example PR113488. */ + else if (DECL_P (expr) && DECL_ABSTRACT_ORIGIN (expr) == expr) + DECL_ABSTRACT_ORIGIN (expr) = NULL_TREE; } }