From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 0A5363858D28 for ; Wed, 18 Jan 2023 14:14:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0A5363858D28 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-out1.suse.de (Postfix) with ESMTP id 356C821861; Wed, 18 Jan 2023 14:14:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1674051242; 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=9dcDknbC9pR/JIjUQxKoYrrhNN3WnAzV2udiuuy0Bq0=; b=bOY0OQi74U3tEB9wMe82IGNs+sLjYCNuf5Vk5AFpNWgNw0Qmmo93XXGFxGlYT0gTx4HTOL GkDj8sa643VVy9gvhUGXRwKcG+QeyaxE/o46NHnpUGkrKE/cdJmFHZtyg5rrsIUJsgwLZ0 9qceY+hsqYlk9CImMxc4mf0EhIyCkEU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1674051242; 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=9dcDknbC9pR/JIjUQxKoYrrhNN3WnAzV2udiuuy0Bq0=; b=CAhChLu5pEZH2C/PXtgsWUE48bresfH+YuQtFYEkXZCNX8dDggpGxkW5y1gEdFCbs7wie9 KHDHbP0ytPJBMEBg== Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 2E69E2C141; Wed, 18 Jan 2023 14:14:01 +0000 (UTC) Received: by hawking.suse.de (Postfix, from userid 17005) id 21740443810; Wed, 18 Jan 2023 15:14:01 +0100 (CET) From: Andreas Schwab To: Michael Matz Cc: gcc-patches@gcc.gnu.org, Jakub Jelinek , Richard Biener , Jan Hubicka Subject: Re: [PATCH] lto: pass through -funwind-tables and -fasynchronous-unwind-tables References: X-Yow: Actually, what I'd like is a little toy spaceship!! Date: Wed, 18 Jan 2023 15:14:01 +0100 In-Reply-To: (Michael Matz's message of "Wed, 18 Jan 2023 14:03:42 +0000 (UTC)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP 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 Jan 18 2023, Michael Matz wrote: > So, it's quite clear that the option merging algorithm related to all this > is somewhat broken, the global (or per function, or whatever) > -funwind-tables option from hello.o doesn't make it correctly into the > output (when -g is there). Adding -fexception makes it work because then > the functions will have personalities and on LTO-read-in _that_ will > implicitely enable funwind-tables again (which should have been enabled > already by the option-read-in). My guess is that flag_unwind_tables is not yet set when .cfi_sections is emitted (which is done by dwarf2out_assembly_start before compile starts). -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."