Commit a0f3668c by Hristian Kirtchev Committed by Pierre-Marie de Rodat

[Ada] Suppression of elaboration-related warnings

This patch updates the documentation section on suppressing elaboration
warnings. No change in behavior, no need for a test.

2018-05-23  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

	* sem_elab.adb: Update the section on suppressing elaboration warnings.

From-SVN: r260581
parent 48688534
2018-05-23 Hristian Kirtchev <kirtchev@adacore.com> 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
* sem_elab.adb: Update the section on suppressing elaboration warnings.
2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
* einfo.adb (Is_Elaboration_Checks_OK_Id): Use predicate * einfo.adb (Is_Elaboration_Checks_OK_Id): Use predicate
Is_Elaboration_Target. Is_Elaboration_Target.
(Is_Elaboration_Target): New routine. (Is_Elaboration_Target): New routine.
......
...@@ -394,33 +394,38 @@ package body Sem_Elab is ...@@ -394,33 +394,38 @@ package body Sem_Elab is
-- suppressed. -- suppressed.
-- --
-- In addition to switch -gnatwL, pragma Warnings may be used to suppress -- In addition to switch -gnatwL, pragma Warnings may be used to suppress
-- elaboration-related warnings by wrapping a construct in the following -- elaboration-related warnings when used in the following manner:
-- manner:
-- --
-- pragma Warnings ("L"); -- pragma Warnings ("L");
-- <construct> -- <scenario-or-target>
-- pragma Warnings ("l"); --
-- <target>
-- pragma Warnings (Off, target);
--
-- pragma Warnings (Off);
-- <scenario-or-target>
-- --
-- * To suppress elaboration warnings for '[Unrestricted_]Access of -- * To suppress elaboration warnings for '[Unrestricted_]Access of
-- entries, operators, and subprograms, either: -- entries, operators, and subprograms, either:
-- --
-- - Wrap the entry, operator, or subprogram, or -- - Suppress the entry, operator, or subprogram, or
-- - Wrap the attribute, or -- - Suppress the attribute, or
-- - Use switch -gnatw.f -- - Use switch -gnatw.f
-- --
-- * To suppress elaboration warnings for calls to entries, operators, -- * To suppress elaboration warnings for calls to entries, operators,
-- and subprograms, either: -- and subprograms, either:
-- --
-- - Wrap the entry, operator, or subprogram, or -- - Suppress the entry, operator, or subprogram, or
-- - Wrap the call -- - Suppress the call
-- --
-- * To suppress elaboration warnings for instantiations, wrap the -- * To suppress elaboration warnings for instantiations, suppress the
-- instantiation. -- instantiation.
-- --
-- * To suppress elaboration warnings for task activations, either: -- * To suppress elaboration warnings for task activations, either:
-- --
-- - Wrap the task object, or -- - Suppress the task object, or
-- - Wrap the task type -- - Suppress the task type, or
-- - Suppress the activation call
-------------- --------------
-- Switches -- -- Switches --
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment