From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2138) id 2BFB43858C50; Thu, 9 Feb 2023 08:58:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BFB43858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675933124; bh=SLoTpEBKLLqKVTc6LSNu+9vb2ntpxVRYatc5PkEZ0zw=; h=From:To:Subject:Date:From; b=r0ioDAVuNZFOIlpp7JmGiV/kZaPcRZchSzIKAAXplwo4orZEPQdXMStGBI6Udgwlj 1Vcdskyg9nShXZznkYTvY0fmwKpNCqXFZeiwshtjNaEh/EciMWVJ6l9aep8Z6HeEv5 tlbZIqRoDOwQ4i3D3xscwfP7fcjNItRYcSPTL4g0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andreas Schwab To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5752] lto-wrapper: Pass through -funwind-tables and -fasynchronous-unwind-tables X-Act-Checkin: gcc X-Git-Author: Andreas Schwab X-Git-Refname: refs/heads/master X-Git-Oldrev: b1ed0c9671b99c6b06cbb8c61be14cdec0998de8 X-Git-Newrev: 9453e3cd0ffd0c377a648b83a9a5fdc5809e60d7 Message-Id: <20230209085844.2BFB43858C50@sourceware.org> Date: Thu, 9 Feb 2023 08:58:44 +0000 (GMT) List-Id: https://gcc.gnu.org/g:9453e3cd0ffd0c377a648b83a9a5fdc5809e60d7 commit r13-5752-g9453e3cd0ffd0c377a648b83a9a5fdc5809e60d7 Author: Andreas Schwab Date: Tue Jan 17 16:47:13 2023 +0100 lto-wrapper: Pass through -funwind-tables and -fasynchronous-unwind-tables The -funwind-tables and -fasynchronous-unwind-tables options are relevant for the output pass, so they need to be passed through by the LTO wrapper. Otherwise, dwarf2out_assembly_start may output a ".cfi_sections .debug_frame" directive when debug info is enabled even if every translation unit was compiled with -funwind-tables. gcc/ * lto-wrapper.cc (merge_and_complain): Handle -funwind-tables and -fasynchronous-unwind-tables. (append_compiler_options): Likewise. Diff: --- gcc/lto-wrapper.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/lto-wrapper.cc b/gcc/lto-wrapper.cc index 11c4d1b38a4..fe8c5f6e80d 100644 --- a/gcc/lto-wrapper.cc +++ b/gcc/lto-wrapper.cc @@ -335,6 +335,8 @@ merge_and_complain (vec &decoded_options, case OPT_fopenmp: case OPT_fopenacc: + case OPT_fasynchronous_unwind_tables: + case OPT_funwind_tables: /* For selected options we can merge conservatively. */ if (existing_opt == -1) decoded_options.safe_push (*foption); @@ -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_fasynchronous_unwind_tables: + case OPT_funwind_tables: case OPT_g: case OPT_O: case OPT_Ofast: