From patchwork Thu Oct 28 14:00:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 46753 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1722B3857C56 for ; Thu, 28 Oct 2021 14:01:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1722B3857C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1635429701; bh=mXeYKLjlv7htxD8tQfJTDypQHTzSO/D2QYG8uJ6j8IE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=hQp4wS3wcFEfukF6bGCeWz571cwVYqQXzYK4apJiEkfL4/ustoS8rLdpp3+E66IZ3 FYVZlmqWmb1XanD3vED33/peYqgvPtbkFmqK/Mbz9kEhK/1FndyX0TT72QZSIMmSuB kkTPizFb6gEfhiPNy4KNtf2WBMgcqCsB5Ibj/yks= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id A779C3858416 for ; Thu, 28 Oct 2021 14:01:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A779C3858416 Received: by mail-wm1-x331.google.com with SMTP id c71-20020a1c9a4a000000b0032cdcc8cbafso2324039wme.3 for ; Thu, 28 Oct 2021 07:01:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=mXeYKLjlv7htxD8tQfJTDypQHTzSO/D2QYG8uJ6j8IE=; b=2HDrfmjxgaMWqvVkmjqpdP3aBh/DGsJ875xwv/R+z+84XbG1Tbr3NNgOC7DBV+dW0n HYHPKoouX2id+pSf2zEy96BegwGB+Hu6iBFe2YW1WtLQTlAfsJOcta7YCIhTgKsbripF SSwZMdBMV3s68hE4S2DG1ehx+ykvPKscF3hM2fDIcsGIDLHp1Wj64anSQbJrAtoEiHfQ qvXdyuG/cR30N4El7a7JbJY4c5mGmQI1HOYIn8jXn68JIMBFwh/frL5htglPHbS1bD2N 5FZ8GXtQPkMU/3dztQkMq3exenXgPc9r8qIGfQRZkLQs+JtPnoz6TVzmgt1Oe5nKaspd NgSQ== X-Gm-Message-State: AOAM532Rj6N5S83AHNLOE+x3wAHyqf6EqQBg2oB6SmTZoZfq7mLA+zK0 4jtg+d4bcWuf+M2eFVtFncqGUbTk3+an/g== X-Google-Smtp-Source: ABdhPJy+rGQWv2Aw2Opu5RFRs4hs0ovCEO/wAqjmKe//NU30oT6WcBDBbe19wTgD9swoGYmeiv1EhA== X-Received: by 2002:a1c:7413:: with SMTP id p19mr13005189wmc.141.1635429669694; Thu, 28 Oct 2021 07:01:09 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:41b:84f0:cf71:f5e0:b050:bede]) by smtp.gmail.com with ESMTPSA id f13sm3171519wrw.11.2021.10.28.07.01.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 07:01:08 -0700 (PDT) X-Google-Original-From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Update documentation of %X spec after 27 years Date: Thu, 28 Oct 2021 16:00:57 +0200 Message-ID: <1874663.PYKUYFuaPT@fomalhaut> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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-Patchwork-Original-From: Eric Botcazou via Gcc-patches From: Eric Botcazou Reply-To: Eric Botcazou Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" The current documentation states: "%X Output the accumulated linker options specified by -Wl or a ‘%x’ spec string." The part about -Wl has been obsolete for 27 years, since this change: Author: Torbjorn Granlund Date: Thu Oct 27 18:04:25 1994 +0000 (process_command): Handle -Wl, and -Xlinker similar to -l, i.e., preserve their order with respect to linker input files. Technically speaking, the arguments of -l, -Wl and -Xlinker are input files. Tested on x86-64/Linux, applied on all active branches as obvious. 2021-10-28 Eric Botcazou * doc/invoke.texi (%X): Remove obsolete reference to -Wl. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 71992b8c597..f50a990e629 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -32832,8 +32832,7 @@ Substitute the contents of spec string @var{name} at this point. Accumulate an option for @samp{%X}. @item %X -Output the accumulated linker options specified by @option{-Wl} or a @samp{%x} -spec string. +Output the accumulated linker options specified by a @samp{%x} spec string. @item %Y Output the accumulated assembler options specified by @option{-Wa}.