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 r12-2116] [Ada] Improve interactions between DSA and Put_Image routines for tagged types Date: Wed, 7 Jul 2021 16:25:45 +0000 (GMT) [thread overview] Message-ID: <20210707162545.56856395C823@sourceware.org> (raw) https://gcc.gnu.org/g:2d71668e64c4b20aec823dbe5a1feb6338d527a2 commit r12-2116-g2d71668e64c4b20aec823dbe5a1feb6338d527a2 Author: Steve Baird <baird@adacore.com> Date: Tue May 18 18:26:24 2021 -0700 [Ada] Improve interactions between DSA and Put_Image routines for tagged types gcc/ada/ * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Add TSS_Put_Image to list of predefined primitives that need special treatment. (Build_General_Calling_Stubs, Build_Subprogram_Receiving_Stubs): Remove previous hack for dealing with TSS_Put_Image procedures. Diff: --- gcc/ada/exp_dist.adb | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/gcc/ada/exp_dist.adb b/gcc/ada/exp_dist.adb index 35ccf9d3731..5cb8fb54993 100644 --- a/gcc/ada/exp_dist.adb +++ b/gcc/ada/exp_dist.adb @@ -1424,6 +1424,7 @@ package body Exp_Dist is and then Chars (Current_Primitive) /= Name_uAlignment and then not (Is_TSS (Current_Primitive, TSS_Deep_Finalize) or else + Is_TSS (Current_Primitive, TSS_Put_Image) or else Is_TSS (Current_Primitive, TSS_Stream_Input) or else Is_TSS (Current_Primitive, TSS_Stream_Output) or else Is_TSS (Current_Primitive, TSS_Stream_Read) or else @@ -4211,14 +4212,6 @@ package body Exp_Dist is -- Used only for the PolyORB case begin - -- workaround for later failures in Exp_Util.Find_Prim_Op - if Is_TSS (Defining_Unit_Name (Spec), TSS_Put_Image) then - Append_To (Statements, - Make_Raise_Program_Error (Loc, - Reason => PE_Stream_Operation_Not_Allowed)); - return; - end if; - -- The general form of a calling stub for a given subprogram is: -- procedure X (...) is P : constant Partition_ID := @@ -4734,11 +4727,11 @@ package body Exp_Dist is -- Formal parameter for receiving stubs: a descriptor for an incoming -- request. - Decls : List_Id := New_List; + Decls : constant List_Id := New_List; -- All the parameters will get declared before calling the real -- subprograms. Also the out parameters will be declared. - Statements : List_Id := New_List; + Statements : constant List_Id := New_List; Extra_Formal_Statements : constant List_Id := New_List; -- Statements concerning extra formal parameters @@ -5173,19 +5166,6 @@ package body Exp_Dist is Parameter_Type => New_Occurrence_Of (RTE (RE_Request_Access), Loc)))); - -- workaround for later failures in Exp_Util.Find_Prim_Op - if Is_TSS (Defining_Unit_Name (Specification (Vis_Decl)), - TSS_Put_Image) - then - -- drop everything on the floor - Decls := New_List; - Statements := New_List; - Excep_Handlers := New_List; - Append_To (Statements, - Make_Raise_Program_Error (Loc, - Reason => PE_Stream_Operation_Not_Allowed)); - end if; - return Make_Subprogram_Body (Loc, Specification => Subp_Spec,
reply other threads:[~2021-07-07 16:25 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=20210707162545.56856395C823@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).