From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by sourceware.org (Postfix) with ESMTPS id 1CEE33858010 for ; Fri, 27 Nov 2020 19:28:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1CEE33858010 Received: by mail-ot1-x342.google.com with SMTP id l36so5584028ota.4 for ; Fri, 27 Nov 2020 11:28:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BoDwsVGsB3jkzLEraTGG95G1qMjykCO1GB6LjPOIOHw=; b=CsKrRobA3sEKwAjHLHjafPBdw/YAGyhKbtDBiePQUfcqCkiOsFJD2bBUO4urRWMT8D WZ80+yye1xKXX4s9Gl9nWstrgqrP7TiA6f+sRdcK/FRQ/3EOPYyxQElz3nLDU3tZRXYd Fo0F9ztaOpKwBthjnAsXuGG7ClJ+QiKO/OweQk9Jax0r6mMTjo2mElvtBsTmRM4nan2W 3dOYwvAB9w+au80elHA+9ycPxSyeoxE2v2/n3tLRhLe646/17NHsaR5s6JaKxLUXTAWu qSS0HIIqd0GPB8t5E04FfUdx/GNSNVQ/PCfbE2NVdS/rVQwqvzgTY7yuxIY/7fSpPmyi b1Mw== X-Gm-Message-State: AOAM532l89SoVgbET98fhCeh0ZxhXet1FCc6t7qqktBaSd+du2FOuGlI WVSwWA7vPpL88vDC7Ar4lEp9/4i/5gOnPjCjFM0= X-Google-Smtp-Source: ABdhPJwwtzEnzTcOZAI1g7lJL4vov8pbxE5YQ2vv5FV9yqZjO3+356u2Vw5xwAnsXzrpGd5GgWWgYsXLRA0cxegwvAo= X-Received: by 2002:a9d:eeb:: with SMTP id 98mr7562165otj.179.1606505325503; Fri, 27 Nov 2020 11:28:45 -0800 (PST) MIME-Version: 1.0 References: <20201127134211.1808714-1-hjl.tools@gmail.com> In-Reply-To: From: "H.J. Lu" Date: Fri, 27 Nov 2020 11:28:09 -0800 Message-ID: Subject: Re: [PATCH] INSTALL: Default to --enable-cet=auto To: Matthias Klose Cc: Richard Biener , Iain Buclaw , GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3036.6 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Fri, 27 Nov 2020 19:28:47 -0000 On Fri, Nov 27, 2020 at 11:02 AM Matthias Klose wrote: > > On 11/27/20 3:54 PM, H.J. Lu via Gcc-patches wrote: > > On Fri, Nov 27, 2020 at 6:24 AM Richard Biener wrote: > >> > >> OK. > >> > >> On Fri, 27 Nov 2020, H.J. Lu wrote: > >> > >>> PR other/98027 > >>> * doc/install: Default to --enable-cet=auto. > >>> --- > >>> gcc/doc/install.texi | 9 ++++----- > >>> 1 file changed, 4 insertions(+), 5 deletions(-) > >>> > >>> diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi > >>> index 5f879ca4cea..021c347cc09 100644 > >>> --- a/gcc/doc/install.texi > >>> +++ b/gcc/doc/install.texi > >>> @@ -2259,11 +2259,10 @@ instrumentation, see @option{-fcf-protection} option. When > >>> to add @option{-fcf-protection} and, if needed, other target > >>> specific options to a set of building options. > >>> > >>> -The option is disabled by default. When @code{--enable-cet=auto} > >>> -is used, it is enabled on Linux/x86 if target binutils > >>> -supports @code{Intel CET} instructions and disabled otherwise. > >>> -In this case the target libraries are configured to get additional > >>> -@option{-fcf-protection} option. > >>> +@code{--enable-cet=auto} is default. CET is enabled on Linux/x86 if > >>> +target binutils supports @code{Intel CET} instructions and disabled > >>> +otherwise. In this case, the target libraries are configured to get > >>> +additional @option{-fcf-protection} option. > >>> > >>> @item --with-riscv-attribute=@samp{yes}, @samp{no} or @samp{default} > >>> Generate RISC-V attribute by default, in order to record extra build > >>> > >> > > > > OK for backport to GCC 10? > > I only found that because of failing package builds in a test rebuild. See > PR98025. Is it safe to backport that, if it breaks the ABI of a runtime library libphobos has some CET issues which have been fixed in GCC 11. > shipped with GCC 10? > It is just a documentation change. -- H.J.