From patchwork Wed Jan 18 10:16:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 45142 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2252017wrn; Wed, 18 Jan 2023 02:17:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXumiE1o/P1x34akOxUx7aZm4qTO4EJgmlwDORjnSmjQnSUTtA4Xlg0koqALR9Zf0PQr7s9i X-Received: by 2002:a17:906:7f03:b0:86e:eccd:ba61 with SMTP id d3-20020a1709067f0300b0086eeccdba61mr13729754ejr.66.1674037036110; Wed, 18 Jan 2023 02:17:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674037036; cv=none; d=google.com; s=arc-20160816; b=SmNUmMxa1n26G7p/MLo+ywfBozoUPWqapoY52epP47Nwvmu5XBhKkdiaRnGrdSwnyg ALZ2TPncm2d+EdkTzLhbRL414uiJnstNx9xwSp53lk61ypwxsDhL2mfASn1Ak2YmmUxB ODqrIijmqIxEAMfZlPGhBEPlTtdEL8J37KhNDv6cx4n9FLVHRbTIgncYfR7YFzAwT377 g90ktSFnmhMoj4n9viZ3lHWZ9MZnaaq+hC/U/ruARyhtpyPEPFbOtBEiusWKWv3dUspY c3fbcLUnK9+5qebcLdpqXHnrE2ez9beAXvapZInSWhvSTIlMPCDfrNnF0S+5iULYBn1A JMiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:subject:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=tbrRW7A825VD1IjvEMkPRkpO+7wwD6gOF2sxRrtSA0A=; b=V41g+dnTlNsj38abA+Z6rE0c5CCUcLxTVNKdVN6h338awnWTgLH3Q4bKHgwA1inQ0P +joz1Phc+ZKiypsDXkdlp/dFoDCBVeUbkIS69FYDzsxifq6EYT3vYS1GrV8ZHEdOyOew XbNp+/ylRieP5kSaCIgfEGeXMpkBbaBLyO2kOXlj27HbODaSilA8vbY7oxGQZJQcQL3V luLyysz0aS6dAatFs5FIPVdIq3aK1qmwdXIPbXCc0yqnoy4jaf44ETNWbEIEogSFhxC4 82MqVQ9xxrYTb3RS/JjMysKbRP+Q6Y+5ItPmyXQId/WQUfmEBr2nTo3yN3eSfi7YuFFV IDPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ovgnOihF; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id sb33-20020a1709076da100b0086ea1c7ae21si13995014ejc.54.2023.01.18.02.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 02:17:16 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ovgnOihF; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 29C7E385842C for ; Wed, 18 Jan 2023 10:17:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29C7E385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674037035; bh=tbrRW7A825VD1IjvEMkPRkpO+7wwD6gOF2sxRrtSA0A=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ovgnOihFblLsBuu8YIBxw9J492MQl3U8ctJxLTYAw7xMRVqY3aGmwvqEN6WTQIGLc VC5ohQ/vi5zvFKiiJ33y5wFEfOYcsgNaBW9fM+Wh9Sf0pBnK+n6Usey+rW55QkjqHd fIMtNkHkai+oRfubQWl/ZRo97X/TqauUE8PdVTJk= 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 [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id B2BC43858D28 for ; Wed, 18 Jan 2023 10:16:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B2BC43858D28 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id A52F43E938 for ; Wed, 18 Jan 2023 10:16:29 +0000 (UTC) Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 9DF982C141 for ; Wed, 18 Jan 2023 10:16:29 +0000 (UTC) Received: by hawking.suse.de (Postfix, from userid 17005) id 504A9443810; Wed, 18 Jan 2023 11:16:29 +0100 (CET) To: gcc-patches@gcc.gnu.org Subject: [PATCH] lto: pass through -funwind-tables and -fasynchronous-unwind-tables X-Yow: Finally, Zippy drives his 1958 RAMBLER METROPOLITAN into the faculty dining room. Date: Wed, 18 Jan 2023 11:16:29 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Spam-Status: No, score=-9.1 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 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andreas Schwab via Gcc-patches From: Andreas Schwab Reply-To: Andreas Schwab Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755355059381524666?= X-GMAIL-MSGID: =?utf-8?q?1755355059381524666?= The -funwind-tables and -fasynchronous-unwind-tables options are relevant for the output pass, thus they need to be passed through by the lto wrapper. gcc/ * lto-wrapper.cc (merge_and_complain): Pass through -funwind-tables and -fasynchronous-unwind-tables. (append_compiler_options): Likewise. --- gcc/lto-wrapper.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc index 11c4d1b38a4..627e8238606 100644 --- a/gcc/lto-wrapper.cc +++ b/gcc/lto-wrapper.cc @@ -314,6 +314,8 @@ merge_and_complain (vec &decoded_options, case OPT_fshow_column: case OPT_fcommon: case OPT_fgnu_tm: + case OPT_funwind_tables: + case OPT_fasynchronous_unwind_tables: case OPT_g: /* Do what the old LTO code did - collect exactly one option setting per OPT code, we pick the first we encounter. @@ -737,6 +739,8 @@ append_compiler_options (obstack *argv_obstack, vec opts) case OPT_fopenacc_dim_: case OPT_foffload_abi_: case OPT_fcf_protection_: + case OPT_funwind_tables: + case OPT_fasynchronous_unwind_tables: case OPT_g: case OPT_O: case OPT_Ofast: