From patchwork Tue Jan 11 13:31:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 49842 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 B37F03858D39 for ; Tue, 11 Jan 2022 13:43:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B37F03858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1641908605; bh=05sMhkAFxe482Ufw7DQj4Yn8RlGAJFX9JH+POhr1+CE=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=iK0JgsvfQNXqfp5uEaGxHZtnauCzfLkL1Y8N2viaty70keYm808sCW3FxAp5Tr0TT skv4uz83ipO2NqSdcXlXuIqgeDIXaBFMRixrcvId0xo8sM6CW3ZjVrgas+qhvRvl24 wW9EqMRV3zquszma83/5MlcXFZ4CM/OCaUbcdhG0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 33CB638A9405 for ; Tue, 11 Jan 2022 13:31:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 33CB638A9405 Received: by mail-wm1-x330.google.com with SMTP id f141-20020a1c1f93000000b003497aec3f86so1822223wmf.3 for ; Tue, 11 Jan 2022 05:31:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=05sMhkAFxe482Ufw7DQj4Yn8RlGAJFX9JH+POhr1+CE=; b=wAGldDTv6984DZUmSiPhxdZhPHNxyitgiRI+jQeyJpiq1dolC3qPMIJZszPPnAXmyj JcGiVkETnEenPvhb8VqlQ6Ya7Gal1IbNScMH3PxSjq699c2mElMEUzyGMBFZlg0cUavF h23irCT+yqfzEMedIJw4KofpDub1aEUVkqgEnGrrbyut2swBH9U3yJPLKoi/lpT+hoOX /+H3R6jeigtBO/W2hiSq7Gt5fdz6Dt7P0hBen8Gw9pR8SBmRD+6OKnfYXjGDTJyZy7jT 7L2DiPfmB3+SehcbMvAnMI2rRrDeYwJYzwo6SVSi4t9tVfm7ermgKceimiNzbdWuP2I6 2uLA== X-Gm-Message-State: AOAM530ZePnptOWbRLY1cqtahcRC7xGyG2FmymYFfXypTzrChIEFUPd6 bodlixW1mpRNCKvH7zrkOPn3neCNehP/GA== X-Google-Smtp-Source: ABdhPJwSCnyRUeHus84tUeN74u0TNCn8MsrG5RTqnq+35gpTs6PL/iwMbqUJQoHPxuD7IlxxFLGm+w== X-Received: by 2002:a05:600c:4a22:: with SMTP id c34mr145209wmp.150.1641907918205; Tue, 11 Jan 2022 05:31:58 -0800 (PST) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id p1sm10021198wrr.75.2022.01.11.05.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 05:31:57 -0800 (PST) Date: Tue, 11 Jan 2022 13:31:56 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] Document LLVM-specific flags Message-ID: <20220111133156.GA748447@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-13.2 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: Pierre-Marie de Rodat via Gcc-patches From: Pierre-Marie de Rodat Reply-To: Pierre-Marie de Rodat Cc: Richard Kenner Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Add documentation for new -gnatd_u and old -gnatd_R flags used for GNAT LLVM and its CCG. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * debug.adb: Add documentation for new -gnatd_u and old -gnatd_R flags used for GNAT LLVM and its CCG. diff --git a/gcc/ada/debug.adb b/gcc/ada/debug.adb --- a/gcc/ada/debug.adb +++ b/gcc/ada/debug.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2021, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2022, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -159,7 +159,7 @@ package body Debug is -- d_r -- d_s Stop elaboration checks on synchronous suspension -- d_t In LLVM-based CCG, dump LLVM IR after transformations are done - -- d_u + -- d_u In LLVM-based CCG, dump flows -- d_v Enable additional checks and debug printouts in Atree -- d_w -- d_x Disable inline expansion of Image attribute for enumeration types @@ -183,7 +183,7 @@ package body Debug is -- d_O -- d_P -- d_Q - -- d_R + -- d_R For LLVM, dump the representation of records -- d_S -- d_T Output trace information on invocation path recording -- d_U Disable prepending messages with "error:". @@ -1001,6 +1001,9 @@ package body Debug is -- after the pass that does transformations to the IR into a -- filename ending with .trans.ll. + -- d_u In the LLVM-based CCG, dump flows, both when originally created + -- and after transformations. + -- d_v Enable additional checks and debug printouts in Atree -- d_x The compiler does not expand in line the Image attribute for user- @@ -1024,6 +1027,9 @@ package body Debug is -- it is checked, and the progress of the recursive trace through -- elaboration calls at compile time. + -- d_R In the LLVM backend, output the internal representation of + -- each record + -- d_T The compiler outputs trace information to standard output whenever -- an invocation path is recorded.