Message ID | 20240110020210.2062140-1-hongtao.liu@intel.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp529566dyi; Tue, 9 Jan 2024 18:04:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrEb1cLo5e2msAsU+ZFbLJmKZpy//tLvRNmZB3WCYuAOLLS/f8OgEhCALE5zEG1SF1kC84 X-Received: by 2002:ac8:5c07:0:b0:429:ad69:d105 with SMTP id i7-20020ac85c07000000b00429ad69d105mr463629qti.43.1704852256088; Tue, 09 Jan 2024 18:04:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704852256; cv=pass; d=google.com; s=arc-20160816; b=JT2vQ4pM/kDi68zPXTSEDMEIXmFkCcMr4S+AUhaujGGuBJjsZ/SyDf5zmh0ZBBYik6 Ci0UlKWnvZdU2nr4aV0eN5p1CoNSpvjcAn5HzSdJS5wvChP5vqtRcqYuWb8/uEaRzCcg Rb/AN61hIw4l1BC88ziIvSJsI6cTtIBUqB/4EXCM++m5Ldw1E5Q7gr4tJfwMwhSqN4Mz RhT1/vCY9s3x40TSI0BZ/886tYKWeivkHebXOSxODWFH4T+G2kLWdZpEmAG3p+A+O3E/ M2RgDPlka+Y4jYkmAAXINalHvHxiD0sCVbNtvx6BRafFu10GpHKti7YcNXxMrtYVBYPe 2QVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=kMzHBqk+sIrnoUUrn83zyCw8hzgNpidYjXlbenxlXg0=; fh=ChXOctppJn0KECDRINafwUY5xHRufGHaa0Ju9pddrcQ=; b=Lxg+ybY2Jc6zcCidf+vtN9ruGpiZ9hPGeO7cxcsvgzCSyVQoYTJg6fpyZKZ7eomcdO ySsIo+BoAOm7NKBtWy0JkJk7NtlcE/m9MyqAvUolEoLIPl/goPt0xI+zEscnTOkbDMMI kdpSG7IwI3nTqLcQG52WeqxI+yoY8qTlo+hv53w/sDK2qDrXcOXzgymuOtBauOvBBhQ0 honbIC3fv0Fmmr2gZbRS1sN8CcJkG9T+cnUJwUnWAIr5+VC+9BM+cUDGMp9gW7Oe8vh1 FjQIB3dNY/OMPiB/OWdqvyrYCTatqY/oSqOnd27kSDI6VvdDbbm766p/aNUXpBegFPgk iOWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PbYP8GTI; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j3-20020ac85c43000000b00429a8380e19si2175213qtj.247.2024.01.09.18.04.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 18:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PbYP8GTI; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C7F2D38582AC for <ouuuleilei@gmail.com>; Wed, 10 Jan 2024 02:04:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by sourceware.org (Postfix) with ESMTPS id 8A5BE3858D33 for <gcc-patches@gcc.gnu.org>; Wed, 10 Jan 2024 02:02:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A5BE3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8A5BE3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.55.52.93 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704852166; cv=none; b=mX8Rpc8cl6MxXnj9DFlhJfVbrUkU/dwDYHOkxC8p4uwFI9/8V7Y/nJbYuLKFz6O9gpL0l+6O+0glsEIM0yd+r3iAP85DMbXBqOhfstb4/bRbtnCe15Q0Xeiu+hJx527zrb5kSch+cVXJHGozYeb4wwel1q+sk0KetJOi0BS7Js0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704852166; c=relaxed/simple; bh=aVBiaMUFIAw4Sq2DVh+IoRhIyljbn357izpwcf0qSWc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=t0HWBeOWzHyJduPmvlFWmTWkzXcdUuE6kzJFJGAvqVq7sBDFLZOsrav+IPTJBwL/Z2SRWgIKHjNCAv6agfK+dY8GItPlNgI1HYFT0aUzIsZTvJZZTvKpEvjjoF79QdNTLzGmf6+uZdPxANrJa8huRKo4fSBbY6sfTcW5QeB1WYA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704852134; x=1736388134; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=aVBiaMUFIAw4Sq2DVh+IoRhIyljbn357izpwcf0qSWc=; b=PbYP8GTIW5gCqm0SyUzIGsW1K6k/sqkLgKIWGRpK1jrUpnGcvA7v/FBv FxDhS94bUHYDDc1Tsr7Fe/jf/InGNkpYh7XG7QhrnAQ9HD6U+YnnjzdY8 pB4aSQKv/LRDvFUlrkhKREeO02TLDzs4Nauzu214Fn//H9xEdOVJ32W/n arLuFnoOfJS5Xl4WyGWFaOtfyadERYejoYUjcpd5Mk16OEAY5mfkpWLcP 2lW776+IsQSmFxJRul6YXNgPAobCH6meLlyz21lZ5UOjtvHpHb1k1KPrL kdrqt7mByhEIBjaJLYhQTOrtQspsMA1fJQxb8toO9Vi4oGuOw0ZPaONNJ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="395539987" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="395539987" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 18:02:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="925469835" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="925469835" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmsmga001.fm.intel.com with ESMTP; 09 Jan 2024 18:02:11 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id CAF4F10079D5; Wed, 10 Jan 2024 10:02:10 +0800 (CST) From: liuhongt <hongtao.liu@intel.com> To: gcc-patches@gcc.gnu.org Cc: crazylht@gmail.com, hjl.tools@gmail.com Subject: [PATCH] Update documents for fcf-protection= Date: Wed, 10 Jan 2024 10:02:10 +0800 Message-Id: <20240110020210.2062140-1-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787667159406529716 X-GMAIL-MSGID: 1787667159406529716 |
Series |
Update documents for fcf-protection=
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
liuhongt
Jan. 10, 2024, 2:02 a.m. UTC
After r14-2692-g1c6231c05bdcca, the option is defined as EnumSet and -fcf-protection=branch won't unset any others bits since they're in different groups. So to override -fcf-protection, an explicit -fcf-protection=none needs to be added and then with -fcf-protection=XXX Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: * doc/invoke.texi (fcf-protection=): Update documents. --- gcc/doc/invoke.texi | 3 +++ 1 file changed, 3 insertions(+)
Comments
On Tue, Jan 9, 2024 at 6:02 PM liuhongt <hongtao.liu@intel.com> wrote: > > After r14-2692-g1c6231c05bdcca, the option is defined as EnumSet and > -fcf-protection=branch won't unset any others bits since they're in > different groups. So to override -fcf-protection, an explicit > -fcf-protection=none needs to be added and then with > -fcf-protection=XXX > > 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=113039 > * doc/invoke.texi (fcf-protection=): 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=none} > +needs to be explicitly added and then with @option{-fcf-protection=xxx}. > + > 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 >
On Thu, Jan 11, 2024 at 12:06 AM H.J. Lu <hjl.tools@gmail.com> wrote: > > On Tue, Jan 9, 2024 at 6:02 PM liuhongt <hongtao.liu@intel.com> wrote: > > > > After r14-2692-g1c6231c05bdcca, the option is defined as EnumSet and > > -fcf-protection=branch won't unset any others bits since they're in > > different groups. So to override -fcf-protection, an explicit > > -fcf-protection=none needs to be added and then with > > -fcf-protection=XXX > > > > 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=113039 Changed, and committed. > > > * doc/invoke.texi (fcf-protection=): 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=none} > > +needs to be explicitly added and then with @option{-fcf-protection=xxx}. > > + > > 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.
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=none} +needs to be explicitly added and then with @option{-fcf-protection=xxx}. + 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