From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by sourceware.org (Postfix) with ESMTPS id C0ABD3858C50 for ; Thu, 9 Feb 2023 08:20:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C0ABD3858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x136.google.com with SMTP id bp15so2082926lfb.13 for ; Thu, 09 Feb 2023 00:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Z+b66m1+mDykkXwW/y/36I9UpVx2TFjts3TusvCVdD4=; b=OQfg2PmIQ/21pkz3BkqZprEFW7L8sa360XjqKT+6B43jksrt0+gcsmTHE4QDctJUTu 4hZISElWHi6hSQ/9nUWFy3tXOLvUXRQV0Dwb0FHTREcfP8z3dUxDv3l0wmqkFlSViMAV b3ZAfed5DBcstW6D1lHPVZboKP1gr1S68UhoeePDnGUSSAwBkeH/ndsBQlhFSN7G67HF Knead8bXjePb2TISymq0RfdlP7RjrOjhFM4ESlV4jVFXLIOJtoWxknfthRh41CsA0z5H y1ETlvPSjAgiw2zf6VfdbhxhUHwPbP0s8C5vDIi2/2q5iD+tKYv2Y/uO2uD8alZLzFF0 bhFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z+b66m1+mDykkXwW/y/36I9UpVx2TFjts3TusvCVdD4=; b=pH5DUY/cEZD/wBEpJrzWN3IxGWZkpG+97VxerIZwEtGEwGd8F7Wdi9j9gjEE7Zl51C j+kMxmq960wxAd8k4sQdorSfE2O6W1k3InX9aWf4NuqcOodFh1aszpwh9Ur5sZdnsyD5 XkJm92fAypyu6iKPQ65KZOxycFSmgbl+71zJsWizqxKnrN95qS6Dt+dAHcMdt5UkJPiX swf8yZIuJSXeJa0QnkTKFr2yIod+QE4KV1vZkjKjeG/mhe/S3ynpa2Fdb8wr4qSse7k9 lmCwOs7evFTzWQsbB0snNZhVsWXkoQmYBOhIVFwf6CzlbOfQu9256qe3+Az0P6/DAQXS ikJw== X-Gm-Message-State: AO0yUKX/mXuim6QpTsMliD3iR7JuSGJXpwdGAUB0s/ZfM9h+9eyVf66L oSPAEroLRSYrLc96mHEGlC1qVIMe4rGlYBCqffJTy/pu X-Google-Smtp-Source: AK7set930zdtiQrHal9Ul5Pvwu89DLIHkGPs8MrP/Rba8eMaPFn3StsoLbb4yA3E7Z3REP0xjMznfrl2/FOwHFIcKjQ= X-Received: by 2002:a05:6512:491:b0:4b6:ee33:d441 with SMTP id v17-20020a056512049100b004b6ee33d441mr1790087lfq.3.1675930854312; Thu, 09 Feb 2023 00:20:54 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Richard Biener Date: Thu, 9 Feb 2023 09:20:41 +0100 Message-ID: Subject: Re: [PATCH] lto-wrapper: Pass through -funwind-tables and -fasynchronous-unwind-tables To: Andreas Schwab Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,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 Mon, Feb 6, 2023 at 4:27 PM Andreas Schwab via Gcc-patches wrote: > > 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 was enabled even if every > translation unit was compiled with -funwind-tables. OK. > gcc/ > * lto-wrapper.cc (merge_and_complain): Handle > -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..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: > -- > 2.39.1 > > > -- > 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."