public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-246] [Ada] Fix style in resolution of expression with actions Date: Tue, 10 May 2022 08:22:38 +0000 (GMT) [thread overview] Message-ID: <20220510082238.EB3DC38346AD@sourceware.org> (raw) https://gcc.gnu.org/g:ce63a97b518915b3b6c1221da60af719c7eccd5a commit r13-246-gce63a97b518915b3b6c1221da60af719c7eccd5a Author: Piotr Trojanek <trojanek@adacore.com> Date: Sat Jan 22 19:39:52 2022 +0100 [Ada] Fix style in resolution of expression with actions gcc/ada/ * sem_res.adb (Resolve_Expression_With_Actions): Fix style in nested routines. Diff: --- gcc/ada/sem_res.adb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gcc/ada/sem_res.adb b/gcc/ada/sem_res.adb index 538f8600890..a59ffe70be0 100644 --- a/gcc/ada/sem_res.adb +++ b/gcc/ada/sem_res.adb @@ -9136,6 +9136,10 @@ package body Sem_Res is -- Expr is an expression with compile-time-known value. This returns the -- literal node that reprsents that value. + ------------------- + -- OK_For_Static -- + ------------------- + function OK_For_Static (Act : Node_Id) return Boolean is begin case Nkind (Act) is @@ -9161,6 +9165,10 @@ package body Sem_Res is return False; end OK_For_Static; + ----------------------- + -- All_OK_For_Static -- + ----------------------- + function All_OK_For_Static return Boolean is Act : Node_Id := First (Actions (N)); begin @@ -9175,6 +9183,10 @@ package body Sem_Res is return True; end All_OK_For_Static; + ----------------- + -- Get_Literal -- + ----------------- + function Get_Literal (Expr : Node_Id) return Node_Id is pragma Assert (Compile_Time_Known_Value (Expr)); Result : Node_Id; @@ -9198,8 +9210,12 @@ package body Sem_Res is return Result; end Get_Literal; + -- Local variables + Loc : constant Source_Ptr := Sloc (N); + -- Start of processing for Resolve_Expression_With_Actions + begin Set_Etype (N, Typ);
reply other threads:[~2022-05-10 8:22 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220510082238.EB3DC38346AD@sourceware.org \ --to=pmderodat@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).