aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sinfo.ads
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2021-12-10 14:04:59 -0500
committerPierre-Marie de Rodat <derodat@adacore.com>2022-01-07 16:24:05 +0000
commit0c65ca0625b426863ecd294eb9945513a6d057bc (patch)
treec086be2696cfd871c59bff87f8a00856f9b7f447 /gcc/ada/sinfo.ads
parent9ceb18d4a28e416cd5d85cbc66427258fcfa9180 (diff)
downloadgcc-0c65ca0625b426863ecd294eb9945513a6d057bc.zip
gcc-0c65ca0625b426863ecd294eb9945513a6d057bc.tar.gz
gcc-0c65ca0625b426863ecd294eb9945513a6d057bc.tar.bz2
[Ada] Warn on import of parent package
gcc/ada/ * sem_ch10.adb (Check_Redundant_Withs): Add a warning if a library unit with's its own ancestor. Note that this warning is not triggered for something like "with P.R;" in P.Q, because there the "with P;" is considered implicit. * fname-sf.adb, libgnarl/s-stusta.adb, libgnarl/s-tasdeb.ads, libgnat/a-calfor.adb, libgnat/a-tiboio.adb, libgnat/a-wwboio.adb, libgnat/a-zzboio.adb, libgnat/i-cobol.adb, libgnat/s-bitops.adb, libgnat/s-bitops.ads, libgnat/s-direio.adb, libgnat/s-dwalin.adb, libgnat/s-geveop.adb, libgnat/s-mmosin__unix.adb, libgnat/s-os_lib.adb, libgnat/s-os_lib.ads, libgnat/s-pooglo.ads, libgnat/s-secsta.adb, libgnat/s-shasto.adb, libgnat/s-stausa.ads, libgnat/s-stratt.ads, libgnat/s-ststop.adb: Remove with of parent. * sinfo.ads: Minor comment fix.
Diffstat (limited to 'gcc/ada/sinfo.ads')
-rw-r--r--gcc/ada/sinfo.ads2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads
index e962274..84980e7 100644
--- a/gcc/ada/sinfo.ads
+++ b/gcc/ada/sinfo.ads
@@ -200,7 +200,7 @@ package Sinfo is
-- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
-- contexts, which is handled as described in the previous section, and
- -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
+ -- with {,library_unit_NAME} in the N_With_Clause node, which is handled
-- using the First_Name and Last_Name flags, as further detailed in the
-- description of the N_With_Clause node.