1 2012-05-19 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/decl.c (Has_Thiscall_Convention): New macro.
4 (gnat_to_gnu_entity) <E_Subprogram_Type>: Test it to set the thiscall
6 (get_minimal_subprog_decl): Likewise.
7 (gnat_first_param_is_class): New predicate.
10 2012-05-15 Javier Miranda <miranda@adacore.com>
12 * exp_ch3.adb (Build_Offset_To_Top): Modify the
13 expansion of the offset_to_top functions to ensure that their
14 profile is conformant with the profile specified in Ada.Tags. No
15 change in functionality.
17 2012-05-18 Eric Botcazou <ebotcazou@adacore.com>
19 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an object at
20 global level with unconstrained nominal subtype and a non-fixed size,
21 make a variable for the size.
23 2012-05-15 Andris Pavenis <andris.pavenis@iki.fi>
26 * s-taprop-dummy.adb (Specific): New package.
28 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
30 * sem_prag.adb (Process_Atomic_Shared_Volatile): Propagate
31 atomicity from an object to its underlying type only if it
34 2012-05-06 Pascal Obry <obry@adacore.com>
37 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
39 * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
40 Windows-specific make variable.
41 (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
42 (install-gnatlib): Respect the above during installation when set,
43 and also install any windows import library that has been built.
44 (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
45 build a corresponding import library.
47 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
49 * gcc-interface/utils.c (finish_record_type): Force the traditional GCC
50 layout for bitfields on the type if it is packed or has a representation
51 clause and an alternate layout is available.
53 2012-04-09 Mike Stump <mikestump@comcast.net>
55 * a-assert.ads: Remove execute permission.
56 * a-chacon.ads: Likewise.
57 * a-coteio.ads: Likewise.
58 * a-envvar.ads: Likewise.
59 * a-exetim-mingw.ads: Likewise.
60 * a-fzteio.ads: Likewise.
61 * a-izteio.ads: Likewise.
62 * a-lcteio.ads: Likewise.
63 * a-llctio.ads: Likewise.
64 * a-scteio.ads: Likewise.
65 * a-suenco.ads: Likewise.
66 * a-suenst.ads: Likewise.
67 * a-suewst.ads: Likewise.
68 * a-suezst.ads: Likewise.
69 * a-tirsfi.ads: Likewise.
70 * a-wichha.ads: Likewise.
71 * a-zchara.ads: Likewise.
72 * a-zchhan.ads: Likewise.
73 * a-zchuni.ads: Likewise.
74 * a-zrstfi.ads: Likewise.
75 * aspects.ads: Likewise.
76 * g-byorma.ads: Likewise.
77 * g-decstr.ads: Likewise.
78 * g-encstr.ads: Likewise.
79 * g-spchge.ads: Likewise.
80 * g-u3spch.ads: Likewise.
81 * g-wispch.ads: Likewise.
82 * g-zspche.ads: Likewise.
83 * namet-sp.ads: Likewise.
84 * s-os_lib.ads: Likewise.
85 * s-regexp.ads: Likewise.
86 * s-regpat.ads: Likewise.
87 * s-string.ads: Likewise.
88 * s-tasloc.ads: Likewise.
89 * s-utf_32.ads: Likewise.
90 * sem_aux.ads: Likewise.
91 * a-assert.adb: Likewise.
92 * a-chacon.adb: Likewise.
93 * a-envvar.adb: Likewise.
94 * a-exetim-mingw.adb: Likewise.
95 * a-suenco.adb: Likewise.
96 * a-suenst.adb: Likewise.
97 * a-suewst.adb: Likewise.
98 * a-suezst.adb: Likewise.
99 * a-tirsfi.adb: Likewise.
100 * a-wichha.adb: Likewise.
101 * a-zchhan.adb: Likewise.
102 * a-zchuni.adb: Likewise.
103 * a-zrstfi.adb: Likewise.
104 * aspects.adb: Likewise.
105 * g-byorma.adb: Likewise.
106 * g-decstr.adb: Likewise.
107 * g-encstr.adb: Likewise.
108 * g-spchge.adb: Likewise.
109 * g-u3spch.adb: Likewise.
110 * g-wispch.adb: Likewise.
111 * g-zspche.adb: Likewise.
112 * namet-sp.adb: Likewise.
113 * s-except.adb: Likewise.
114 * s-inmaop-vxworks.adb: Likewise.
115 * s-os_lib.adb: Likewise.
116 * s-regexp.adb: Likewise.
117 * s-regpat.adb: Likewise.
118 * s-string.adb: Likewise.
119 * s-tasloc.adb: Likewise.
120 * s-utf_32.adb: Likewise.
121 * s-wchcon.adb: Likewise.
122 * sem_aux.adb: Likewise.
124 2012-03-22 Release Manager
126 * GCC 4.7.0 released.
128 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
130 * gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter
131 and set TYPE_ARTIFICIAL according to it. Adjust recursive call.
132 (gnat_to_gnu_entity) <E_Record_Type>: Adjust call to above function.
133 * gcc-interface/utils.c (rest_of_record_type_compilation): Do not
134 invoke rest_of_type_decl_compilation on the parallel type, if any.
136 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
138 * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
139 dummy global built for global types is preserved.
141 2012-02-27 Tristan Gingold <gingold@adacore.com>
143 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
144 E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and
147 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
149 * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
150 (TYPE_BY_REFERENCE_P): New flag.
151 (TYPE_IS_BY_REFERENCE_P): New macro.
152 (TYPE_DUMMY_P): Add checking and remove VOID_TYPE.
153 (TYPE_IS_DUMMY_P): Adjust for above change.
154 * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P
155 and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE.
156 (gnat_to_gnu_param): Likewise.
157 (maybe_pad_type): Likewise.
158 (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P.
159 * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P
160 instead of TREE_ADDRESSABLE.
161 * gcc-interface/trans.c (finalize_nrv): Likewise.
162 (call_to_gnu): Likewise. Do not create a temporary for return values
163 with by-reference type here.
164 (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P.
165 (gnat_gimplify_expr) <ADDR_EXPR>: Don't do anything for non-constant
166 CONSTRUCTORs and calls.
167 * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of
168 the underlying type and use it throughout. Use TYPE_IS_BY_REFERENCE_P
169 instead of TREE_ADDRESSABLE.
170 * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference
173 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
175 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Revert previous
176 change that creates a special VAR_DECL for debugging purposes. For an
177 aliased object with an unconstrained nominal subtype, make its type a
178 thin reference to the underlying object.
179 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Deal with
180 expressions built for the initialization of above objects.
182 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
184 * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
185 Windows-specific make variable.
186 (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
187 (install-gnatlib): Respect the above during installation when set,
188 and also install any windows import library that has been built.
189 (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
190 build a corresponding import library.
192 2012-02-22 Robert Dewar <dewar@adacore.com>
194 * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor
197 2012-02-22 Geert Bosch <bosch@adacore.com>
199 * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove
200 x86-specific version of byteswap and use GCC builtins instead.
202 2012-02-22 Tristan Gingold <gingold@adacore.com>
204 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
205 E_Array_Type]: Translate component ealier.
207 2012-02-22 Robert Dewar <dewar@adacore.com>
209 * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize
210 error message for 'Range.
212 2012-02-22 Pascal Obry <obry@adacore.com>
214 * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as
215 this is our own thread.
217 2012-02-22 Sergey Rybin <rybin@adacore.com frybin>
219 * tree_io.ads: Update ASIS_Version_Number because of the changes
222 2012-02-22 Hristian Kirtchev <kirtchev@adacore.com>
224 * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on
225 stack-related finalizers.
227 2012-02-22 Ed Schonberg <schonberg@adacore.com>
229 * sem_ch6.adb (Analyze_Expression_Function): If the construct
230 is a completion, indicate that its formals are the formals of
231 a completion, and as such do not get a cross- reference entry.
232 (Analyze_Subprogram_Specification): Do not generate a definition
233 for the entity of an expression function, because it may be a
234 completion. Definition will be generated if needed when analyzing
235 the generated subprogram declaration.
237 2012-02-22 Vincent Celier <celier@adacore.com>
239 * make.adb (Check): When checking if an object file is in the
240 correct object directory, get the unit name from a previous call
241 to Check_Source_Info_In_ALI.
242 * makeutl.adb (Check_Source_Info_In_ALI): Return the name of
243 the unit when everything is OK, otherwise return No_Name.
244 * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead
247 2012-02-22 Ed Schonberg <schonberg@adacore.com>
249 * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an
250 instance, the operator is visible if an operand is of some
251 numeric type which is not in use or directly visible, and the
252 other operand is a numeric literal.
254 2012-02-22 Tristan Gingold <gingold@adacore.com>
256 * init.c: Minor code clean up.
257 * gcc-interface/Make-lang.in: Update dependencies.
259 2012-02-22 Arnaud Charlet <charlet@adacore.com>
261 * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node,
262 otherwise GCC will generate an object file.
264 2012-02-22 Vincent Celier <celier@adacore.com>
266 * projects.texi: Correct typo related to "**" in Source_Dirs.
268 2012-02-22 Steve Baird <baird@adacore.com>
270 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of
273 2012-02-22 Vincent Pucci <pucci@adacore.com>
275 * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and
276 System_Dim_Child cases added.
277 * rtsfind.ads: Ada_Numerics,
278 Ada_Numerics_Generic_Elementary_Functions, System_Dim,
279 System_Dim_Float_IO and System_Dim_Integer_IO added to the list
280 of RTU_Id. Ada_Numerics_Child and System_Dim_Child added as
282 * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of
283 Rtsfind to verify the package entity is located either
284 in System.Dim.Integer_IO or in System.Dim.Float_IO.
285 (Is_Dim_IO_Package_Instantiation): Minor
286 changes. (Is_Elementary_Function_Call): Removed.
287 (Is_Elementary_Function_Entity): New routine.
288 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added.
289 * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions
292 2012-02-22 Vincent Pucci <pucci@adacore.com>
294 * sem_prag.adb: Minor reformatting.
296 2012-02-22 Ed Schonberg <schonberg@adacore.com>
298 * sem_ch3.adb (Find_Type_Name): When analyzing a private type
299 declaration that is the completion of a tagged incomplete type, do
300 not associate the class-wide type already created with the private
301 type to prevent order-of-elaboration issues in the back-end.
302 * exp_disp.adb (Find_Specific_Type): Find specific type of
303 a class-wide type, and handle the case of an incomplete type
304 coming either from a limited_with clause or from an incomplete
305 type declaration. Used when expanding a dispatchin call and
306 generating tag checks (minor refactoring).
308 2012-02-22 Robert Dewar <dewar@adacore.com>
310 * exp_ch5.adb: Add comment.
311 * sem_ch12.adb, exp_ch6.adb: minor reformatting
313 2012-02-22 Ed Schonberg <schonberg@adacore.com>
315 * freeze.adb (Freeze_Entity): Do not perform type layout within
318 2012-02-22 Eric Botcazou <ebotcazou@adacore.com>
320 * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
323 2012-02-22 Ed Schonberg <schonberg@adacore.com>
325 * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an
326 assignment to a classwide type whose type is limited, as
327 can happen in an instantiation in programs that run afoul or
331 2012-02-17 Ed Schonberg <schonberg@adacore.com>
333 * exp_ch6.adb (Legal_Copy): If layout is not
334 determined in the front-end, do not emit error message when
335 by-reference actual is potentially unaligned.
336 * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for
337 illegal representation clause on tagged or aliased component, or on
338 by-reference type with forced alignment.
340 2012-02-17 Nicolas Roche <roche@adacore.com>
342 * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is
343 propagated by gnatlib-sjlj and gnatlib-zcx targets.
344 * gcc-interface/Make-lang.in: Update dependencies.
346 2012-02-17 Thomas Quinot <quinot@adacore.com>
348 * sem_ch12.adb (Analyze_Package_Instantiation): For an
349 instantiation in an RCI library unit, omit the instance body
350 if the RCI library unit is the instance itself (E.2.3(18)),
351 but include the body if the instantiation is within the RCI
352 declaration (12.3(12)).
354 2012-02-17 Steve Baird <baird@adacore.com>
356 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
357 Post'Class aspects can only be specified for a primitive operation
360 2012-02-17 Yannick Moy <moy@adacore.com>
362 * gnat_rm.texi: Minor shuffling.
364 2012-02-17 Ed Schonberg <schonberg@adacore.com>
366 * aspects.adb: Expression functions can carry pre/postconditions.
367 * par-ch6.adb (P_Subprogram): look for optional pre/postconditions
368 in an expression function.
369 * sem_prag (Check_Precondition_Postcondition): legal on expression
372 2012-02-17 Vincent Pucci <pucci@adacore.com>
374 * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb,
375 * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb,
376 * a-convec.adb, a-coorma.adb (Adjust): New routine.
377 (Constant_Reference): Increment Busy and Lock counters.
378 (Reference): Increase Busy and Lock counters.
379 (Finalize): New routine.
380 * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb:
381 (Adjust): New routine. (Constant_Reference): Increment Busy
383 (Finalize): New routine.
384 * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads,
385 * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads,
386 * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads,
387 * a-coorma.ads, a-coorse: Controlled component added to the
390 2012-02-17 Robert Dewar <dewar@adacore.com>
392 * restrict.adb (Check_Restriction): Add special handling for
393 No_Obsolescent_Features.
395 2012-02-17 Hristian Kirtchev <kirtchev@adacore.com>
397 * exp_util.adb (Find_Finalize_Address): When dealing with an
398 internally built full view for a type with unknown discriminants,
399 use the original record type.
401 2012-02-17 Robert Dewar <dewar@adacore.com>
403 * sem_dim.adb: Minor reformatting.
405 2012-02-17 Yannick Moy <moy@adacore.com>
407 * gnat_rm.texi: Minor rewording.
409 2012-02-17 Thomas Quinot <quinot@adacore.com>
411 * sem_aggr.adb: Minor reformatting.
413 2012-02-17 Robert Dewar <dewar@adacore.com>
415 * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.
417 2012-02-17 Vincent Pucci <pucci@adacore.com>
419 * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
420 (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
422 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
424 * s-dim.ads: Make package Pure.
426 2012-02-17 Gary Dismukes <dismukes@adacore.com>
428 * prj-nmsc.adb: Minor reformatting.
430 2012-02-17 Yannick Moy <moy@adacore.com>
432 * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.
434 2012-02-17 Yannick Moy <moy@adacore.com>
436 * gnat_ugn.texi: Fix typos.
438 2012-02-17 Pascal Obry <obry@adacore.com>
440 * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
441 aggregate is not Externally_Built.
443 2012-02-17 Ed Schonberg <schonberg@adacore.com>
445 * sem_aggr.adb (Resolve_Record_Aggregate): If a composite
446 component has a box association, copy the default value using
447 the current scope as the scope of internal types, to prevent
448 scoping anomalies in gigi.
450 2012-02-17 Robert Dewar <dewar@adacore.com>
452 * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb,
453 sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb,
454 exp_intr.adb, s-os_lib.adb: Minor reformatting.
456 2012-02-17 Ed Schonberg <schonberg@adacore.com>
458 * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the
459 old operation is abstract, the relevant type is not abstract,
460 and the new subprogram fails to override.
462 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
464 * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the
465 type of the result to the end and execute it for a deferred constant of
466 a discriminated type whose full view can be elaborated statically.
468 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
470 * gcc-interface/trans.c (gnat_to_gnu) <N_Qualified_Expression>: If the
471 type is tagged, mark it as used for debugging purposes.
472 <N_Allocator>: Likewise for a qualified expression.
474 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
476 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
477 return value in the by-reference return type case if this isn't the
478 expression of an object declaration. Tidy up.
480 2012-02-09 Tristan Gingold <gingold@adacore.com>
482 * gcc-interface/Makefile.in: Remove .sym rule (not used).
483 Remove adamsg.o object (requires native message compiler).
484 * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a
485 macro instead of as extern int.
486 (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR)
487 (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT)
488 (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH)
489 (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC)
490 (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH)
491 (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH)
492 (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH)
493 (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR)
494 (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise.
495 (struct cond_except): Field cond is now an unsigned int.
496 (dec_ada_cond_except_table): Adjust.
497 (cond_except_table): Likewise.
498 (cond_resignal_table): Likewise.
499 (__gnat_default_resignal_p): Fix style.
501 2012-02-08 Vincent Celier <celier@adacore.com>
503 * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects
504 (g-buorma is now imported by sinput).
506 * scn.adb (Initialize_Scanner): Call Check_For_BOM
507 * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM
508 * sinput.adb: New procedure Check_For_BOM
509 * sinput.ads: New procedure Check_For_BOM
511 2012-02-08 Vincent Pucci <pucci@adacore.com>
513 * impunit.adb: Dimension package names updated
514 * Makefile.rtl: s-dim added
515 * sem_dim.adb (Is_Procedure_Put_Call): minor changes
516 (Is_Dim_IO_Package_Instantiation): minor changes
517 * sem_dim.ads: minor changes in comments
518 * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and
519 Name_Dim_Integer_IO removed
520 * s-dim.ads: New package. Define the dimension terminology.
521 * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads,
522 * s-dmotpr.ads: Package names updated.
523 * s-diflio.ads, s-diinio.ads: Documentation added and package
526 2012-02-08 Gary Dismukes <dismukes@adacore.com>
528 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test
529 for storage pools to test for an underlying record type rather than
530 testing Is_Tagged_Type, so that simple storage pools will be handled
531 the same as normal Ada storage pools.
533 2012-02-08 Yannick Moy <moy@adacore.com>
535 * gnat_rm.texi: Minor reshuffling to place restriction at
538 2012-02-08 Bob Duff <duff@adacore.com>
540 * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value
541 False for '-gnatwA', to suppress these warnings.
543 2012-02-08 Vincent Celier <celier@adacore.com>
545 * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before
546 starting to scan, so that UTF8 encoding is taken into account.
548 2012-02-08 Arnaud Charlet <charlet@adacore.com>
550 * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New
552 (Complete_Rendezvous): Now call Internal_Complete_Rendezvous.
553 (Exceptional_Complete_Rendezvous): Mark No_Return.
555 2012-02-08 Eric Botcazou <ebotcazou@adacore.com>
557 * exp_aggr.adb (Compile_Time_Known_Composite_Value):
558 New predicate to compute whether a composite value can be
559 evaluated at compile time.
560 (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all
561 expressions of elementary type and Compile_Time_Known_Composite_Value
562 for all other expressions.
563 (Expand_Record_Aggregate): Convert to assignments in the case
564 of a type with mutable components if the aggregate cannot be
567 2012-02-08 Gary Dismukes <dismukes@adacore.com>
569 * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type.
570 (Impl_Defined_Aspects): Add association for
571 Aspect_Simple_Storage_Pool_Type.
573 association for Aspect_Simple_Storage_Pool_Type.
575 (Canonical_Aspect): Add association for Simple_Storage_Pool_Type.
576 * exp_attr.adb (Expand_N_Attribute_Reference):
577 Change name to Name_Simple_Storage_Pool_Type.
578 * exp_ch4.adb (Expand_N_Allocator): Change
579 name to Name_Simple_Storage_Pool_Type.
580 * exp_intr.adb (Expand_Unc_Deallocation): Change name to
581 Name_Simple_Storage_Pool_Type. * freeze.adb (Freeze_Entity):
582 Change names to Name_Simple_Storage_Pool_Type. * par-prag.adb:
583 Change names to Name_Simple_Storage_Pool_Type. * sem_attr.adb:
584 (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type.
585 * sem_ch13.adb (Analyze_Attribute_Definition_Clause):
586 Change name to Name_Simple_Storage_Pool_Type.
588 (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type.
589 (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type.
590 * sem_res.adb (Resolve_Allocator): Change name to
591 Name_Simple_Storage_Pool_Type. * snames.ads-tmpl:
592 (Name_Simple_Storage_Pool_Type): New name constant.
593 (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and
594 move to main pragma section because it no longer matches the
596 * snames.adb-tmpl (Get_Pragma_Id): Remove test for
597 Name_Simple_Storage_Pool.
598 (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool.
600 2012-02-08 Robert Dewar <dewar@adacore.com>
602 * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws.
604 2012-02-08 Pascal Obry <obry@adacore.com>
606 * prj.adb (Compute_All_Imported_Projects): Use new
607 For_Project_And_Aggregated_Context to ensure proper context is
608 used for encapsulated aggregate libraries.
609 * prj-proc.adb (Recursive_Process): Call
610 Process_Aggregated_Projects earlier to ensure that all dependent
611 projects are set with the proper encapsulated status.
613 2012-02-08 Pascal Obry <obry@adacore.com>
615 * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null
618 2012-02-08 Pascal Obry <obry@adacore.com>
620 * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New
621 generic routine with a context parameter.
623 2012-02-08 Robert Dewar <dewar@adacore.com>
625 * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb,
626 a-convec.adb: Minor reformatting and code reorganization.
628 2012-02-08 Steve Baird <baird@adacore.com>
630 * sem_cat.adb (In_Preelaborated_Unit): A child
631 unit instantiation does not inherit preelaboration requirements
634 2012-02-08 Gary Dismukes <dismukes@adacore.com>
636 * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool.
637 (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool.
638 (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool.
639 (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool.
640 * aspects.adb (Canonical_Aspect): Add entry for
641 Aspect_Simple_Storage_Pool.
642 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of
643 Attribute_Simple_Storage_Pool in the same way as Storage_Pool
644 (add conversion, analyze/resolve). For the Storage_Size attribute,
645 for the simple pool case, locate and use the simple pool type's
646 Storage_Size function (if any), otherwise evaluate to zero.
647 * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator
648 for an access type with an associated simple storage pool,
649 locate and use the pool type's Allocate.
650 * exp_intr.adb (Expand_Unc_Deallocation): In the case where the
651 access type has a simple storage pool, locate the pool type's
652 Deallocate procedure (if present) and use it as the procedure
653 to call on the Free operation.
654 * freeze.adb (Freeze_Entity): In the case of a full type for
655 a private type defined with pragma Simple_Storage_Pool, check
656 that the full type is also appropriate for the pragma. For
657 a simple storage pool type, validate that the operations
658 Allocate, Deallocate (if present), and Storage_Size
659 (if present) are defined with appropriate expected profiles.
660 (Validate_Simple_Pool_Op_Formal): New procedure
661 (Validate_Simple_Pool_Operation): New procedure Add with and
663 * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement
664 (no action required).
665 * sem_attr.adb (Analyze_Attribute): For the case of the
666 Storage_Pool attribute, give a warning if the prefix type has an
667 associated simple storage pool, and rewrite the attribute as a
668 raise of Program_Error. In the case of the Simple_Storage_Pool
669 attribute, check that the prefix type has an associated simple
670 storage pool, and set the attribute type to the pool's type.
671 * sem_ch13.adb (Analyze_Aspect_Specifications): Add
672 Aspect_Simple_Storage_Pool case choice.
673 (Analyze_Attribute_Definition_Clause): Add
674 Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses
675 (no action). Add handling for Simple_Storage_Pool attribute
676 definition, requiring the name to denote a simple storage pool
678 (Check_Aspect_At_Freeze_Point): For a simple storage pool
679 aspect, set the type to that of the name specified for the aspect.
680 * sem_prag.adb (Analyze_Pragma): Add handling for pragma
681 Simple_Storage_Pool, requiring that it applies to a library-level
682 type declared in a package declaration that is a limited private
683 or limited record type.
684 * sem_res.adb (Resolve_Allocator): Flag an attempt to call a
685 build-in-place function in an allocator for an access type with
686 a simple storage pool as unsupported.
687 * snames.ads-tmpl: Add Name_Simple_Storage_Pool.
688 (type Attribute_Id): Add Attribute_Simple_Storage_Pool.
689 (type Pragma_Id): Add Pragma_Simple_Storage_Pool.
690 * snames.adb-tmpl (Get_Pragma_Id): Handle case of
691 Name_Simple_Storage_Pool.
692 (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool.
694 2012-02-08 Cyrille Comar <comar@adacore.com>
696 * projects.texi: Clarify doc for interfaces.
698 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
700 * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
703 2012-02-01 Tristan Gingold <gingold@adacore.com>
705 * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
706 instead of size_type_node.
708 2012-01-30 Nicolas Roche <roche@adacore.com>
710 * gcc-interface/Make-lang.in: Update dependencies.
711 * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
713 Remove Linker_Options -crtbe when building sjlj run-time.
715 2012-01-30 Robert Dewar <dewar@adacore.com>
717 * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode.
718 * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of
719 form 2 * small-literal.
720 * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious
722 * sem_ch4.ads (Analyze_Mod): New procedure.
724 2012-01-30 Ed Schonberg <schonberg@adacore.com>
726 * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy
727 types and return expression when building spec for implicit
728 body, to preserve global references that may be present in an
731 2012-01-30 Matthew Heaney <heaney@adacore.com>
733 * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
734 Reverse_Elements): Check for cursor tampering.
736 2012-01-30 Ed Schonberg <schonberg@adacore.com>
738 * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a
739 type with aspect Default_Value or Default_Component_Value is
740 fully initialized, and use of variables of such types do not
743 2012-01-30 Javier Miranda <miranda@adacore.com>
746 * sem_ch8.adb (Analyze_Subprogram_Renaming):
747 Handle self-renaming when the renamed entity is referenced using
750 2012-01-30 Vincent Celier <celier@adacore.com>
752 * projects.texi: Add documentation for attribute Interfaces.
754 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
756 * exp_ch7.adb (Build_Finalizer_Call): Set loc again.
757 * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
758 location for the wrapped call to the original AT_END routine
759 and the subsequent return statement.
761 2012-01-30 Pascal Obry <obry@adacore.com>
763 * s-rannum.adb: Minor reformatting.
765 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
767 * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
768 to 25 and add the hard time value for 2012-06-30.
770 2012-01-30 Robert Dewar <dewar@adacore.com>
772 * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb,
773 freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads,
774 s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb:
775 Minor reformatting/code reorganization.
777 2012-01-30 Thomas Quinot <quinot@adacore.com>
779 * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return
780 Unsigned_64 rather than Duration.
781 (System.Random_Numbers.Reset): Use full value of seed
782 (do not truncate sub-second bits).
784 2012-01-30 Thomas Quinot <quinot@adacore.com>
786 * sem_cat.adb, sem_ch12.adb: Minor reformatting.
788 2012-01-30 Yannick Moy <moy@adacore.com>
790 * gnat_ugn.texi: Minor correction of GNAT UG, to take into
791 account changes to -gnatwa and more recent warnings.
793 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
795 * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source
796 location when creating a call to a finalizer.
797 * exp_ch11.adb (Expand_Exception_Handlers): Do not provide
798 a source location for the first actual of Save_Occurrence for
801 2012-01-30 Ed Schonberg <schonberg@adacore.com>
803 * einfo.ads, einfo,adb: New attribute on scalar types:
804 Default_Aspect_Value New attribute on array types:
805 Default_Aspect_Component_Value Move attribute Related_Array_Object
806 to a different position to accomodate new aspect attributes.
807 * freeze.adb (Freeze_Entity): Use new attributes to retrieve value
808 of defaults set with an aspect specification, rather than using
809 the list of aspects attached to the type, to prevent issues with
811 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
812 Default_Value and Default_Component _Value, store corresponding
813 expression in type entity.
814 (Check_Aspect_At_End_Of_Declaration): If the default aspects
815 are declared on the full view, use the full view to resolve the
816 correseponding expression.
817 * exp_ch3.adb (Init_Component): Use attribute
818 Default_Aspect_Component_Value to perform default initialization,
819 rather than relying on the rep item list for the type.
820 (Get_Simple_Init_Val): Ditto.
822 2012-01-30 Thomas Quinot <quinot@adacore.com>
824 * a-strhas.ads: Document risk of collision attack.
826 2012-01-30 Yannick Moy <moy@adacore.com>
828 * gnat_ugn.texi: Minor update wrt warning switches.
830 2012-01-30 Vincent Celier <celier@adacore.com>
832 * prj-nmsc.adb (Check_Interfaces): Report an error when a
833 unit from Library_Interface is not a unit of the project.
835 2012-01-30 Vincent Pucci <pucci@adacore.com>
837 * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent
838 links fixed inside PPC pragmas.
839 * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl.
841 2012-01-30 Thomas Quinot <quinot@adacore.com>
843 * s-ransee.ads: Minor reformatting.
845 2012-01-30 Pascal Obry <obry@adacore.com>
847 * prj.ads, prj.adb (For_Each_Source): Add support for skipping
848 sources coming from an encapsulated library.
850 2012-01-30 Ed Schonberg <schonberg@adacore.com>
852 * sem_ch3.adb (Process-Full_View): fix typo.
853 * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates
854 appear on a private type and the full view is available, ensure
855 existence of freeze node for full view.
856 (Build_Predicate_Function): Attach predicate function to both
857 views of a private type.
859 2012-01-30 Vincent Celier <celier@adacore.com>
861 * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs
862 for the project if either attribute Library_Interface or
863 Interfaces is declared.
864 (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in
867 2012-01-30 Pascal Obry <obry@adacore.com>
869 * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib
870 boolean value to true in the process list created by this routine.
871 * prj.ads (Project_List_Element): New field From_Encapsulated_Lib.
872 Continued work for KA06-021.
873 * prj.adb (Compute_All_Imported_Projects): Set
874 From_Encapsulated_Lib boolean flag.
876 2012-01-30 Vincent Pucci <pucci@adacore.com>
878 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor
880 * s-diflio.ads: Minor change.
882 2012-01-30 Javier Miranda <miranda@adacore.com>
884 * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call
885 to Get_Entry_Index. Required to generate code which provides
886 the correct value of Entry_Index in the target entry.
888 2012-01-30 Nicolas Roche <roche@adacore.com>
890 * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to
891 fix issue with zcx on VxWorks5.
893 2012-01-30 Pascal Obry <obry@adacore.com>
895 * prj.ads, prj.adb (For_Every_Project_Imported): Remove
897 (For_Every_Project_Imported_Context): New generic routine with
899 * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid
900 distributed complexity.
901 * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto.
903 2012-01-30 Thomas Quinot <quinot@adacore.com>
905 * exp_aggr.adb (Expand_Record_Aggregate): After creating the
906 _parent aggregate for an extension aggregate, check whether it
907 requires delayed (top-down) expansion.
909 2012-01-30 Vincent Pucci <pucci@adacore.com>
911 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten.
912 * snames.ads-tmpl: Name_Item and Name_Symbols added.
913 * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename
914 and change the position of parameter Symbols in every Put routine.
915 * s-dimmks.ads: Convert long float type Mks_Type into long
917 * s-llflex.ads: Modifications in comments.
919 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
921 * sem_ch12.adb (Earlier): Do not use the
922 top level source locations of the two input nodes.
924 2012-01-30 Robert Dewar <dewar@adacore.com>
926 * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads,
927 sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting.
929 2012-01-30 Robert Dewar <dewar@adacore.com>
931 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
933 2012-01-30 Olivier Hainque <hainque@adacore.com>
935 * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back +
938 2012-01-30 Thomas Quinot <quinot@adacore.com>
940 * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb,
941 sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb,
942 sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type):
943 New subprogram (extracted from
944 Sem_Cat.Validate_Remote_Access_Object_Type_Declaration).
945 (Einfo.Is_Remote_Types): Now applies to generic types. Update
946 documentation accordingly.
947 (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as
948 actual for a formal type to which a pragma Remote_Access_Type
950 (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect
952 (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can
953 be applied to a generic type if pragma Remote_Access_Type
954 applies, in which case the type of the attribute is
955 System.Partition_Interface.RACW_Stub_Type.
957 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
959 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set
960 an alignment on fields of the RETURN type built for the CICO mechanism.
962 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
964 * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
965 a call to a function that returns an unconstrained type with default
966 discriminant. Similarly, avoid doing the conversion to the nominal
967 result type in this case.
969 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
971 * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag.
972 * gcc-interface/decl.c (is_variable_size): Rename to...
973 (type_has_variable_size): ...this.
974 (adjust_packed): Adjust to above renaming.
975 (gnat_to_gnu_field): Set DECL_ALIASED_P on the field.
976 (field_is_artificial): New predicate.
977 (field_is_aliased): Likewise.
978 (field_has_self_size): Likewise.
979 (field_has_variable_size): Likewise.
980 (components_to_record): Record information for the final layout during
981 the first pass on fields.
982 If there is an aliased field placed after a field whose length depends
983 on discriminants, put all the fields of the latter sort, last.
985 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
987 * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare.
988 * gcc-interface/decl.c (get_minimal_subprog_decl): New function.
989 * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an
990 Access-like attribute in a dispatch table if the subprogram is public.
992 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
994 * gcc-interface/gigi.h (create_label_decl): Adjust.
995 * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter
996 and invoke gnat_pushdecl on it. Remove obsolete settings.
997 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Label>: Adjust call to
999 * gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise. Ignore the
1000 label for debugging purposes.
1002 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1004 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
1005 object with an unconstrained nominal subtype and if optimization isn't
1006 enabled, create a special VAR_DECL for debugging purposes.
1008 2012-01-23 Robert Dewar <dewar@adacore.com>
1010 * sem_prag.ads, sem_prag.adb: Minor reformatting.
1012 2012-01-23 Robert Dewar <dewar@adacore.com>
1014 * sem_ch13.adb (Analyze_Aspect_Specifications): Check for
1015 language defined aspect applied to renaming or formal type
1016 declaration (not permitted)
1018 2012-01-23 Matthew Heaney <heaney@adacore.com>
1020 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced
1021 comment with pragma Assert.
1023 2012-01-23 Vincent Pucci <pucci@adacore.com>
1025 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call
1026 to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode.
1027 * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New
1028 routine. In ASIS mode, convert any PPC pragmas into aspects in generic
1029 subprogram declaration in order to enable the analysis of PPC boolean
1032 2012-01-23 Robert Dewar <dewar@adacore.com>
1034 * sem_ch3.adb (Analyze_Object_Declaration): Properly
1035 handle Current_Value for volatile variables (also propagate
1036 Treat_As_Volatile from type to object).
1038 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1040 * sem_ch12.adb (Install_Body): Detect the case
1041 where the enclosing context is a package with a stub body that
1042 has already been replaced by the actual body. In such cases,
1043 the freeze node for the enclosing context must be inserted after
1046 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1048 * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called
1049 subprogram before expanding the pragma into an if-statement with
1050 a block, to ensure that when the subprogram is null its body is
1051 properly generated before expansion.
1053 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1055 * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and
1056 constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal
1058 Freeze all eligible subprograms which appear as actuals in
1060 (Has_Fully_Defined_Profile): New routine.
1061 (Renames_Standard_Subprogram): New routine.
1062 (Earlier): Add local variable N. Comment update. Do not use source
1063 locations when trying to determine whether one node precedes another.
1065 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1067 * exp_ch4.adb (Expand_Concatenate): In the case
1068 where the result of a concatentation can be null, set the to
1069 result have both the low and high bounds of the right operand (not
1070 just the high bound, as was the case prior to this fix). Also,
1071 fix the saved high bound setting (Last_Opnd_High_Bound) in the
1072 empty string literal case (should have been low bound minus one,
1073 rather than plus one).
1075 2012-01-23 Thomas Quinot <quinot@adacore.com>
1077 * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not
1078 omit statement SCOs for disabled pragmas.
1080 2012-01-23 Matthew Heaney <heaney@adacore.com>
1082 * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads,
1083 a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads,
1084 a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads,
1085 a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read,
1086 Cursor'Write): Declare in private part.
1087 (Reference_Type'Read, Reference_Type'Write): Ditto.
1088 (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto.
1090 2012-01-23 Robert Dewar <dewar@adacore.com>
1092 * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor
1095 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1097 * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the
1098 Corresponding_Body on a defaulted null formal subprogram.
1099 * sem_ch12.adb (Check_Formal_Package_Instance): No check needed
1100 on a defaulted formal subprogram that is a null procedure.
1102 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1104 * exp_ch9.adb: Update the comments involving pragma Implemented.
1105 * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local
1106 constant Subp_Alias and local variable Impl_Subp. Properly
1107 handle aliases of synchronized wrappers. Code cleanup.
1108 (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add
1109 Name_Optional as part of the condition.
1110 * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the
1111 valid choices of implementation kind.
1112 (Check_Arg_Is_One_Of): New routine.
1113 * snames.ads-tmlp: Add Name_Optional.
1115 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1117 * par-ch13.adb: Better error recovery in illegal aspect
1120 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1122 * a-calend.adb: Add with clause for Interfaces.C. Add constant
1124 (Day_Of_Week): Call the internal UTC_Time_Offset.
1125 (Split): Call the internal UTC_Time_Offset.
1126 (Time_Of): Call the internal UTC_Time_Offset.
1127 (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset.
1128 (UTC_Time_Offset): New library-level routine.
1129 * a-calend.ads (UTC_Time_Offset): Remove parameter
1130 Is_Historic. Update related comment on usage.
1131 * a-catizo.adb (UTC_Time_Offset): Removed.
1132 (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset.
1133 * a-caltizo.ads (UTC_Time_Offset): Removed.
1134 (UTC_Time_Offset (Time)): Add back the default expression of parameter
1137 2012-01-23 Robert Dewar <dewar@adacore.com>
1139 * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter
1140 (pg,po,ps): Make sure each entry starts on new line.
1142 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1144 * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update
1145 the parameter profile of procedure localtime_tzoff and its associated
1147 (Day_Of_Week): Do not treat the input date as historical
1148 with respect to time zones.
1149 (Split): Do not treat the input
1150 date as historical with respect to time zones. (Time_Of): Do
1151 not treat the input constituents as forming a historical date
1152 with respect to time zones.
1153 (UTC_Time_Offset): Add new formal
1154 parameter Is_Historic. Add local variable Flag. Update the call
1156 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine.
1157 (UTC_Time_Offset (Time)): Update the call to
1158 Time_Zone_Operations.UTC_Time_Offset.
1159 * sysdep.c (__gnat_localtime_tzoff): Update parameter
1160 profile. Split the processing of offsets on Windows into two - one
1161 part of historic time stamps and the other for the current time.
1163 2012-01-23 Robert Dewar <dewar@adacore.com>
1165 * a-calend.adb: Minor reformatting.
1167 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1169 * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized
1170 interface in requeue statement.
1172 2012-01-23 Cyrille Comar <comar@adacore.com>
1174 * projects.texi: Remove references to main units and replace
1175 with references to main programs to be coherent with the
1178 2012-01-23 Robert Dewar <dewar@adacore.com>
1180 * s-utf_32.adb: Minor reformatting.
1182 2012-01-23 Vincent Celier <celier@adacore.com>
1184 * snames.ads-tmpl: Minor comment addition Indicate that
1185 Name_Library_Encapsulated_Options is only used in gprbuild.
1187 2012-01-23 Robert Dewar <dewar@adacore.com>
1189 * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit
1192 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1194 * snames.ads-tmpl: Add Name_Synchronization.
1195 * aspects.ads, aspects.adb: Add Aspect_Synchronization to
1196 enumeration type and related maps.
1197 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect
1198 Synchronization, build corresponding pragma Implemented.
1199 * sem_util.adb (Implementation_Kind): Handle both explicit and
1200 implicit pragma_argument association to retrieve the given
1201 synchronization mode.
1203 2012-01-23 Robert Dewar <dewar@adacore.com>
1205 * sem_ch10.adb, errout.adb: Minor reformatting.
1207 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1209 * sem_res.adb (Resolve_Actuals): An actual in a call to an
1210 Ada 2012 Reference function does not lead to a dangerous order
1213 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1215 * exp_util.adb (Is_Iterated_Container): Test
1216 Is_Entity_Name when searching for calls to the default iterator,
1217 to avoid blowing up on indirect calls which have an explicit
1218 dereference as the call name.
1220 2012-01-23 Thomas Quinot <quinot@adacore.com>
1222 * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output
1223 the complete expanded name, rather than just its Selector_Name.
1225 2012-01-23 Thomas Quinot <quinot@adacore.com>
1227 * a-textio.adb (Put): Rewrite one-parameter Character version to
1228 just call the two-parameter one with Current_Out.
1230 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1232 * freeze.adb (Check_Current_Instance): Issue an
1233 error when the prefix of 'Unchecked_Access or 'Access does not
1234 denote a legal aliased view of a type.
1235 (Freeze_Record_Type): Do not halt the processing of record components
1236 once the Has_Controlled_Component is set as this bypasses the remaining
1238 (Is_Aliased_View_Of_Type): New routine.
1240 2012-01-23 Thomas Quinot <quinot@adacore.com>
1242 * errout.ads, freeze.adb: Minor reformatting.
1244 2012-01-23 Thomas Quinot <quinot@adacore.com>
1246 * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
1249 2012-01-23 Olivier Hainque <hainque@adacore.com>
1251 * adadecode.c (__gnat_decode): Deal with empty input early,
1252 preventing potential erroneous memory access later on.
1254 2012-01-21 Eric Botcazou <ebotcazou@adacore.com>
1257 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: In the case of a
1258 renaming, preserve the volatileness through the indirection, if any.
1260 2012-01-14 Andreas Schwab <schwab@linux-m68k.org>
1262 * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add
1265 2012-01-10 Pascal Obry <obry@adacore.com>
1267 * prj-nmsc.adb (Check_Library_Attributes):
1268 Kill check for object/source directories for aggregate libraries.
1270 2012-01-10 Matthew Heaney <heaney@adacore.com>
1272 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
1273 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
1274 a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb,
1275 a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads,
1276 a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb,
1277 a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb,
1278 a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb,
1279 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads,
1280 a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare
1281 container parameter as aliased in/in out.
1284 2012-01-10 Bob Duff <duff@adacore.com>
1286 * s-os_lib.ads: Improve comment.
1288 2012-01-10 Geert Bosch <bosch@adacore.com>
1290 * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing
1293 2012-01-10 Bob Duff <duff@adacore.com>
1295 * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when
1296 checking that the 'Size is correct. If the type is "mod 2**12",
1297 for example, it's illegal, but Esize is the 'Object_Size, which
1298 will be something like 16 or 32, so the error ('Size = 12) was
1300 * gnat_rm.texi: Improve documentation of shift
1301 and rotate intrinsics.
1303 2012-01-10 Pascal Obry <obry@adacore.com>
1305 * prj.adb (For_Every_Project_Imported): Fix
1306 implementation to make sure we return each project only once
1307 for aggragte libraries. It is fine to return a project twice for
1308 aggregate projects, this was the case as a Project_Id is different
1309 in each project tree. The new implementation use a table based on
1310 the project name to ensure proper detection of duplicate project
1311 in aggregate library. A new context is then created to continue
1312 retrurning duplicate project for aggregate libraries.
1314 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1316 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
1317 return value in the variable-sized return type case if the target is
1318 an array with fixed size. However, do not create it if this is the
1319 expression of an object declaration.
1321 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1323 * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
1325 2012-01-06 Robert Dewar <dewar@adacore.com>
1327 * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads,
1328 s-utf_32.ads: Add pragma Pure
1329 * s-utf_32.adb: Suppress warnings on non-static constants (now
1332 2012-01-06 Bob Duff <duff@adacore.com>
1334 * s-rpc.ads (Read, Write): Add overriding indicators.
1336 2012-01-06 Robert Dewar <dewar@adacore.com>
1338 * gnat_rm.texi: Add documentation for conventions
1339 Ada_Pass_By_Copy and Ada_Pass_By_Reference.
1341 2012-01-06 Gary Dismukes <dismukes@adacore.com>
1343 * a-tienio.adb (Put): Add exception message on
1344 raise statements. Remove unneeded blocks and object declarations.
1346 2012-01-06 Robert Dewar <dewar@adacore.com>
1348 * sem_prag.adb: Minor reformatting.
1350 2012-01-06 Ed Schonberg <schonberg@adacore.com>
1352 * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate
1353 that a selected component within a generic unit has been resolved
1354 as a prefixed call with local references.
1355 * sem_ch3.adb (Is_Visible_Component): In an instance body a selected
1356 component is always visible.
1357 * sem_ch4.adb (Analyze_Selected_Component): If the node is a
1358 prefixed call in an instance, do not look for visible components
1360 * sem_ch12.adb (Reset_Entity): If a selected component has resolved
1361 to a prefixed call, mark the node accordingly when prefix and
1362 selector are local references.
1364 2012-01-02 Eric Botcazou <ebotcazou@adacore.com>
1366 * gnatvsn.ads (Current_Year): Bump to 2012.
1368 Copyright (C) 2012 Free Software Foundation, Inc.
1370 Copying and distribution of this file, with or without modification,
1371 are permitted in any medium without royalty provided the copyright
1372 notice and this notice are preserved.