From patchwork Mon Sep 2 08:24:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 1979563 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=lfV+rTcj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4Wy1zg2jrKz1ygC for ; Mon, 2 Sep 2024 18:25:51 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9DE9D38654B3 for ; Mon, 2 Sep 2024 08:25:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 9E7F53860756 for ; Mon, 2 Sep 2024 08:24:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E7F53860756 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E7F53860756 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::434 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725265494; cv=none; b=RaYk4REizqfBJp9RKopiH2nSVIeCZadev6qVq/cXzIttl4iwPm/hpgzGKDzlk5odmemRiQmvGXaDwus68utJBGYtJmjTpLipPG0N604RL9u1wK8fE+k6WQIcYIPG1jrI9MWMAtO0yXFA0v17cS3vAbt9dIN7Q56TKZeIH87iHe0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725265494; c=relaxed/simple; bh=qIK8TbbQs5IxAVkvgcp9Julp6ohI0+tOw6/iexKMubs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lDDwaHow+l1tigaNpR4pZJeizJkU8keukw74tbq/cHHE91U+8HaqcXuxabXX8ayUO8iksjQzFH1vshBD6jzqRRZy/JldWhbiGutshVZ7P2mPRv9gdsN9i7sbNivED4IP1rrcTMIaYrCpezaeD386WpGIVrdcRGzxfG9Gf3gxp+A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-371ba7e46easo2618749f8f.0 for ; Mon, 02 Sep 2024 01:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1725265491; x=1725870291; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XvzJEZf/UZSwwE0C+rqNQZJL6xnSgdRnVhAEfqQ53Jo=; b=lfV+rTcjx6Fof4MyIm7YnEb+voMzMI8KTxHzzEG2/74uuZwwS3fA3UZ6g2GkNaxxtQ 7Dw/GFqqJYTrn2K2VFpaj+SqXCnKjzZJFymiFtz0XxxXBCWIpknVIjjzK4fIrBO0AGAW LBd4kul3R81EmTj9nnJOkvNKhi3npFn7z2k/g6iEpvFsOZmGa4Xm5gqf/p7I2PLwlPxs ssOz9WR10OApU497bD6rli98iNU7BL2T1QqEjyDZp39KzztgFqJ2Wp+xI4giunztDMc9 C2SL0oO968XTrPz/U8JI6kybvpJTyET3gVNGo/e8JrPr0JXihtGAeHC+Xti630S7cWAl qOmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725265491; x=1725870291; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XvzJEZf/UZSwwE0C+rqNQZJL6xnSgdRnVhAEfqQ53Jo=; b=Y1uVrww2OIkWZpvHMeG3EIhS/qDCXsIWlI7VVY/I7RnlyO0FSoCc5iFrX8OwO76gp8 TbIf6W+5X2Ehumy+5u7NLy5YolIVsBd1VVf8USWxDU9EZ9k5mvMS/bcxAEYbkIUqYSCn 8v+1HYIXZam8AJXswUlw944dyHBi1CYEd6d1CEs9DrHsVwFmmwF4xcjw/YoItPSjcf7T 64QHOfPlREFht5bmU5ASZ1llkncaSlL8aac9M3rezJvnBAdiWql9ipiSpaVB5lAPFmCX Kqf+6orbeUfpY8HJkq4abgpVxX1W61bTw96//cUSR7j4KtHSRxpZ+6IWmAhExu8gbeeS 4IKg== X-Gm-Message-State: AOJu0YxJxKx4jipp7KI4ui2ZDGXQa/+/fLz15F31I/y8JMNUc6EVU3FI EfhEtw93d6/mHfDwquuB0TbWtdo+2JzTMYqQ6+LEWwnWmrSosNNZtjJxaeHmzM2iQmktB6D1MsY = X-Google-Smtp-Source: AGHT+IHRn1lx6ffLuk+8mGdyVRzBMAxa8EHwKsEwSyBtOVDNJTM/p+CG3k6SSeNA0evXh9F4riDndA== X-Received: by 2002:a5d:69c9:0:b0:371:8ec6:f2f0 with SMTP id ffacd0b85a97d-374bcea525bmr4188208f8f.16.1725265491008; Mon, 02 Sep 2024 01:24:51 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:830d:da2f:a98:f5d6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3749ef7ea91sm10782219f8f.78.2024.09.02.01.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 01:24:50 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Viljar Indus Subject: [COMMITTED 8/9] ada: Create usage entry for -gnatw_l Date: Mon, 2 Sep 2024 10:24:27 +0200 Message-ID: <20240902082430.1863631-8-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240902082430.1863631-1-poulhies@adacore.com> References: <20240902082430.1863631-1-poulhies@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 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, 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 From: Viljar Indus gcc/ada/ * doc/gnat_ugn/building_executable_programs_with_gnat.rst: update documentation for the -gnatw_l switch. * usage.adb: Add -gnatw_l entry. * gnat_ugn.texi: Regenerate. Tested on x86_64-pc-linux-gnu, committed on master. --- .../gnat_ugn/building_executable_programs_with_gnat.rst | 6 +++--- gcc/ada/gnat_ugn.texi | 8 ++++---- gcc/ada/usage.adb | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst index 4576009bc52..d8501b2357d 100644 --- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst +++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst @@ -3433,7 +3433,7 @@ of the pragma in the :title:`GNAT_Reference_manual`). .. index:: -gnatw_l (gcc) :switch:`-gnatw_l` - *Activate warnings on inheritely limited types.* + *Activate warnings on implicitly limited types.* This switch causes the compiler trigger warnings on record types that do not have a limited keyword but contain a component that is a limited type. @@ -3442,9 +3442,9 @@ of the pragma in the :title:`GNAT_Reference_manual`). .. index:: -gnatw_L (gcc) :switch:`-gnatw_L` - *Suppress warnings on inheritely limited types.* + *Suppress warnings on implicitly limited types.* - This switch suppresses warnings on inheritely limited types. + This switch suppresses warnings on implicitly limited types. .. index:: -gnatwm (gcc) diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index 375f39f8560..e59ee9f7819 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -11678,7 +11678,7 @@ This switch suppresses listing of inherited aspects. @item @code{-gnatw_l} -`Activate warnings on inheritely limited types.' +`Activate warnings on implicitly limited types.' This switch causes the compiler trigger warnings on record types that do not have a limited keyword but contain a component that is a limited type. @@ -11691,9 +11691,9 @@ have a limited keyword but contain a component that is a limited type. @item @code{-gnatw_L} -`Suppress warnings on inheritely limited types.' +`Suppress warnings on implicitly limited types.' -This switch suppresses warnings on inheritely limited types. +This switch suppresses warnings on implicitly limited types. @end table @geindex -gnatwm (gcc) @@ -29695,8 +29695,8 @@ to permit their use in free software. @printindex ge -@anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{ } @anchor{d1}@w{ } +@anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{ } @c %**end of body @bye diff --git a/gcc/ada/usage.adb b/gcc/ada/usage.adb index 5b7743703c5..38a82beb615 100644 --- a/gcc/ada/usage.adb +++ b/gcc/ada/usage.adb @@ -538,6 +538,8 @@ begin Write_Line (" L* turn off warnings for elaboration problems"); Write_Line (" .l turn on info messages for inherited aspects"); Write_Line (" .L* turn off info messages for inherited aspects"); + Write_Line (" _l turn on warnings for implicitly limited types"); + Write_Line (" _L* turn off warnings for implicitly limited types"); Write_Line (" m+ turn on warnings for variable assigned " & "but not read"); Write_Line (" M* turn off warnings for variable assigned " &