aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2020-10-08 23:39:07 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-11-24 05:16:06 -0500
commitcb9d41eb252c44feeda1b137aca593a521b2b1a7 (patch)
tree5dfac9b577bcf4ea876e1ac84fd2a34db0d68328
parent78004c41f7830fcef5bdefeec8edad6737c2af1a (diff)
downloadgcc-cb9d41eb252c44feeda1b137aca593a521b2b1a7.zip
gcc-cb9d41eb252c44feeda1b137aca593a521b2b1a7.tar.gz
gcc-cb9d41eb252c44feeda1b137aca593a521b2b1a7.tar.bz2
[Ada] Fix minor typos in comments
gcc/ada/ * checks.adb (Apply_Access_Check): Remove unbalanced paren. * exp_attr.adb (Expand_N_Attribute_Reference): Fix typo in comment.
-rw-r--r--gcc/ada/checks.adb2
-rw-r--r--gcc/ada/exp_attr.adb2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/checks.adb b/gcc/ada/checks.adb
index b389da5..1914fc3 100644
--- a/gcc/ada/checks.adb
+++ b/gcc/ada/checks.adb
@@ -535,7 +535,7 @@ package body Checks is
-- We do not need checks if we are not generating code (i.e. the
-- expander is not active). This is not just an optimization, there
-- are cases (e.g. with pragma Debug) where generating the checks
- -- can cause real trouble).
+ -- can cause real trouble.
if not Expander_Active then
return;
diff --git a/gcc/ada/exp_attr.adb b/gcc/ada/exp_attr.adb
index 40de27b..70e1335 100644
--- a/gcc/ada/exp_attr.adb
+++ b/gcc/ada/exp_attr.adb
@@ -6224,7 +6224,7 @@ package body Exp_Attr is
then
Set_Attribute_Name (N, Name_Object_Size);
- -- In all other cases, Size and VADS_Size are the sane
+ -- In all other cases, Size and VADS_Size are the same
else
Set_Attribute_Name (N, Name_Size);