Commit 96dd5bb6 by Gary Dismukes Committed by Pierre-Marie de Rodat

[Ada] Add pragma Preelaborable_Initialization to Stream_IO.File_Type

2019-10-10  Gary Dismukes  <dismukes@adacore.com>

gcc/ada/

	* libgnat/a-ststio.ads (File_Type): Apply pragma
	Preelaborable_Initialization to the type.

From-SVN: r276834
parent 5913d1b7
2019-10-10 Yannick Moy <moy@adacore.com> 2019-10-10 Gary Dismukes <dismukes@adacore.com>
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not peek * libgnat/a-ststio.ads (File_Type): Apply pragma
under private types whose completion is SPARK_Mode Off. Preelaborable_Initialization to the type.
\ No newline at end of file \ No newline at end of file
...@@ -42,6 +42,7 @@ package Ada.Streams.Stream_IO is ...@@ -42,6 +42,7 @@ package Ada.Streams.Stream_IO is
type Stream_Access is access all Root_Stream_Type'Class; type Stream_Access is access all Root_Stream_Type'Class;
type File_Type is limited private with Default_Initial_Condition; type File_Type is limited private with Default_Initial_Condition;
pragma Preelaborable_Initialization (File_Type);
type File_Mode is (In_File, Out_File, Append_File); type File_Mode is (In_File, Out_File, Append_File);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment