From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id A4D923858C5F for ; Tue, 21 May 2024 07:30:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A4D923858C5F 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 A4D923858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716276658; cv=none; b=woEGUytnwJxD43Zv5Y6BkDzv1z1HvwrQXBvCCgbt+nhGadgucMdD87Rp9CiEDoQWsvQVWM2hit25TWTp7YnM5aepot73nmTQGisu8n1fLenCKrDAKo35sd0EU48rLw18cuhtAzoY9vhF7TkvNYtMfYrmLjWZjstqqbRQyLT2k+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716276658; c=relaxed/simple; bh=sIVoCjUUmX/y4OXNT9uEewBBLOWlGAAOtIteZJYZe6g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SXdPWIvWD4iC/s62R0RBg5K6ASEaXOOtkVH+hqqMmZWsIoa9mMTUWa7p2ir2pvU/OHBAQby2GFt2oIcCF3ZmRH2S+Tyr8v//E90ShgqnhnQW605V975d0KtaANdjcAnGKunwPwgW97nV8OjZep9MQCdFW+u0DjsEOf5XQ5GzZis= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-420180b5898so27947685e9.2 for ; Tue, 21 May 2024 00:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716276652; x=1716881452; 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=1ozR8J3ugdLEfqOIp3IldqIVVT9VGg3r9R3zkW/eiWU=; b=imHjvceZBxdXiUebz1Y6DYu7aB/C+rJCclBZv+ifLfcDrmidORYROThuF2+ohg5bVc H7tRgfPA9qbuiAk7NIqydvzz1GKZeo8avW9iJQLUOlDwsa5nr2Xv9hLNPI2RFfNPO0Wk QK/7vWLPNetCg6DC87hoPzKURY7F13KV1hEV6LIVhEMM4UZdpDyheQWYwYHbkTUd1jvn kSBqKfXuYabKPDmz2HvugCY0LQG49U1ExSrx/cp+Eiq+F23Z1zmX5Rs4qhwZR6bCBGTB hSPEWvpx+auHhmYDYOoFIn3QsxrN/MuBtC2F5BAjKkmT2E5fs1ZQzqt1cB7iTqmKcrIQ IltA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716276652; x=1716881452; 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=1ozR8J3ugdLEfqOIp3IldqIVVT9VGg3r9R3zkW/eiWU=; b=ZXHOcjIcJohmvWfNF5Hih14AAjdQh4NMSb6SPHCQFJzYXmKe/RwFl0wHGm+XUjyrvj dZRuHW/a+z0xew98nfu0aLenuckvT4OL7mk+w6CSW7hWTQPKOHxYjnOW4rydHgNQ3PC4 rmr5YzPhn4qb4NSsnAGVGia8r9O08RP9OsVLjEZba9HsOw0qJJ12dmNJZn+9ALxW+S+F uOsUCI5nEFDpx0tjvyOu79ue+9gh/W/JcUJfXyTRbLDS2dHU4gtgFUXqnghYTS3rKS3x V6ouD7KxxJWzu5EE6jAm6lJ/cIx0WTLsWrLdQlFbrCZWYkXcRcPBkI4wHzjmPXXz0sml 7xfg== X-Gm-Message-State: AOJu0Yzm0lr0q9i1k3zwKpgqyePBSfwSNPhz4Jjd6Ii5wcXlgPs4hRd4 EkOXeA71iwdXUJz88q9IyCub0dfg4kdilprGG/SPNmseenZ3ocCQnkT9g79j/qpqRw2Z02aQ21c = X-Google-Smtp-Source: AGHT+IHDQwqxLH3R5yhtfGVliwcntiIzz4LA7mCuyCHvLU9dx+owyt73Yw25DB2Z69NlrXyu17BmTQ== X-Received: by 2002:a05:600c:2d53:b0:41b:dabe:8633 with SMTP id 5b1f17b1804b1-41feab40bc9mr222461685e9.21.1716276652376; Tue, 21 May 2024 00:30:52 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:de37:8b1c:1f33:2610]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9292sm453333645e9.37.2024.05.21.00.30.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 00:30:52 -0700 (PDT) From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Viljar Indus Subject: [COMMITTED 06/31] ada: Update documentation of warning messages Date: Tue, 21 May 2024 09:30:09 +0200 Message-ID: <20240521073035.314024-6-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240521073035.314024-1-poulhies@adacore.com> References: <20240521073035.314024-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Viljar Indus Update the documentation of warning messages that only emit info messages to clearly reflect that they only emit info messages and not warning messages. gcc/ada/ * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Update the documentation of -gnatw.n and -gnatw.l * gnat_ugn.texi: Regenerate. Tested on x86_64-pc-linux-gnu, committed on master. --- .../building_executable_programs_with_gnat.rst | 14 +++++++------- gcc/ada/gnat_ugn.texi | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 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 21e277d5916..2f63d02daf7 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 @@ -3415,7 +3415,7 @@ of the pragma in the :title:`GNAT_Reference_manual`). .. index:: -gnatw.l (gcc) :switch:`-gnatw.l` - *List inherited aspects.* + *List inherited aspects as info messages.* This switch causes the compiler to list inherited invariants, preconditions, and postconditions from Type_Invariant'Class, Invariant'Class, @@ -3425,7 +3425,7 @@ of the pragma in the :title:`GNAT_Reference_manual`). .. index:: -gnatw.L (gcc) :switch:`-gnatw.L` - *Suppress listing of inherited aspects.* + *Suppress listing of inherited aspects as info messages.* This switch suppresses listing of inherited aspects. @@ -3495,20 +3495,20 @@ of the pragma in the :title:`GNAT_Reference_manual`). .. index:: Atomic Synchronization, warnings :switch:`-gnatw.n` - *Activate warnings on atomic synchronization.* + *Activate info messages on atomic synchronization.* - This switch actives warnings when an access to an atomic variable + This switch activates info messages when an access to an atomic variable requires the generation of atomic synchronization code. These - warnings are off by default. + info messages are off by default. .. index:: -gnatw.N (gcc) :switch:`-gnatw.N` - *Suppress warnings on atomic synchronization.* + *Suppress info messages on atomic synchronization.* .. index:: Atomic Synchronization, warnings - This switch suppresses warnings when an access to an atomic variable + This switch suppresses info messages when an access to an atomic variable requires the generation of atomic synchronization code. diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index 43251ba3f1c..2df2a780ec7 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -11646,7 +11646,7 @@ This switch suppresses warnings for possible elaboration problems. @item @code{-gnatw.l} -`List inherited aspects.' +`List inherited aspects as info messages.' This switch causes the compiler to list inherited invariants, preconditions, and postconditions from Type_Invariant’Class, Invariant’Class, @@ -11660,7 +11660,7 @@ Pre’Class, and Post’Class aspects. Also list inherited subtype predicates. @item @code{-gnatw.L} -`Suppress listing of inherited aspects.' +`Suppress listing of inherited aspects as info messages.' This switch suppresses listing of inherited aspects. @end table @@ -11755,11 +11755,11 @@ use of @code{-gnatg}. @item @code{-gnatw.n} -`Activate warnings on atomic synchronization.' +`Activate info messages on atomic synchronization.' -This switch actives warnings when an access to an atomic variable +This switch activates info messages when an access to an atomic variable requires the generation of atomic synchronization code. These -warnings are off by default. +info messages are off by default. @end table @geindex -gnatw.N (gcc) @@ -11769,12 +11769,12 @@ warnings are off by default. @item @code{-gnatw.N} -`Suppress warnings on atomic synchronization.' +`Suppress info messages on atomic synchronization.' @geindex Atomic Synchronization @geindex warnings -This switch suppresses warnings when an access to an atomic variable +This switch suppresses info messages when an access to an atomic variable requires the generation of atomic synchronization code. @end table @@ -29645,8 +29645,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 -- 2.43.2