[Ada] In-place initialization for Initialize_Scalars

2018-05-22 Thread Pierre-Marie de Rodat
This patch optimizes the initialization and allocation of scalar array objects when pragma Initialize_Scalars is in effect. The patch also extends the syntax and semantics of pragma Initialize_Scalars to allow for the specification of invalid values pertaining to families of scalar types. The new s

[Ada] In-place initialization for Initialize_Scalars

2018-05-22 Thread Pierre-Marie de Rodat
This patch cleans up the implementation of routine Get_Simple_Init_Val. It also eliminates potentially large and unnecessary tree replications in the context of object default initialization. No change in behavior, no test needed. Tested on x86_64-pc-linux-gnu, committed on trunk 2018-05-22 Hri