From patchwork Tue Mar 5 16:16:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1908341 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=OhLN21Uj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tq11H11Lgz23cm for ; Wed, 6 Mar 2024 03:17:23 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 14C833858299 for ; Tue, 5 Mar 2024 16:17:21 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id D81AA3858D20 for ; Tue, 5 Mar 2024 16:17:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D81AA3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D81AA3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709655424; cv=none; b=XQW3A8Sxq+l+nLfHUXTngwXlYR8NNaKMytKAf4C+WRpDqORG7x3d078TKGdsBliA/+tlQoUfoWm0EV/3xqCQz2XQnwEt/tjdQoUzkhRu/yybC3uYTGlo6LOlCVhhDoEXicQ1bMPzU3tVK3NxReqaCrS8cXG1ipjLj/bNeUD7M1g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709655424; c=relaxed/simple; bh=DWYHpnWML4RHAjB2SYQkzTPsnjIdxLjGhpeTn9MrfTU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=D2OJznFiyRzNflQTvZ/hAKHnwnUDxPaay38GgYu9hgGO53+5lWdtfwtpLJ3Pcftvr14DTQ7ZGK+sESF9LYYsD6F16Sa9o/ylZqzHg0N1mqG74uE+IPPlL9npkXEL9N0zBOC0/Tkh1nWCCMm8/N9vxLeAiZR5Wr9gbPdktDl4pr8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709655422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gQqmot1+0BvbQX6ZspM/FQBIsqQWe5qkEtUOXOgKM+0=; b=OhLN21UjvAwRt3PBvdERMaMeACanmt/bkbN7dUfAQpcQlb9F/p/fQdAWTyM8XCY04e7Nhc 7s5C875Vj8qE2eJzvJg9Z1voorpAoZKV+GrVouFIhdiO400GqX0kL7+g59X166R9JCICy6 l1SG9DhwGJALf0iykDvC0r+qTf7aYdE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-552-HeIrOHBtOU6iaN1FpOAwRA-1; Tue, 05 Mar 2024 11:17:01 -0500 X-MC-Unique: HeIrOHBtOU6iaN1FpOAwRA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C02CA1C05138 for ; Tue, 5 Mar 2024 16:17:00 +0000 (UTC) Received: from localhost (unknown [10.42.28.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F22D2166AE8 for ; Tue, 5 Mar 2024 16:17:00 +0000 (UTC) From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Subject: [PATCH] doc: Fix docs for -dD regarding predefined macros Date: Tue, 5 Mar 2024 16:16:00 +0000 Message-ID: <20240305161659.332828-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org OK for trunk? Or am I missing something and the docs are right? (sometimes? always?) -- >8 -- The manual has always claimed that -dD differs from -dM by not outputting predefined macros, but that's untrue. It has been untrue since at least GCC 3.2 and probably even older. gcc/ChangeLog: * doc/cppopts.texi: Remove incorrect claim about -dD not outputting predefined macros. --- gcc/doc/cppopts.texi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi index fa8f3d88c89..5b5b0848ae8 100644 --- a/gcc/doc/cppopts.texi +++ b/gcc/doc/cppopts.texi @@ -524,8 +524,7 @@ interpreted as a synonym for @option{-fdump-rtl-mach}. @opindex dD @item -dD -Like @option{-dM} except in two respects: it does @emph{not} include the -predefined macros, and it outputs @emph{both} the @samp{#define} +Like @option{-dM} except that it outputs @emph{both} the @samp{#define} directives and the result of preprocessing. Both kinds of output go to the standard output file.