From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by sourceware.org (Postfix) with ESMTPS id C0DC9385828D for ; Fri, 12 Jan 2024 03:19:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C0DC9385828D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C0DC9385828D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1132 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705029578; cv=none; b=OH8kKNmW8PHiFizp+UFtKhRK5obuYpGXgiBLzOENDafDJwSjqVyqvTlmlycFNbe7dT3TNgNzrU0OwSni5FURu4ZbwwNTN7ZQ7mmlAN/ZOmNn0ox9Pg2jnvckyyk+cikuiNGK45vx+RLPRMGYFl6lpEiG/xvvyALR9w3KokNpQmY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705029578; c=relaxed/simple; bh=Heq69TqzJn/5E/8kO0jMuju52p773xIVxlkgAj58Bvg=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=OcP/EOEgcYjaXwaLmHZ24wUZQUjn94EsLxTdFTaYC038U+oRxx5SOPcSNtB2DAaJzJS7iZTIqEyeFtuguFIIyfAPackhv7T1YAoiqkg1vGO1LEACOE4VdT9alCTksMbymmZYRqsSFaBd+L4ANtuqq9xcAuZzmNTYVgXDiPTOVCc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5efb0e180f0so63512727b3.1 for ; Thu, 11 Jan 2024 19:19:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705029576; x=1705634376; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MLJFAXSIyVr6d73Ybe7VZjoJdXoM6L3PDH2MMAxWeZQ=; b=cIyjXEJ9GdLFJrhi8vSbklNMScwZMIQykLeWqrdTlAdqdUf5GQ6+tqEJ4NgbrbKkki UbS04ukUKYdij5yCs8rIq9vgU9N1gpIO5nrV8y1nRUld9WX/rsTnMcw4mhEBV5Cp6o7j /qbRcxoV/KzjjhAY0BuGjXJxH7nS4Z2Hid/E1SFVqLd4sbC64CifrK3GQT451yeE8ybn uRSrZPe+XzfRIueQ7Soj5AgzkI2Dtx0IIHmsP/EjsAScF5K3CInUxDzhGqdwuU3lXIrS ZQmrSmBUatQ4vBajrqbqAHhTjfQG1vxozKra/UndmCqFXCA+pxqRnxRrRgdlFppROyRv ENDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705029576; x=1705634376; h=content-transfer-encoding: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=MLJFAXSIyVr6d73Ybe7VZjoJdXoM6L3PDH2MMAxWeZQ=; b=KHUPSedKKAZzLSS8wEch2A3yVByHiGhTf3LGAB2j4Q/1XrbVsf0FnpDto3WTnxyc4C OtXKaLWc3Xuet5z/zeBaTf+cT47bSr+Ilelef/gX3JVOiYzVYZ+7HCl6aTK2tUpQ33G3 o+eTnOo2n95SHZwZwhUzSA6QM64I1MYkidoE4wF7bzIUHRSlFzQmkDePOzhGgq3ouvmy CrLdtUr862+u36EeMHo/c9IfPhCKwUunU5JkKEIXi1A+2n90H9AbVK/ZjNTSJ/LnUeWH oK7PNFY9zEYZ0Zzn42pXRCg3sQZlCX/nTI6o9eZD30cXc8BxSbbeoVNxOk3xshUV0vzT T9Tg== X-Gm-Message-State: AOJu0YxVDYQYCYMN7MmMJmkrFYSryBvbrqydeMBhXj6Ol+BPdCtdOMOO Li+Ta97aIgh/HF613eWsk0zwxWI7v9/AFDuRW6TvfqCvWUM= X-Google-Smtp-Source: AGHT+IE8JrmzrcVm4L5qMfJ3dhy/Vm6ohfJxRZEbyr6JOfSLceA7IjIlkgNLjQIx76lB3Fl0FGFxNWsCEDokDnNO5iw= X-Received: by 2002:a05:690c:110:b0:5f7:992:b018 with SMTP id bd16-20020a05690c011000b005f70992b018mr787569ywb.5.1705029576057; Thu, 11 Jan 2024 19:19:36 -0800 (PST) MIME-Version: 1.0 References: <20240110020210.2062140-1-hongtao.liu@intel.com> In-Reply-To: From: Hongtao Liu Date: Fri, 12 Jan 2024 11:29:10 +0800 Message-ID: Subject: Re: [PATCH] Update documents for fcf-protection= To: "H.J. Lu" Cc: liuhongt , gcc-patches@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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 Thu, Jan 11, 2024 at 12:06=E2=80=AFAM H.J. Lu wrot= e: > > On Tue, Jan 9, 2024 at 6:02=E2=80=AFPM liuhongt w= rote: > > > > After r14-2692-g1c6231c05bdcca, the option is defined as EnumSet and > > -fcf-protection=3Dbranch won't unset any others bits since they're in > > different groups. So to override -fcf-protection, an explicit > > -fcf-protection=3Dnone needs to be added and then with > > -fcf-protection=3DXXX > > > > Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. > > Ok for trunk? > > > > gcc/ChangeLog: > > We should mention: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113039 Changed, and committed. > > > * doc/invoke.texi (fcf-protection=3D): Update documents. > > --- > > gcc/doc/invoke.texi | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi > > index 68d1f364ac0..d1e6fafb98c 100644 > > --- a/gcc/doc/invoke.texi > > +++ b/gcc/doc/invoke.texi > > @@ -17734,6 +17734,9 @@ function. The value @code{full} is an alias fo= r specifying both > > @code{branch} and @code{return}. The value @code{none} turns off > > instrumentation. > > > > +To override @option{-fcf-protection}, @option{-fcf-protection=3Dnone} > > +needs to be explicitly added and then with @option{-fcf-protection=3Dx= xx}. > > + > > The value @code{check} is used for the final link with link-time > > optimization (LTO). An error is issued if LTO object files are > > compiled with different @option{-fcf-protection} values. The > > -- > > 2.31.1 > > > > > -- > H.J. --=20 BR, Hongtao