From patchwork Mon Jan 23 13:39:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinath Parvathaneni X-Patchwork-Id: 47152 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1613947wrn; Mon, 23 Jan 2023 05:40:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXuLvGNiqEP19XyCCvatXZ410WGgwibtxI05nr3EagbrXtapF1ag6VTi0jcNABroEjvRAFzR X-Received: by 2002:a17:906:e259:b0:84d:4923:366d with SMTP id gq25-20020a170906e25900b0084d4923366dmr25901692ejb.44.1674481252668; Mon, 23 Jan 2023 05:40:52 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id sb42-20020a1709076daa00b0087118b6b5f4si29586713ejc.495.2023.01.23.05.40.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 05:40:52 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=RSx8JNnj; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 573143858C39 for ; Mon, 23 Jan 2023 13:40:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 573143858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674481251; bh=ONBhq0uRdfjfiszvTJA1QDXsuSD2ycWteDpajHDHOE0=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=RSx8JNnjNS4FbNjF0mJzmdneP6cWwBR6sQUplNxia79KCMIituYtPleHrblCpf+XN NSLuzIlWwk08AXgSr4KNFldIU2DgxhRASk1mN0g88ccPSNIjlMmx9SL1oN4CjE75cV EvyQzUjsgL7K3cn8mJ7Ng2C4Biwco9pia4wuha54= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2046.outbound.protection.outlook.com [40.107.249.46]) by sourceware.org (Postfix) with ESMTPS id 1DEF73858D32 for ; Mon, 23 Jan 2023 13:40:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1DEF73858D32 Received: from DB9PR02CA0006.eurprd02.prod.outlook.com (2603:10a6:10:1d9::11) by AS2PR08MB9811.eurprd08.prod.outlook.com (2603:10a6:20b:604::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Mon, 23 Jan 2023 13:39:57 +0000 Received: from DBAEUR03FT027.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d9:cafe::23) by DB9PR02CA0006.outlook.office365.com (2603:10a6:10:1d9::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Mon, 23 Jan 2023 13:39:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT027.mail.protection.outlook.com (100.127.142.237) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Mon, 23 Jan 2023 13:39:57 +0000 Received: ("Tessian outbound 6e565e48ed4a:v132"); Mon, 23 Jan 2023 13:39:57 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 243b20bb84ea087e X-CR-MTA-TID: 64aa7808 Received: from 5d6e7d5d1f0f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 626BD2E2-E443-4418-9614-556E789AB331.1; Mon, 23 Jan 2023 13:39:50 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5d6e7d5d1f0f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 23 Jan 2023 13:39:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bkHP/sEDkSXKC51tv6+3vuXmrlyJJbXlmCPedE0E9OUZcKzWHtPSAzoqbWPJn2pk3SsoO9xHmR2vrLMFceYSjWCOFR929iKoXJ+q7PgecgXz0yFi+S/kBFfrOW8/zMIefOjafIhMuneeHbmqkBdo3cGmDdJMB+YXUkNAFEcur+uFrTWBRJjvqCtAExguRTqEeUAH/1VYoyVdr1psk62WZOnWEvOUT3TpVNHwhM5fmoq2jRL/EmluuzqxRFrXr7NFHr85RA1wBBSmEznqTnNV+gmJnOQ8NfXAe+gKlr6dYtgrovAnXywkB3NV+Xf2KTahYI3PGB2oUlvIUddDiX2bNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ONBhq0uRdfjfiszvTJA1QDXsuSD2ycWteDpajHDHOE0=; b=LFJGm6RImffJwRsUmMFhPPa1Ij5RGParf0RggKJq8LX1JiyIL+kfExgLlZ13c+ZSXseMmWRW0qqOO4W2xFbpbLrKX2B1rZu/fMyPm6DJ5DPwWzSDp98ZU+XaIe42vPBIYKVeLFWaxoUqNsX3jptO84x50teWIu/G7xuJ03xmOkF61oWsXlNA9DtKNWa4r3srzWDVp/BX5aoUqBVnssMkhqD0bqmaDMrmNocmKSyw1lQPDEvF0UYjs8WDAIbzheoGuiGzqeW/FYgj2MCslsSJt3T97nvW7r2Qnov8Y9uiiG/ewZLv9jLhWpm2oZFqsT2fJjhd8+/8aoYqnvTFTx6wkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from DB3PR08CA0023.eurprd08.prod.outlook.com (2603:10a6:8::36) by AM0PR08MB5380.eurprd08.prod.outlook.com (2603:10a6:208:183::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.28; Mon, 23 Jan 2023 13:39:46 +0000 Received: from DBAEUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:8:0:cafe::93) by DB3PR08CA0023.outlook.office365.com (2603:10a6:8::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33 via Frontend Transport; Mon, 23 Jan 2023 13:39:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT054.mail.protection.outlook.com (100.127.142.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6023.16 via Frontend Transport; Mon, 23 Jan 2023 13:39:46 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 23 Jan 2023 13:39:46 +0000 Received: from e120703.arm.com (10.2.81.20) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Mon, 23 Jan 2023 13:39:46 +0000 MIME-Version: 1.0 To: CC: , Subject: [Committed][GCC] arm: Documentation fix for -mbranch-protection option. Date: Mon, 23 Jan 2023 13:39:45 +0000 Message-ID: <3cf85bee-425d-4c63-93dd-462850f343fd@AZ-NEU-EX04.Arm.com> X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT054:EE_|AM0PR08MB5380:EE_|DBAEUR03FT027:EE_|AS2PR08MB9811:EE_ X-MS-Office365-Filtering-Correlation-Id: c084e1e5-c4f1-43a3-a3b8-08dafd47515b x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 1WOwPU6Uv2BJOeYdoS8P9dckYE6d0CitlDc2N/SwcFdu4IGn6NMR0R5dK6dyOvKnXtPjFvC+YWuqbyoKXf4Ms50Ukm51CJXp74i2A15X5pRgUznpXqDLRTB1XY9eN9cslfFvQPfOwun88H8jfZXtI0u5Q8PAHzw5uW2QtL6B0IDpNHg+yUIj3s6qnEGouBY+/Fd5qgpye1MGQXZcbiA/SHsJVX1XQs0mwZZkx/J9WiKBt51m4cZlqugpIXmwk3PRaWi/nLSMBTxx5X8+UZsmXf2q1OrUUBO6FqJXnrTPJGkdGCPnZ3Ry16CcthpdaK4Dr68UTNvAVELVbEwHJP4O0elYiLHgPuMCmDimRhDQEMoUMRXfYrtF5KDNb2Xai4lA5n/ZK+mbxyh+DKNV8dF6FpdbZGVUzGtx6EZBoKjosQ1+KrJVALyVGo7GxAm21oID9jOMWdXbdFTf4xUoG4Blsfcu5v8j0Arxxi/C8esOlWvgViK8CFm+fpqbt3ArbTEEC0Lo1hsCeCJ0i4ii/epJ6fkpjDugCvZXS66zfkXVbs+XtFOYzDBjOo2znAs0eADovKJP07vtn/cC2SYDksmwUhFG+jX57joTH1d6ZXDYsy1sN06WjK6YKIDqB3xykjdd5Ct7TWUtrLY0LeagVFpTaQwBlzv71ElC074OPCd5And3ErAt/i4faGaJm5jxf2Lr6swJ0I2WxULuX3W+GLez7cdHPD2Ur0EL6isiFPPITVXrhMY2Ega/t6dGgywqoa+M X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(136003)(376002)(396003)(346002)(39860400002)(451199015)(36840700001)(40470700004)(46966006)(336012)(40480700001)(86362001)(40460700003)(478600001)(316002)(54906003)(31696002)(44832011)(4326008)(8676002)(70206006)(5660300002)(235185007)(2906002)(6916009)(8936002)(70586007)(41300700001)(36860700001)(81166007)(356005)(82740400003)(186003)(47076005)(26005)(33964004)(83380400001)(426003)(82310400005)(31686004)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5380 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT027.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 164cad0a-da28-4639-a818-08dafd474af2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yvOP5pfa8RX8WtDZyZg/Q+xOqtve7SSibjIrAUfQO688L64ZHGgRna1j6bui7KuadPK9mNwRXi6CjBSuLLy5rNqrCe53VnsNRJyo5jnaq7o02+2hch/UoXsy9Wr0l/jmbdiSmke4U84nDotGZR9oPyZQ2xXj3jG9R/7qGNZ+6SwzhoXwjqGowgV2n/tGyT/0fQsMVfkRi2CV3BiWbJa5ZrKkikQilkI6sB0axR5nZc+iRJhoKjbqx/yxRCS4UirFIVy0Wkqw+3LstzZ5nCjP1TU+Ow8KkFfMNeuF1EO+tPMIT75p1NbYjgMjSWaJHh8czuQvT1ErUm9i9Knmosh0h6XoKZhCqeHnS9QyaDSvqvYMuxtjrWJfWpZ5/0y3Gd/kQK9tL0NhXt04SaQum+L7smGdnXYV5oadn6HxUoJSFXHTF3bMdmaCrnWFcoq/jgKLCGBzOmgy/i1m4HoVL4q/35ePZmCYAtx1a/1q0j4GILyOoAuRRXiOb2FXruRSs8GRQ0ydmPCNMgi1XsqOgNRBVoB0vWNsiIHLVECLaZ+JLiUj+FSkawnPk9p9KaekZuXlGMGRwPU5IcdrzSsJE5dj1h9o3rha5PwOMsMqtYG/JDPBHc8U4pYU725STixyM7ZI7A6XeY1fssOVVNi9GmmaY0Qv7q+MffZACwyGUe+csO9bASx/NBmsYt4U/UxwiWfNIpgIeMDQP4Sk5gyH1Ny9NQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(396003)(346002)(136003)(376002)(39860400002)(451199015)(36840700001)(40470700004)(46966006)(82740400003)(82310400005)(40460700003)(44832011)(316002)(54906003)(31696002)(336012)(81166007)(33964004)(41300700001)(86362001)(8676002)(186003)(26005)(8936002)(31686004)(5660300002)(235185007)(4326008)(47076005)(36860700001)(83380400001)(70586007)(478600001)(70206006)(6916009)(426003)(2906002)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2023 13:39:57.5655 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c084e1e5-c4f1-43a3-a3b8-08dafd47515b X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT027.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9811 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Srinath Parvathaneni via Gcc-patches From: Srinath Parvathaneni Reply-To: Srinath Parvathaneni Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755820853995463267?= X-GMAIL-MSGID: =?utf-8?q?1755820853995463267?= Hello, This patch fixes the documentation for -mbranch-protection command line option. Committed this patch to trunk as obvious fix. Regards, Srinath. gcc/ChangeLog: 2023-01-23 Srinath Parvathaneni * doc/invoke.texi (-mbranch-protection): Update documentation. ############### Attachment also inlined for ease of reply ############### diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index f1c0b52012b8979070c265b7978810afe4601047..06d77983e30fff39886f360920fdfc521d2f69e4 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -22564,8 +22564,7 @@ The opposite @option{-mno-fdpic} option is useful (and required) to build the Linux kernel using the same (@code{arm-*-uclinuxfdpiceabi}) toolchain as the one used to build the userland programs. -@item --mbranch-protection=@var{none}|@var{standard}|@var{pac-ret}[+@var{leaf}][+@var{bti}]|@var{bti}[+@var{pac-ret}[+@var{leaf}]] +@item -mbranch-protection=@var{none}|@var{standard}|@var{pac-ret}[+@var{leaf}][+@var{bti}]|@var{bti}[+@var{pac-ret}[+@var{leaf}]] @opindex mbranch-protection Enable branch protection features (armv8.1-m.main only). @samp{none} generate code without branch protection or return address diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index f1c0b52012b8979070c265b7978810afe4601047..06d77983e30fff39886f360920fdfc521d2f69e4 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -22564,8 +22564,7 @@ The opposite @option{-mno-fdpic} option is useful (and required) to build the Linux kernel using the same (@code{arm-*-uclinuxfdpiceabi}) toolchain as the one used to build the userland programs. -@item --mbranch-protection=@var{none}|@var{standard}|@var{pac-ret}[+@var{leaf}][+@var{bti}]|@var{bti}[+@var{pac-ret}[+@var{leaf}]] +@item -mbranch-protection=@var{none}|@var{standard}|@var{pac-ret}[+@var{leaf}][+@var{bti}]|@var{bti}[+@var{pac-ret}[+@var{leaf}]] @opindex mbranch-protection Enable branch protection features (armv8.1-m.main only). @samp{none} generate code without branch protection or return address