From: Piotr Trojanek Date: Thu, 8 Oct 2020 21:39:07 +0000 (+0200) Subject: [Ada] Fix minor typos in comments X-Git-Tag: basepoints/gcc-12~2951 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9d41eb252c44feeda1b137aca593a521b2b1a7;p=thirdparty%2Fgcc.git [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. --- diff --git a/gcc/ada/checks.adb b/gcc/ada/checks.adb index b389da5accb3..1914fc3024a3 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 40de27b86bc7..70e13359a7ed 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);