From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 8761F3858437 for ; Wed, 2 Feb 2022 06:59:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8761F3858437 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id D6B212110A; Wed, 2 Feb 2022 06:59:13 +0000 (UTC) Received: from murzim.suse.de (murzim.suse.de [10.160.4.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id BB582A3B83; Wed, 2 Feb 2022 06:59:13 +0000 (UTC) Date: Wed, 2 Feb 2022 07:59:13 +0100 (CET) From: Richard Biener To: "H.J. Lu" cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] gcc-12: Mention -mharden-sls= and -mindirect-branch-cs-prefix In-Reply-To: <20220201165733.2705733-1-hjl.tools@gmail.com> Message-ID: References: <20220201165733.2705733-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Wed, 02 Feb 2022 06:59:16 -0000 On Tue, 1 Feb 2022, H.J. Lu wrote: LGTM. > --- > htdocs/gcc-12/changes.html | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html > index 2719b9d5..479bd6c5 100644 > --- a/htdocs/gcc-12/changes.html > +++ b/htdocs/gcc-12/changes.html > @@ -387,6 +387,12 @@ a work-in-progress.

> x86 systems with SSE2 enabled. Without {-mavx512fp16}, > all operations will be emulated in software and float > instructions. > +
  • Mitigation against straight line speculation (SLS) for function > + return and indirect jump is supported via > + -mharden-sls=[none|all|return|indirect-jmp]. > +
  • > +
  • Add CS prefix to call and jmp to indirect thunk with branch target > + in r8-r15 registers via -mindirect-branch-cs-prefix. >
  • > >