From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by sourceware.org (Postfix) with ESMTPS id 9936C3858407 for ; Wed, 10 Jan 2024 16:06:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9936C3858407 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 9936C3858407 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704902810; cv=none; b=MSd75WHp0sGAPOeBjG1ZnM5E35zU8UOu+EPnBBeytVpq4KVIC6E4DzY/tqonI0VV6+Y+nsQg5Kdj9vvym01ot5Qn6jkR1GJetYzGy/wtWc7I38Ac1WOEuA+4eJyiZ6nACEy9ATa1j07CuoXAfKB/kzk2yU2bE1nnr75sG+5CCdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704902810; c=relaxed/simple; bh=XH2mOqbsvZ+Fg2RpD4xKlunFOB7LrsPw6GX4aEkXQZc=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=oE3G907x8eSheUDSHVoLEip6ieYNkqKjbCID5UIRTehhHpxDaUz93A0t0lwyHaqEOLtQez/+JLRDGABH9mWuJQXi89ipHJ5l0iW/3dLNn1Vgau7p/s4M/QWB60rqGHzz+cDZM+hQdAMcTIM0VpjWHh/izlzDyjKRRXJRpesaMFI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5ebca94cf74so40147297b3.0 for ; Wed, 10 Jan 2024 08:06:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704902808; x=1705507608; 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=WA306YZHrG7KaAH23AniMdqKvz/hKzRbw7Jopfh39E4=; b=CeZqtXrronWIUoMTeLHgXoRgPI7Wl/Cui9H7GeTUmxE19DeBTxo4zUoM0EXBZbIkgo dd5l5zXHqtsNqn1lZQo9d/5uyPeU9TtS39/+e16A0ifmJEDF9QHaDqlJj54qiPgo86g0 f4GfIBTLsYsnOyLky10r0h7kW9jx8SiooWb9UROGADr2W+CPusYzCBhfeH4Jat+YDxCl Hbwrx6xVjpYBRFj/wjU4BRpDkSR/JbYDwAzuB+CDtP7xY3GFD9bXCy/e8f4DcTROB7Q2 Q0bnyTGpVCjVCgD9JYvLQaEajVyyhdZaKsoFPVRfkK8oX7lgRZnGhv6cAnN9yTBGcn7s 18+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704902808; x=1705507608; 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=WA306YZHrG7KaAH23AniMdqKvz/hKzRbw7Jopfh39E4=; b=TT0weFFdEBLi9HueGoaWfv1oSehRhpLE1m9U8bcuceVC5R8/D5+HkcBpYLNiK9FiGu rpVxE4b1WZANiqOKJt2ccTEMcO0pfZuL5uISql+5bV7QC4FgqcnP1I6XfRqtTxaaqWDe VL4Phs8TWse0cXaZ7rDnif489nVp0afTf6tXQdxNTxuM+9dU1iZsvfBpJKU2IxoJh8wq 62S/9to79XncDf0xq3KESy0d55302pKDBjM+uY0N9yLm6sMkwpnoW1eq4HD4biG2hhzO FBzBGM934TUcL9rLwhd/eZmM6nTHE2T/yd3env9lhwaiEMBb9KdE2XCIzAkNL/claZLk QQpA== X-Gm-Message-State: AOJu0YzaK9p6aiwP2wP+34WeDeuT2BcyGDIvT+9mKMElkKKruGNMbC7J TB80RdSjbEiIZvdMLEUUTfGpu+zQugXx1DYeX94= X-Google-Smtp-Source: AGHT+IEE6Jt0IPEKMTZFl0OUnM54x8f1qtZp4+ht2jK/uyPVlMAk/6BchaWoEfbxJIoXdVZToE+d6SPFFHpqzlpza/4= X-Received: by 2002:a81:49c4:0:b0:5f1:bf5f:7e86 with SMTP id w187-20020a8149c4000000b005f1bf5f7e86mr990389ywa.50.1704902807938; Wed, 10 Jan 2024 08:06:47 -0800 (PST) MIME-Version: 1.0 References: <20240110020210.2062140-1-hongtao.liu@intel.com> In-Reply-To: <20240110020210.2062140-1-hongtao.liu@intel.com> From: "H.J. Lu" Date: Wed, 10 Jan 2024 08:06:11 -0800 Message-ID: Subject: Re: [PATCH] Update documents for fcf-protection= To: liuhongt Cc: gcc-patches@gcc.gnu.org, crazylht@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3021.6 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 Tue, Jan 9, 2024 at 6:02=E2=80=AFPM liuhongt wro= te: > > 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 > * 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 for = 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=3Dxxx= }. > + > 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 > --=20 H.J.