sem.ads, sem.adb (Preanalyze): New routine.
[gcc.git] / gcc / ada / ChangeLog
1 2012-03-15 Vincent Pucci <pucci@adacore.com>
2
3 * sem.ads, sem.adb (Preanalyze): New routine.
4 * sem_ch4.adb (Analyze_Quantified_Expression): Call to the
5 Preanalyze routine in Sem added. Renaming of Needs_Expansion
6 into Need_Preanalysis.
7 * sem_ch6.adb (Preanalyze): Removed.
8
9 2012-03-15 Robert Dewar <dewar@adacore.com>
10
11 * sem_ch4.adb (Analyze_Quantified_Expression): Add comment.
12 * sem_prag.adb: Minor comment additions.
13 * sem_attr.adb (Check_First_Last_Valid): Make sure prefix type
14 is frozen.
15
16 2012-03-15 Vincent Pucci <pucci@adacore.com>
17
18 * sem_ch4.adb (Analyze_Quantified_Expression):
19 Preanalyze the condition when the quantified expression will be
20 further expanded.
21
22 2012-03-15 Yannick Moy <moy@adacore.com>
23
24 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, sem_ch6.adb,
25 sem_warn.adb: Minor refactoring, renaming Case_Pragma in CTC_Pragma,
26 to refer to both Test_Case pragma and Contract_Case pragma (same
27 acronym as in Spec_CTC_List).
28
29 2012-03-15 Robert Dewar <dewar@adacore.com>
30
31 * sem_prag.adb, sem_prag.ads, sem_util.ads, sem_attr.adb, sem_ch6.adb,
32 sem_warn.adb: Minor reformatting.
33
34 2012-03-15 Hristian Kirtchev <kirtchev@adacore.com>
35
36 * exp_util.adb (Initialized_By_Ctrl_Function): Do not loop over
37 selector names as the function call always appears at the top selected
38 component.
39
40 2012-03-15 Ed Schonberg <schonberg@adacore.com>
41
42 * sem_ch12.adb (Validate_Access_Subprogram_Instance): keep
43 Mode_Conformance check for older versions of the language.
44
45 2012-03-15 Yannick Moy <moy@adacore.com>
46
47 * gnat_ugn.texi Document the extension of option -gnatw.t.
48 * sem_ch3.adb (Analyze_Declaration): Check for suspicious
49 contracts only after contract cases have been semantically
50 analyzed.
51 * sem_ch6.adb (Check_Subprogram_Contract): Consider also Ensures
52 components of contract cases for detecting suspicious contracts.
53
54 2012-03-15 Yannick Moy <moy@adacore.com>
55
56 * aspects.adb, aspects.ads (Aspect_Id): New GNAT aspect
57 Aspect_Contract_Case.
58 * gnat_rm.texi Document the new pragma/aspect
59 Contract_Case. Correct the documentation of the existing
60 pragma/aspect Test_Case with the new semantics.
61 * sem_attr.adb (Analyze_Attribute): Allow use of 'Result in the
62 Ensures component of a Contract_Case pragma.
63 * sem_ch13.adb (Analyze_Aspect_Specifications): Check new aspect
64 and translate it into a pragma.
65 (Check_Aspect_At_Freeze_Point): Take into account the new aspect.
66 * sem_ch3.adb, sinfo.adb, sinfo.ads Renaming of TC (for test case)
67 into CTC (for contract and test case).
68 * sem_ch6.adb (Process_PPCs): Generate Check pragmas from
69 Contract_Case pragmas, similarly to what is done already for
70 postconditions.
71 * sem_prag.adb, sem_prag.ads (Check_Contract_Or_Test_Case):
72 Renaming of Check_Test_Case.
73 (Analyze_Pragma, Sig_Flags): Take into account the new pragma.
74 * sem_util.adb, sem_util.ads Renaming to take into account the
75 new pragma, so that functions which applied only to Test_Case
76 now apply to both Test_Case and Contract_Case.
77 * par-prag.adb, sem_warn.adb, snames.ads-tmpl Take into account
78 the new pragma.
79
80 2012-03-15 Robert Dewar <dewar@adacore.com>
81
82 * sem_ch6.ads: Minor comment updates.
83 * sem_ch12.adb: Minor comment clarification.
84
85 2012-03-15 Robert Dewar <dewar@adacore.com>
86
87 * sem_ch5.adb: Minor reformatting.
88
89 2012-03-15 Ed Schonberg <schonberg@adacore.com>
90
91 * exp_ch3.adb (Expand_N_Object_Declaration): When rewriting the
92 declaration of a class-wide object, retain the Ekind to prevent
93 subsequent misuse of constants.
94
95 2012-03-15 Yannick Moy <moy@adacore.com>
96
97 * gnat_rm.texi, gnat_ugn.texi: Minor correction of invariant
98 terminology.
99
100 2012-03-15 Hristian Kirtchev <kirtchev@adacore.com>
101
102 * exp_util.adb (Initialized_By_Ctrl_Function): Add code to
103 process the case when a function call appears in object.operation
104 format.
105
106 2012-03-15 Ed Schonberg <schonberg@adacore.com>
107
108 * sem_ch6.ads, sem_ch6.adb (Check_Subtype_Conformant): add
109 Get_Inst formal, so that conformance within an instantiation
110 follows renamings of formals. This is similar to what is already
111 done in Check_Mode_conformant.
112 * sem_ch12.adb (Vailidate_Access_Subprogram_Instance): check that
113 formal and actual are subtype conformant. Previously only mode
114 conformance was required.
115
116 2012-03-15 Robert Dewar <dewar@adacore.com>
117
118 * par-ch6.adb, einfo.ads, sem_eval.adb, sem_eval.ads,
119 sem_case.adb: Minor reformatting.
120
121 2012-03-15 Robert Dewar <dewar@adacore.com>
122
123 * exp_attr.adb (Expand_N_Attribute_Reference): Add handling
124 of First_Valid/Last_Valid.
125 * sem_attr.adb (Check_First_Last_Valid): New procedure
126 (Analyze_Attribute): Add handling of First_Valid and Last_Valid
127 (Eval_Attribute): ditto.
128 * snames.ads-tmpl: Add entries for First_Valid and Last_Valid.
129
130 2012-03-15 Ed Schonberg <schonberg@adacore.com>
131
132 * exp_ch5.adb (Expand_Predicated_Loop): Suppress warnings on
133 loop variable, for the unusual case where the range has a single
134 element and the loop variable has no visible assignment to it.
135
136 2012-03-15 Vincent Pucci <pucci@adacore.com>
137
138 * exp_ch4.adb (Expand_N_Quantified_Expression): Expand the
139 original quantified expression node.
140 * sem_ch4.adb (Analyze_Quantified_Expression): Properly analyze
141 the quantified expression and preserve the original non-analyzed
142 quantified expression when an expansion is needed.
143 * sem_ch5.adb (Analyze_Iteration_Scheme): Special treatment
144 for quantified expressions.
145 (Analyze_Iterator_Specification): Special treatment for quantified
146 expressions.
147
148 2012-03-15 Ed Falis <falis@adacore.com>
149
150 * s-vxwork-ppc.ads: Update FP_CONTEXT so name of former pad
151 field matches VxWorks headers.
152
153 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
154
155 * gcc-interface/Makefile.in (mips-sgi-irix6*): Remove.
156
157 * a-intnam-irix.ads, mlib-tgt-specific-irix.adb,
158 s-intman-irix.adb, s-mastop-irix.adb, s-osinte-irix.adb,
159 s-osinte-irix.ads, s-proinf-irix-athread.adb,
160 s-proinf-irix-athread.ads, s-taprop-irix.adb, s-tasinf-irix.ads,
161 system-irix-n32.ads, system-irix-n64.ads, system-irix-o32.ads:
162 Remove.
163
164 * adaint.c [__mips && __sgi]: Remove.
165 (__gnat_number_of_cpus) [__mips && __sgi]: Remove.
166 [IS_CROSS && !(__mips && __sgi)]: Remove.
167 * adaint.h [sgi && _LFAPI]: Remove.
168 * cstreams.c (__gnat_full_name) [sgi]: Remove.
169 * env.c (__gnat_unsetenv) [__mips && __sgi]: Remove.
170 (__gnat_clearenv) [__mips && __sgi]: Remove.
171 * errno.c (_SGI_MP_SOURCE): Remove.
172 * gsocket.h [sgi]: Remove.
173 * init.c: Remove IRIX reference.
174 [sgi]: Remove.
175 * link.c [sgi]: Remove.
176 * s-oscons-tmplt.c [__mips && __sgi] (IOV_MAX): Don't define.
177 (main) [__mips && __sgi] (MAX_tv_sec): Don't define.
178 (CLOCK_SGI_FAST, CLOCK_SGI_CYCLE): Remove.
179 * sysdep.c [sgi]: Remove.
180 (getc_immediate_common) [sgi]: Remove.
181 (__gnat_localtime_tzoff) [sgi]: Remove.
182 * terminals.c [__mips && __sgi] (IRIX): Don't define.
183 [IRIX] (USE_GETPTY): Don't define.
184 (allocate_pty_desc) [USE_GETPTY]: Remove.
185
186 * g-traceb.ads: Remove IRIX reference.
187 * g-trasym.ads: Likewise.
188 * memtrack.adb: Likewise.
189 * s-interr-sigaction.adb: Likewise.
190
191 * gnat_rm.texi (Implementation Advice): Remove SGI info.
192 (Implementation Defined Characteristics): Likewise.
193 * gnat_ugn.texi (Summary of Run-Time Configurations, mips-irix):
194 Remove.
195 (Irix-Specific Considerations): Remove.
196
197 2012-03-13 Tristan Gingold <gingold@adacore.com>
198
199 * gcc-interface/gigi.h (flag_vms_malloc64): Refine condition.
200
201 2012-03-13 Tristan Gingold <gingold@adacore.com>
202
203 * sysdep.c: Adjust condition after removal of __osf__.
204
205 2012-03-12 Eric Botcazou <ebotcazou@adacore.com>
206
207 * gcc-interface/gigi.h (shift_unc_components_for_thin_pointers): Kill.
208 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove call
209 to above function.
210 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Adjust
211 handling of thin pointers.
212 <Attr_Descriptor_Size>: Likewise.
213 (gnat_to_gnu) <N_Free_Statement>: Likewise.
214 * gcc-interface/utils.c (shift_unc_components_for_thin_pointers): Kill.
215 (convert_to_fat_pointer): Adjust handling of thin pointers.
216 (convert) <POINTER_TYPE>: Likewise.
217 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Likewise.
218
219 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
220
221 * gcc-interface/Makefile.in (alpha*-dec-osf*): Remove.
222 * a-intnam-tru64.ads, mlib-tgt-specific-tru64.adb,
223 s-mastop-tru64.adb, s-osinte-tru64.adb, s-osinte-tru64.ads,
224 s-taprop-tru64.adb, s-tasinf-tru64.ads, s-taspri-tru64.ads,
225 system-tru64.ads: Remove.
226
227 * adaint.c (__gnat_number_of_cpus) [__alpha__ && __osf__]:
228 Remove.
229 [IS_CROSS] [!(__alpha__ && __osf__)]: Remove.
230 * env.c [__alpha__ && __osf__]: Remove.
231 * gsocket.h (_OSF_SOURCE): Remove.
232 (HAVE_THREAD_SAFE_GETxxxBYyyy) [__osf__]: Remove.
233 * init.c [__alpha__ && __osf__]: Remove.
234 * link.c [__osf__]: Remove.
235 * s-oscons-tmplt.c [__alpha__ && __osf__]: Remove.
236 [__osf__ && !_SS_MAXSIZE]: Remove.
237 * sysdep.c [__osf__]: Remove.
238 * terminals.c [__alpha__ && __osf__]: Remove.
239 [OSF1]: Remove.
240
241 * g-traceb.ads: Remove Tru64 reference.
242 * g-trasym.ads: Likewise.
243 * gnat_ugn.texi (Linking a Mixed C++ & Ada Program): Likewise.
244 (Summary of Run-Time Configurations): Likewise.
245 * memtrack.adb: Likewise.
246
247 2012-03-12 Tristan Gingold <gingold@adacore.com>
248
249 * gcc-interface/decl.c (gnat_to_gnu_param): Use flag_vms_malloc64
250 instead of TARGET_MALLOC64.
251 * gcc-interface/gigi.h (flag_vms_malloc64): Define instead
252 of TARGET_MALLOC64.
253
254 2012-03-09 Robert Dewar <dewar@adacore.com>
255
256 * a-direct.adb, comperr.adb, freeze.adb: Minor reformatting.
257
258 2012-03-09 Arnaud Charlet <charlet@adacore.com>
259
260 * s-taskin.adb (Initialize_ATCB): Set Task_Image_Len to
261 0 so that we never access this field uninitialized (e.g. in
262 Task_Primitives.Operations.Enter_Task for the environment task).
263
264 2012-03-09 Vincent Pucci <pucci@adacore.com>
265
266 * exp_ch5.adb (Expand_Iterator_Loop):
267 Call to Expand_Iterator_Loop_Over_Array added.
268 (Expand_Iterator_Loop_Over_Array): New routine. Expansion of
269 "of" iterator loop over arrays. Multidimensional array case added.
270
271 2012-03-09 Eric Botcazou <ebotcazou@adacore.com>
272
273 * uintp.ads: Fix minor pasto in comment.
274
275 2012-03-09 Vasiliy Fofanov <fofanov@adacore.com>
276
277 * a-direct.adb: Do not strip the trailing directory separator
278 from path, as this is already done inside Normalize_Pathname;
279 doing it again produces the wrong result on Windows for the
280 drive's root dir (i.e. "X:\" becomes "X:").
281
282 2012-03-09 Thomas Quinot <quinot@adacore.com>
283
284 * exp_attr.adb, freeze.adb, sem_attr.adb, aspects.adb, aspects.ads,
285 sem_ch13.adb, snames.ads-tmpl (Exp_Attr.Expand_N_Attribute_Reference):
286 Add Attribute_Scalar_Storage_Order.
287 (Sem_Attr.Analyze_Attribute, Eval_Attribute): Ditto.
288 (Aspects): Add Aspect_Scalar_Storage_Order (Snames): Add
289 Name_Scalar_Storage_Order and Attribute_Scalar_Storage_Order.
290 (Sem_Ch13.Analyze_Attribute_Definition_Clause): Add processing
291 for Scalar_Storage_Order.
292 (Freeze): If Scalar_Storage_Order is specified, check that it
293 is compatible with Bit_Order.
294
295 2012-03-09 Robert Dewar <dewar@adacore.com>
296
297 * s-osinte-linux.ads, sem_util.adb, s-taprop-linux.adb, exp_ch4.adb,
298 a-strsup.ads, sem_ch6.adb, a-stwisu.ads, exp_ch3.adb,
299 a-stzsup.ads: Minor reformatting.
300
301 2012-03-09 Thomas Quinot <quinot@adacore.com>
302
303 * s-ransee-vms.adb: Minor reformatting.
304
305 2012-03-09 Arnaud Charlet <charlet@adacore.com>
306
307 * comperr.adb (Delete_SCIL_Files): Fix handling of
308 N_Package_Renaming_Declaration and N_Generic_Package_Declaration.
309
310 2012-03-09 Javier Miranda <miranda@adacore.com>
311
312 * sem_ch6.adb (Check_Body_To_Inline): In AAMP and VM targets
313 use frontend inlining at all optimization levels.
314 * sem_util.adb (Must_Inline): In AAMP and VM targets, given that
315 there is no inlining support in the backend, use also frontend
316 inlining when compiling with optimizations enabled.
317 * exp_ch6.adb (Expand_Call): Minor code reorganization.
318
319 2012-03-09 Eric Botcazou <ebotcazou@adacore.com>
320
321 * gcc-interface/ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around.
322 (TYPE_UNCONSTRAINED_ARRAY): Adjust comment.
323 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Tidy
324 up. Add comment and use canonical predicate for thin pointers.
325 (gnat_to_gnu) <N_Free_Statement>: Tidy up and reorder. Add comment
326 and use canonical predicate for thin pointers.
327 * gcc-interface/utils.c (convert_to_fat_pointer): Remove superfluous
328 'else' and use standard name.
329 (convert_to_thin_pointer): Delete.
330 (convert) <POINTER_TYPE>: Do the difference in sizetype directly and
331 change obsolete idioms. Do not call above function.
332 (unchecked_convert): Fix formatting.
333 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: In the thin
334 pointer case, use byte_position to get the field position.
335
336 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
337
338 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set flags on the
339 DECL node built for a type which has a non-trivial equivalent type.
340
341 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
342
343 * gcc-interface/gigi.h (rest_of_type_decl_compilation): Delete.
344 * gcc-interface/decl.c (defer_finalize_level): Likewise.
345 (defer_finalize_list): Likewise.
346 (gnat_to_gnu_entity): Delete references to above variables and do not
347 call rest_of_type_decl_compilation.
348 (rest_of_type_decl_compilation): Delete.
349 (rest_of_type_decl_compilation_no_defer): Likewise.
350 * gcc-interface/utils.c (rest_of_record_type_compilation): Do not call
351 rest_of_type_decl_compilation.
352 (create_type_decl): Likewise.
353 (update_pointer_to): Likewise.
354
355 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
356
357 * gcc-interface/trans.c (Identifier_to_gnu): Don't unshare initializer.
358 (add_decl_expr): Mark external DECLs as used.
359 * gcc-interface/utils.c (convert) <CONSTRUCTOR>: Copy the vector.
360
361 2012-03-07 Tristan Gingold <gingold@adacore.com>
362
363 * s-ransee-vms.adb: New file.
364 * gcc-interface/Makefile.in: Use s-ransee-vms.adb on VMS.
365 * gcc-interface/Make-lang.in: Update dependencies.
366
367 2012-03-07 Bob Duff <duff@adacore.com>
368
369 * rtsfind.ads: Add support for finding Super_String types.
370 * sem_util.ads, sem_util.adb (Is_Bounded_String): New function
371 to determine whether a given type is a bounded string type.
372 (Is_Fully_Initialized_Type): Return True for bounded
373 string types, to suppress bogus warnings.
374 * exp_ch4.adb (Expand_Composite_Equality): Special case for bounded
375 strings: equality composes. This allows us to remove default values in
376 super strings.
377 * a-strsup.ads, a-stwisu.ads, a-stzsup.ads: Update comments.
378 * exp_ch3.adb (Expand_Freeze_Record_Type): Comment.
379
380 2012-03-07 Robert Dewar <dewar@adacore.com>
381
382 * sem_util.adb, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb: Minor
383 reformatting.
384
385 2012-03-07 Sergey Rybin <rybin@adacore.com frybin>
386
387 * gnat_ugn.texi: gnatpp: fix paragraph about sources with
388 preprocessor directives.
389
390 2012-03-07 Arnaud Charlet <charlet@adacore.com>
391
392 * s-osinte-linux.ads, s-taprop-linux.adb (prctl): New function.
393 (Enter_Task): Call prctl when relevant.
394
395 2012-03-07 Tristan Gingold <gingold@adacore.com>
396
397 * s-osinte-vms.ads: pthread_mutex_setname_np: new function.
398
399 2012-03-07 Ed Schonberg <schonberg@adacore.com>
400
401 * sem_ch6.adb (Process_Formals): a generic subprogram with
402 a formal incomplete type does not require a freeze node.
403
404 2012-03-07 Bob Duff <duff@adacore.com>
405
406 * sem_util.ads: Minor reformatting.
407
408 2012-03-07 Geert Bosch <bosch@adacore.com>
409
410 * targparm.ads: New target parameter Atomic_Sync_Default,
411 defaulting to True.
412 * targparm.adb (Get_Target_Parameters): Add processing for
413 Atomic_Sync_Default.
414 * gnat1drv.adb (Adjust_Global_Switches): Adjust Supress_Options
415 based on ASD.
416
417 2012-03-07 Javier Miranda <miranda@adacore.com>
418
419 * sem_ch3.adb (Analyze_Object_Declaration): If the object
420 declaration has an init expression then stop the analysis of the
421 object declaration if the expression which initializes the object
422 is a call to an inlined function which returns an unconstrained
423 and has been expanded into a procedure call.
424 * sem_ch5.adb (Has_Call_Using_Secondary_Stack): Add missing
425 support to handle selected components.
426 * sem_ch6.ads (Cannot_Inline): Adding parameter Is_Serious plus
427 documentation.
428 * sem_ch6.adb (Check_And_Build_Body_To_Inline): New
429 subprogram which implements the checks required by the
430 new rules for frontend inlining and builds the body to inline.
431 (Analyze_Subprogram_Body_Helper): Move code that
432 checks inlining of subprogram that has nested subprogram
433 to Check_And_Build_Body_To_Inline. Replace call to
434 Build_Body_To_Inline by call to the new subprogram
435 Check_And_Build_Body_To_Inline.
436 (Cannot_Inline): New implementation.
437 * sem_ch12.adb (Analyze_Package_Instantiation.Must_Inline_Subp):
438 New subprogram.
439 * sem_util.ad[sb] (Must_Inline): New subprogram.
440 (Returns_Unconstrained_Type): New subprogram.
441 * sem_res.adb (Resolve_Call): Do not create a transient scope
442 for inlined calls.
443 * inline.ads (Analyzing_Inlined_Bodies): Remove unreferenced variable.
444 * inline.adb (Analyze_Inlined_Bodies, Initialize): Remove setting
445 to false the variable Analyzing_Inlined_Bodies. Fix comments.
446 * exp_ch4.adb (Expand_N_Allocator): Fix handling of finalization master.
447 * exp_ch6.ads (List_Inlining_Info): New subprogram.
448 * exp_ch6.adb (Expand_Call.Do_Inline): New subprogram.
449 (Expand_Call.Do_Inline_Always): New subprogram.
450 (In_Unfrozen_Instance): Move the declaration of this subprogram.
451 (Expand_Inlined_Call.Reset_Dispatching_Calls): New subprogram.
452 (Expand_Inlined_Call): Adding new support for inlining functions
453 that return unconstrained types.
454 (List_Inlining_Info): New subprogram.
455 * debug.adb Document flags -gnatd.j and -gnatd.k
456 * gnat1drv.adb Add call to generate the new listing of inlined
457 calls and calls passed to the backend.
458
459 2012-03-07 Robert Dewar <dewar@adacore.com>
460
461 * sem_ch5.adb, s-vaflop.adb, s-taprop-vms.adb, exp_ch6.adb,
462 s-gearop.adb, sem_ch6.adb, g-trasym.adb: Minor reformatting.
463
464 2012-03-07 Javier Miranda <miranda@adacore.com>
465
466 * a-ngrear.ads: Add documentation.
467
468 2012-03-07 Tristan Gingold <gingold@adacore.com>
469
470 * s-taprop-vms.adb (Create_Task): set thread name.
471 * s-osinte-vms.ads (pthread_attr_setname_np): Declare.
472
473 2012-03-07 Arnaud Charlet <charlet@adacore.com>
474
475 * g-trasym.adb: Minor reformatting.
476
477 2012-03-07 Robert Dewar <dewar@adacore.com>
478
479 * a-ngrear.ads: Minor addition of ??? comment.
480
481 2012-03-07 Gary Dismukes <dismukes@adacore.com>
482
483 * exp_ch4.adb (Apply_Accessibility_Check): Call
484 Remove_Side_Effects in the build-in-place case, to ensure that
485 we capture the call and don't end up with two calls.
486
487 2012-03-07 Javier Miranda <miranda@adacore.com>
488
489 * exp_ch6.adb (Expand_Inlined_Call): Skip inlining of functions
490 that return unconstrained types using an extended return statement
491 since the support for inlining these functions has not been yet
492 added to the frontend.
493 * s-vaflop.adb, s-vaflop-vms-alpha.adb: Code reorganization.
494 * a-ngrear.ads: Replace all the Inline_Always pragmas by pragma
495 Inline.
496 * a-ngrear.adb (Eigenvalues, Transpose): Restructured to use
497 extended return statement.
498 * a-strsup.adb, a-stzsup.adb, a-stwisu.adb (Concat, Super_Slice,
499 Super_To_String): Restructured to use extended return statement.
500 * a-chahan.adb (To_Basic, To_Lower, To_Upper): Restructured to
501 use extended return statement.
502 * s-gearop.adb (Diagonal, Matrix_Elementwise_Operation,
503 Vector_Elementwise_Operation, Matrix_Elementwise_Operation,
504 Matrix_Matrix_Scalar_Elementwise_Operation,
505 Vector_Vector_Elementwise_Operation,
506 Vector_Vector_Scalar_Elementwise_Operation,
507 Matrix_Scalar_Elementwise_Operation,
508 Vector_Scalar_Elementwise_Operation,
509 Scalar_Matrix_Elementwise_Operation,
510 Scalar_Vector_Elementwise_Operation, Matrix_Matrix_Product,
511 Matrix_Vector_Product, Outer_Product, Unit_Matrix, Unit_Vector,
512 Vector_Matrix_Product): Restructured to use extended return
513 statement.
514
515 2012-03-07 Vincent Pucci <pucci@adacore.com>
516
517 * sem_ch5.adb (One_Bound): Minor reformatting.
518
519 2012-03-07 Tristan Gingold <gingold@adacore.com>
520
521 * s-osinte-vms-ia64.adb, s-osinte-vms-ia64.ads, s-osinte-vms.adb,
522 s-osinte-vms.ads, gcc-interface/Makefile.in: Merge s-osinte-vms and
523 s-osinte-vms-ia64.
524
525 2012-03-07 Ed Schonberg <schonberg@adacore.com>
526
527 * checks.adb (Apply_Predicate_Check): Do not generate a predicate
528 check is the context is an internally generated type-specific
529 function.
530 * sem_ch6.adb (Process_PPCs); the formals of internally generated
531 type-specific functions do not get assertion checks.
532
533 2012-03-07 Yannick Moy <moy@adacore.com>
534
535 * gnat_rm.texi: Minor renaming of title.
536 * gnat_ugn.texi: Minor correction.
537
538 2012-03-07 Vincent Pucci <pucci@adacore.com>
539
540 * exp_ch4.adb (Expand_N_Quantified_Expression): Minor
541 reformating.
542 * sem_ch4.adb (Analyze_Quantified_Expression): Creation and
543 analysis of the iteration scheme added in all cases.
544 * sem_ch5.adb (Analyze_Iteration_Scheme): Minor reformating.
545 (Analyze_Iterator_Specification): Minor reformating.
546 * sem_res.adb (Resolve_Quantified_Expression): Resolution of
547 the condition added in all cases.
548
549 2012-03-07 Thomas Quinot <quinot@adacore.com>
550
551 * einfo.adb, einfo.ads: Add flag Reverse_Storage_Order.
552
553 2012-03-07 Yannick Moy <moy@adacore.com>
554
555 * gnat_rm.texi, gnat_ugn.texi: Rewording of GNAT UG and GNAT RM to
556 account for Ada 2012 assertions, and their pragma counterparts in GNAT.
557
558 2012-03-07 Thomas Quinot <quinot@adacore.com>
559
560 * exp_attr.adb, sem_attr.adb: Minor reformatting.
561
562 2012-03-07 Bob Duff <duff@adacore.com>
563
564 * hostparm.ads (Max_Instantiations): Increase parameter.
565
566 2012-03-07 Bob Duff <duff@adacore.com>
567
568 * par-prag.adb: Minor code rearrangement.
569
570 2012-03-07 Bob Duff <duff@adacore.com>
571
572 * a-strsup.ads, a-stwisu.ads, a-stzsup.ads (Super_String):
573 Remove default initial value for Data. It is no longer needed
574 because "=" now composes properly for untagged records. This
575 default has caused efficiency problems.
576
577 2012-03-07 Ed Schonberg <schonberg@adacore.com>
578
579 * sem_res.adb (Resolve_Actuals): If the actual is a selected
580 component of an anonymous access type, whose prefix is a variable,
581 treat the variable as if it may be modified by the call, to
582 suppress spurious warnings that a variable might be declared as
583 a constant.
584
585 2012-03-07 Thomas Quinot <quinot@adacore.com>
586
587 * einfo.adb, einfo.ads: Remove unused entity flags.
588
589 2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
590
591 * gnat_ugn.texi (Inline Assembler): Fix swapping of Input and
592 Output operands throughout.
593
594 2012-03-07 Hristian Kirtchev <kirtchev@adacore.com>
595
596 * sem_ch12.adb (Earlier): When two nodes come from the same
597 generic instantiation, compare their locations. Otherwise always
598 use the top level locations of the nodes.
599
600 2012-03-07 Thomas Quinot <quinot@adacore.com>
601
602 * einfo.ads, sem_prag.adb: Minor reformatting.
603
604 2012-03-05 Jason Merrill <jason@redhat.com>
605
606 * gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn
607 before using it.
608
609 2012-03-04 Eric Botcazou <ebotcazou@adacore.com>
610
611 * gnatvsn.ads (Library_Version): Bump to 4.8.
612
613 2012-03-03 H.J. Lu <hongjiu.lu@intel.com>
614
615 * init.c (__gnat_adjust_context_for_raise): Also check
616 "orq $0x0,(%esp)" for x32.
617
618 * link.c (__gnat_default_libgcc_subdir): Set to libx32 for x32.
619
620 * gcc-interface/Makefile.in (arch): Set to x32 if MULTISUBDIR
621 is /x32 and add support for x32.
622
623 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
624
625 * gcc-interface/decl.c (components_to_record): Add ARTIFICIAL parameter
626 and set TYPE_ARTIFICIAL according to it. Adjust recursive call.
627 (gnat_to_gnu_entity) <E_Record_Type>: Adjust call to above function.
628 * gcc-interface/utils.c (rest_of_record_type_compilation): Do not
629 invoke rest_of_type_decl_compilation on the parallel type, if any.
630
631 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
632
633 * gcc-interface/utils.c (gnat_write_global_declarations): Make sure the
634 dummy global built for global types is preserved.
635
636 2012-02-27 Tristan Gingold <gingold@adacore.com>
637
638 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
639 E_Array_Type]: Reuse dummy fat type for gnu_ptr_template and
640 gnu_template_type.
641
642 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
643
644 * gcc-interface/ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Add checking.
645 (TYPE_BY_REFERENCE_P): New flag.
646 (TYPE_IS_BY_REFERENCE_P): New macro.
647 (TYPE_DUMMY_P): Add checking and remove VOID_TYPE.
648 (TYPE_IS_DUMMY_P): Adjust for above change.
649 * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_BY_REFERENCE_P
650 and TYPE_IS_BY_REFERENCE_P instead of TREE_ADDRESSABLE.
651 (gnat_to_gnu_param): Likewise.
652 (maybe_pad_type): Likewise.
653 (make_type_from_size): Use TYPE_IS_PACKED_ARRAY_TYPE_P.
654 * gcc-interface/misc.c (must_pass_by_ref): Use TYPE_IS_BY_REFERENCE_P
655 instead of TREE_ADDRESSABLE.
656 * gcc-interface/trans.c (finalize_nrv): Likewise.
657 (call_to_gnu): Likewise. Do not create a temporary for return values
658 with by-reference type here.
659 (gnat_to_gnu): Test TYPE_IS_DUMMY_P instead of TYPE_DUMMY_P.
660 (gnat_gimplify_expr) <ADDR_EXPR>: Don't do anything for non-constant
661 CONSTRUCTORs and calls.
662 * gcc-interface/utils.c (make_dummy_type): Get the equivalent type of
663 the underlying type and use it throughout. Use TYPE_IS_BY_REFERENCE_P
664 instead of TREE_ADDRESSABLE.
665 * gcc-interface/utils2.c (build_cond_expr): Deal with by-reference
666 types explicitly.
667
668 2012-02-27 Eric Botcazou <ebotcazou@adacore.com>
669
670 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Revert previous
671 change that creates a special VAR_DECL for debugging purposes. For an
672 aliased object with an unconstrained nominal subtype, make its type a
673 thin reference to the underlying object.
674 * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: Deal with
675 expressions built for the initialization of above objects.
676
677 2012-02-24 Dave Korn <dave.korn.cygwin@gmail.com>
678
679 * gcc-interface/Makefile.in (WIN_SO_PREFIX [windows targets]): New
680 Windows-specific make variable.
681 (WIN_SO_INSTALL_DIR [windows targets]): Likewise.
682 (install-gnatlib): Respect the above during installation when set,
683 and also install any windows import library that has been built.
684 (gnatlib-shared-win32): Use WIN_SO_PREFIX to name output DLL and also
685 build a corresponding import library.
686
687 2012-02-22 Robert Dewar <dewar@adacore.com>
688
689 * exp_util.adb, make.adb, sem_dim.adb, sem_ch4.adb, exp_disp.adb: Minor
690 reformatting.
691
692 2012-02-22 Geert Bosch <bosch@adacore.com>
693
694 * g-bytswa-x86.adb, g-bytswa.adb, gcc-interface/Makefile.in: Remove
695 x86-specific version of byteswap and use GCC builtins instead.
696
697 2012-02-22 Tristan Gingold <gingold@adacore.com>
698
699 * gcc-interface/decl.c (gnat_to_gnu_entity) [E_String_Type,
700 E_Array_Type]: Translate component ealier.
701
702 2012-02-22 Robert Dewar <dewar@adacore.com>
703
704 * par-ch3.adb (P_Signed_Integer_Type_Definition): Specialize
705 error message for 'Range.
706
707 2012-02-22 Pascal Obry <obry@adacore.com>
708
709 * s-taprop-mingw.adb (Finalize_TCB): Do not wait on thread handle as
710 this is our own thread.
711
712 2012-02-22 Sergey Rybin <rybin@adacore.com frybin>
713
714 * tree_io.ads: Update ASIS_Version_Number because of the changes
715 in Snames.
716
717 2012-02-22 Hristian Kirtchev <kirtchev@adacore.com>
718
719 * exp_ch7.adb (Create_Finalizer): Suppress elaboration checks on
720 stack-related finalizers.
721
722 2012-02-22 Ed Schonberg <schonberg@adacore.com>
723
724 * sem_ch6.adb (Analyze_Expression_Function): If the construct
725 is a completion, indicate that its formals are the formals of
726 a completion, and as such do not get a cross- reference entry.
727 (Analyze_Subprogram_Specification): Do not generate a definition
728 for the entity of an expression function, because it may be a
729 completion. Definition will be generated if needed when analyzing
730 the generated subprogram declaration.
731
732 2012-02-22 Vincent Celier <celier@adacore.com>
733
734 * make.adb (Check): When checking if an object file is in the
735 correct object directory, get the unit name from a previous call
736 to Check_Source_Info_In_ALI.
737 * makeutl.adb (Check_Source_Info_In_ALI): Return the name of
738 the unit when everything is OK, otherwise return No_Name.
739 * makeutl.ads (Check_Source_Info_In_ALI): Return Name_Id instead
740 of Boolean
741
742 2012-02-22 Ed Schonberg <schonberg@adacore.com>
743
744 * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): In an
745 instance, the operator is visible if an operand is of some
746 numeric type which is not in use or directly visible, and the
747 other operand is a numeric literal.
748
749 2012-02-22 Tristan Gingold <gingold@adacore.com>
750
751 * init.c: Minor code clean up.
752 * gcc-interface/Make-lang.in: Update dependencies.
753
754 2012-02-22 Arnaud Charlet <charlet@adacore.com>
755
756 * gnatlink.adb (Gnatlink): Use -gnatcC in CodePeer_Node,
757 otherwise GCC will generate an object file.
758
759 2012-02-22 Vincent Celier <celier@adacore.com>
760
761 * projects.texi: Correct typo related to "**" in Source_Dirs.
762
763 2012-02-22 Steve Baird <baird@adacore.com>
764
765 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Clean up generation of
766 error message text.
767
768 2012-02-22 Vincent Pucci <pucci@adacore.com>
769
770 * rtsfind.adb (Get_Unit_Name): Ada_Numerics_Child and
771 System_Dim_Child cases added.
772 * rtsfind.ads: Ada_Numerics,
773 Ada_Numerics_Generic_Elementary_Functions, System_Dim,
774 System_Dim_Float_IO and System_Dim_Integer_IO added to the list
775 of RTU_Id. Ada_Numerics_Child and System_Dim_Child added as
776 new RTU_Id subtypes.
777 * sem_dim.adb (Is_Dim_IO_Package_Entity): Use of
778 Rtsfind to verify the package entity is located either
779 in System.Dim.Integer_IO or in System.Dim.Float_IO.
780 (Is_Dim_IO_Package_Instantiation): Minor
781 changes. (Is_Elementary_Function_Call): Removed.
782 (Is_Elementary_Function_Entity): New routine.
783 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity call added.
784 * snames.ads-tmpl: Name_Dim and Name_Generic_Elementary_Functions
785 removed.
786
787 2012-02-22 Vincent Pucci <pucci@adacore.com>
788
789 * sem_prag.adb: Minor reformatting.
790
791 2012-02-22 Ed Schonberg <schonberg@adacore.com>
792
793 * sem_ch3.adb (Find_Type_Name): When analyzing a private type
794 declaration that is the completion of a tagged incomplete type, do
795 not associate the class-wide type already created with the private
796 type to prevent order-of-elaboration issues in the back-end.
797 * exp_disp.adb (Find_Specific_Type): Find specific type of
798 a class-wide type, and handle the case of an incomplete type
799 coming either from a limited_with clause or from an incomplete
800 type declaration. Used when expanding a dispatchin call and
801 generating tag checks (minor refactoring).
802
803 2012-02-22 Robert Dewar <dewar@adacore.com>
804
805 * exp_ch5.adb: Add comment.
806 * sem_ch12.adb, exp_ch6.adb: minor reformatting
807
808 2012-02-22 Ed Schonberg <schonberg@adacore.com>
809
810 * freeze.adb (Freeze_Entity): Do not perform type layout within
811 a generic unit.
812
813 2012-02-22 Eric Botcazou <ebotcazou@adacore.com>
814
815 * init.c (__gnat_error_handler) [Linux]: Map SIGBUS to
816 Storage_Error.
817
818 2012-02-22 Ed Schonberg <schonberg@adacore.com>
819
820 * exp_ch5.adb (Expand_N_Assignment_Statement): Reject an
821 assignment to a classwide type whose type is limited, as
822 can happen in an instantiation in programs that run afoul or
823 AI05-0087.
824
825 2012-02-17 Ed Schonberg <schonberg@adacore.com>
826
827 * exp_ch6.adb (Legal_Copy): If layout is not
828 determined in the front-end, do not emit error message when
829 by-reference actual is potentially unaligned.
830 * gcc-interface/decl.c (gnat_to_gnu_field): Better error message for
831 illegal representation clause on tagged or aliased component, or on
832 by-reference type with forced alignment.
833
834 2012-02-17 Nicolas Roche <roche@adacore.com>
835
836 * gcc-interface/Makefile.in: Ensure FORCE_DEBUG_ADAFLAGS variables is
837 propagated by gnatlib-sjlj and gnatlib-zcx targets.
838 * gcc-interface/Make-lang.in: Update dependencies.
839
840 2012-02-17 Thomas Quinot <quinot@adacore.com>
841
842 * sem_ch12.adb (Analyze_Package_Instantiation): For an
843 instantiation in an RCI library unit, omit the instance body
844 if the RCI library unit is the instance itself (E.2.3(18)),
845 but include the body if the instantiation is within the RCI
846 declaration (12.3(12)).
847
848 2012-02-17 Steve Baird <baird@adacore.com>
849
850 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Pre'Class and
851 Post'Class aspects can only be specified for a primitive operation
852 of a tagged type.
853
854 2012-02-17 Yannick Moy <moy@adacore.com>
855
856 * gnat_rm.texi: Minor shuffling.
857
858 2012-02-17 Ed Schonberg <schonberg@adacore.com>
859
860 * aspects.adb: Expression functions can carry pre/postconditions.
861 * par-ch6.adb (P_Subprogram): look for optional pre/postconditions
862 in an expression function.
863 * sem_prag (Check_Precondition_Postcondition): legal on expression
864 functions.
865
866 2012-02-17 Vincent Pucci <pucci@adacore.com>
867
868 * a-cdlili.adb, a-cidlli.adb, a-cihama.adb, a-cimutr.adb,
869 * a-ciorma.adb, a-cohama.adb, a-coinve.adb, a-comutr.adb,
870 * a-convec.adb, a-coorma.adb (Adjust): New routine.
871 (Constant_Reference): Increment Busy and Lock counters.
872 (Reference): Increase Busy and Lock counters.
873 (Finalize): New routine.
874 * a-cihase.adb, a-ciorse.adb, a-cohase.adb, a-coorse.adb:
875 (Adjust): New routine. (Constant_Reference): Increment Busy
876 and Lock counters.
877 (Finalize): New routine.
878 * a-cdlili.ads, a-cidlli.ads, a-cihama.ads, a-cihase.ads,
879 * a-cimutr.ads, a-ciorma.ads, a-ciorse.ads, a-cohama.ads,
880 * a-cohase.ads, a-coinve.ads, a-comutr.ads, a-convec.ads,
881 * a-coorma.ads, a-coorse: Controlled component added to the
882 reference types.
883
884 2012-02-17 Robert Dewar <dewar@adacore.com>
885
886 * restrict.adb (Check_Restriction): Add special handling for
887 No_Obsolescent_Features.
888
889 2012-02-17 Hristian Kirtchev <kirtchev@adacore.com>
890
891 * exp_util.adb (Find_Finalize_Address): When dealing with an
892 internally built full view for a type with unknown discriminants,
893 use the original record type.
894
895 2012-02-17 Robert Dewar <dewar@adacore.com>
896
897 * sem_dim.adb: Minor reformatting.
898
899 2012-02-17 Yannick Moy <moy@adacore.com>
900
901 * gnat_rm.texi: Minor rewording.
902
903 2012-02-17 Thomas Quinot <quinot@adacore.com>
904
905 * sem_aggr.adb: Minor reformatting.
906
907 2012-02-17 Robert Dewar <dewar@adacore.com>
908
909 * gnat_ugn.texi: Update doc for -gnatw.m to include 2*x case.
910
911 2012-02-17 Vincent Pucci <pucci@adacore.com>
912
913 * sem_dim.adb (Is_Dim_IO_Package_Entity): New routine.
914 (Is_Dim_IO_Package_Instantiation): Is_Dim_IO_Package_Entity
915 call added.
916 (Is_Procedure_Put_Call): Is_Dim_IO_Package_Entity
917 call added.
918 * s-dim.ads: Make package Pure.
919
920 2012-02-17 Gary Dismukes <dismukes@adacore.com>
921
922 * prj-nmsc.adb: Minor reformatting.
923
924 2012-02-17 Yannick Moy <moy@adacore.com>
925
926 * gnat_rm.texi: Update GNAT RM with a separate chapter on restrictions.
927
928 2012-02-17 Yannick Moy <moy@adacore.com>
929
930 * gnat_ugn.texi: Fix typos.
931
932 2012-02-17 Pascal Obry <obry@adacore.com>
933
934 * prj-nmsc.adb: prj-nmsc.adb (Check_Aggregated): Check that an
935 aggregate is not Externally_Built.
936
937 2012-02-17 Ed Schonberg <schonberg@adacore.com>
938
939 * sem_aggr.adb (Resolve_Record_Aggregate): If a composite
940 component has a box association, copy the default value using
941 the current scope as the scope of internal types, to prevent
942 scoping anomalies in gigi.
943
944 2012-02-17 Robert Dewar <dewar@adacore.com>
945
946 * sem_dim.adb, sem_dim.ads, s-tasren.adb, prj.adb, prj.ads, freeze.adb,
947 sem_res.adb, exp_ch4.adb, sinput.adb, sinput.ads, exp_aggr.adb,
948 exp_intr.adb, s-os_lib.adb: Minor reformatting.
949
950 2012-02-17 Ed Schonberg <schonberg@adacore.com>
951
952 * sem_ch6.adb (Is_Non_Overriding_Operation): Add warning if the
953 old operation is abstract, the relevant type is not abstract,
954 and the new subprogram fails to override.
955
956 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
957
958 * gcc-interface/trans.c (Identifier_to_gnu): Move block retrieving the
959 type of the result to the end and execute it for a deferred constant of
960 a discriminated type whose full view can be elaborated statically.
961
962 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
963
964 * gcc-interface/trans.c (gnat_to_gnu) <N_Qualified_Expression>: If the
965 type is tagged, mark it as used for debugging purposes.
966 <N_Allocator>: Likewise for a qualified expression.
967
968 2012-02-15 Eric Botcazou <ebotcazou@adacore.com>
969
970 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
971 return value in the by-reference return type case if this isn't the
972 expression of an object declaration. Tidy up.
973
974 2012-02-09 Tristan Gingold <gingold@adacore.com>
975
976 * gcc-interface/Makefile.in: Remove .sym rule (not used).
977 Remove adamsg.o object (requires native message compiler).
978 * init.c (CMA$_EXIT_THREAD, MTH$_FLOOVEMAT, SS$_INTDIV): Define as a
979 macro instead of as extern int.
980 (ADA$_ALREADY_OPEN, ADA$_CONSTRAINT_ERRO, ADA$_DATA_ERROR)
981 (ADA$_DEVICE_ERROR, ADA$_END_ERROR, ADA$_FAC_MODE_MISMAT)
982 (ADA$_IOSYSFAILED, ADA$_KEYSIZERR, ADA$_KEY_MISMATCH)
983 (ADA$_LAYOUT_ERROR, ADA$_LINEXCMRS, ADA$_MAXLINEXC)
984 (ADA$_MODE_ERROR, ADA$_MRN_MISMATCH, ADA$_MRS_MISMATCH)
985 (ADA$_NAME_ERROR, ADA$_NOT_OPEN, ADA$_ORG_MISMATCH)
986 (ADA$_PROGRAM_ERROR, ADA$_RAT_MISMATCH, ADA$_RFM_MISMATCH)
987 (ADA$_STAOVF, ADA$_STATUS_ERROR, ADA$_STORAGE_ERROR)
988 (ADA$_UNSUPPORTED, ADA$_USE_ERROR): Likewise.
989 (struct cond_except): Field cond is now an unsigned int.
990 (dec_ada_cond_except_table): Adjust.
991 (cond_except_table): Likewise.
992 (cond_resignal_table): Likewise.
993 (__gnat_default_resignal_p): Fix style.
994
995 2012-02-08 Vincent Celier <celier@adacore.com>
996
997 * gcc-interface/Make-lang.in: Add g-byorma.o to gnatbind objects
998 (g-buorma is now imported by sinput).
999 Update dependencies.
1000 * scn.adb (Initialize_Scanner): Call Check_For_BOM
1001 * sinput-p.adb (Source_File_Is_Subunit): Call Check_For_BOM
1002 * sinput.adb: New procedure Check_For_BOM
1003 * sinput.ads: New procedure Check_For_BOM
1004
1005 2012-02-08 Vincent Pucci <pucci@adacore.com>
1006
1007 * impunit.adb: Dimension package names updated
1008 * Makefile.rtl: s-dim added
1009 * sem_dim.adb (Is_Procedure_Put_Call): minor changes
1010 (Is_Dim_IO_Package_Instantiation): minor changes
1011 * sem_dim.ads: minor changes in comments
1012 * snames.ads-tmpl: Name_Dim added Name_Dim_Float_IO and
1013 Name_Dim_Integer_IO removed
1014 * s-dim.ads: New package. Define the dimension terminology.
1015 * s-diflio.adb, s-diinio.adb, s-dimkio.ads, s-dimmks.ads,
1016 * s-dmotpr.ads: Package names updated.
1017 * s-diflio.ads, s-diinio.ads: Documentation added and package
1018 names updated.
1019
1020 2012-02-08 Gary Dismukes <dismukes@adacore.com>
1021
1022 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): Revise test
1023 for storage pools to test for an underlying record type rather than
1024 testing Is_Tagged_Type, so that simple storage pools will be handled
1025 the same as normal Ada storage pools.
1026
1027 2012-02-08 Yannick Moy <moy@adacore.com>
1028
1029 * gnat_rm.texi: Minor reshuffling to place restriction at
1030 appropriate place.
1031
1032 2012-02-08 Bob Duff <duff@adacore.com>
1033
1034 * warnsw.adb (Set_Warning_Switch): Set Warn_On_Suspicious_Modulus_Value
1035 False for '-gnatwA', to suppress these warnings.
1036
1037 2012-02-08 Vincent Celier <celier@adacore.com>
1038
1039 * sinput-p.adb (Source_File_Is_Subunit): Check for BOM before
1040 starting to scan, so that UTF8 encoding is taken into account.
1041
1042 2012-02-08 Arnaud Charlet <charlet@adacore.com>
1043
1044 * s-tasren.adb, s-tasren.ads (Internal_Complete_Rendezvous): New
1045 function.
1046 (Complete_Rendezvous): Now call Internal_Complete_Rendezvous.
1047 (Exceptional_Complete_Rendezvous): Mark No_Return.
1048
1049 2012-02-08 Eric Botcazou <ebotcazou@adacore.com>
1050
1051 * exp_aggr.adb (Compile_Time_Known_Composite_Value):
1052 New predicate to compute whether a composite value can be
1053 evaluated at compile time.
1054 (Component_Not_OK_For_Backend): Use Compile_Time_Known_Value for all
1055 expressions of elementary type and Compile_Time_Known_Composite_Value
1056 for all other expressions.
1057 (Expand_Record_Aggregate): Convert to assignments in the case
1058 of a type with mutable components if the aggregate cannot be
1059 built statically.
1060
1061 2012-02-08 Gary Dismukes <dismukes@adacore.com>
1062
1063 * aspects.ads (type Aspect_Id): Add Simple_Storage_Pool_Type.
1064 (Impl_Defined_Aspects): Add association for
1065 Aspect_Simple_Storage_Pool_Type.
1066 (Aspect_Names): Add
1067 association for Aspect_Simple_Storage_Pool_Type.
1068 * aspects.adb:
1069 (Canonical_Aspect): Add association for Simple_Storage_Pool_Type.
1070 * exp_attr.adb (Expand_N_Attribute_Reference):
1071 Change name to Name_Simple_Storage_Pool_Type.
1072 * exp_ch4.adb (Expand_N_Allocator): Change
1073 name to Name_Simple_Storage_Pool_Type.
1074 * exp_intr.adb (Expand_Unc_Deallocation): Change name to
1075 Name_Simple_Storage_Pool_Type. * freeze.adb (Freeze_Entity):
1076 Change names to Name_Simple_Storage_Pool_Type. * par-prag.adb:
1077 Change names to Name_Simple_Storage_Pool_Type. * sem_attr.adb:
1078 (Analyze_Attribute): Change name to Name_Simple_Storage_Pool_Type.
1079 * sem_ch13.adb (Analyze_Attribute_Definition_Clause):
1080 Change name to Name_Simple_Storage_Pool_Type.
1081 * sem_prag.adb:
1082 (Analyze_Pragma): Change name to Name_Simple_Storage_Pool_Type.
1083 (Sig_Flags): Change name to Name_Simple_Storage_Pool_Type.
1084 * sem_res.adb (Resolve_Allocator): Change name to
1085 Name_Simple_Storage_Pool_Type. * snames.ads-tmpl:
1086 (Name_Simple_Storage_Pool_Type): New name constant.
1087 (type Pragma_Id): Change name to Name_Simple_Storage_Pool_Type and
1088 move to main pragma section because it no longer matches the
1089 attribute name.
1090 * snames.adb-tmpl (Get_Pragma_Id): Remove test for
1091 Name_Simple_Storage_Pool.
1092 (Is_Pragma_Name): Remove test for Name_Simple_Storage_Pool.
1093
1094 2012-02-08 Robert Dewar <dewar@adacore.com>
1095
1096 * gnat_ugn.texi: Add some clarification to -gnatwA and -gnatws.
1097
1098 2012-02-08 Pascal Obry <obry@adacore.com>
1099
1100 * prj.adb (Compute_All_Imported_Projects): Use new
1101 For_Project_And_Aggregated_Context to ensure proper context is
1102 used for encapsulated aggregate libraries.
1103 * prj-proc.adb (Recursive_Process): Call
1104 Process_Aggregated_Projects earlier to ensure that all dependent
1105 projects are set with the proper encapsulated status.
1106
1107 2012-02-08 Pascal Obry <obry@adacore.com>
1108
1109 * s-os_lib.adb (Normalize_Arguments): Properly escape last \ in null
1110 terminated string.
1111
1112 2012-02-08 Pascal Obry <obry@adacore.com>
1113
1114 * prj.ads, prj.adb (For_Project_And_Aggregated_Context): New
1115 generic routine with a context parameter.
1116
1117 2012-02-08 Robert Dewar <dewar@adacore.com>
1118
1119 * a-coinve.adb, sem_util.adb, sem_ch8.adb, a-cobove.adb,
1120 a-convec.adb: Minor reformatting and code reorganization.
1121
1122 2012-02-08 Steve Baird <baird@adacore.com>
1123
1124 * sem_cat.adb (In_Preelaborated_Unit): A child
1125 unit instantiation does not inherit preelaboration requirements
1126 from its parent.
1127
1128 2012-02-08 Gary Dismukes <dismukes@adacore.com>
1129
1130 * aspects.ads (type Aspect_Id): Add Aspect_Simple_Storage_Pool.
1131 (Impl_Defined_Aspects): Add entry for Aspect_Simple_Storage_Pool.
1132 (Aspect_Argument): Add Name entry for Aspect_Simple_Storage_Pool.
1133 (Aspect_Names): Add entry for Aspect_Simple_Storage_Pool.
1134 * aspects.adb (Canonical_Aspect): Add entry for
1135 Aspect_Simple_Storage_Pool.
1136 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of
1137 Attribute_Simple_Storage_Pool in the same way as Storage_Pool
1138 (add conversion, analyze/resolve). For the Storage_Size attribute,
1139 for the simple pool case, locate and use the simple pool type's
1140 Storage_Size function (if any), otherwise evaluate to zero.
1141 * exp_ch4.adb (Expand_N_Allocator): In the case of an allocator
1142 for an access type with an associated simple storage pool,
1143 locate and use the pool type's Allocate.
1144 * exp_intr.adb (Expand_Unc_Deallocation): In the case where the
1145 access type has a simple storage pool, locate the pool type's
1146 Deallocate procedure (if present) and use it as the procedure
1147 to call on the Free operation.
1148 * freeze.adb (Freeze_Entity): In the case of a full type for
1149 a private type defined with pragma Simple_Storage_Pool, check
1150 that the full type is also appropriate for the pragma. For
1151 a simple storage pool type, validate that the operations
1152 Allocate, Deallocate (if present), and Storage_Size
1153 (if present) are defined with appropriate expected profiles.
1154 (Validate_Simple_Pool_Op_Formal): New procedure
1155 (Validate_Simple_Pool_Operation): New procedure Add with and
1156 use of Rtsfind.
1157 * par-prag.adb: Add Pragma_Simple_Storage_Pool to case statement
1158 (no action required).
1159 * sem_attr.adb (Analyze_Attribute): For the case of the
1160 Storage_Pool attribute, give a warning if the prefix type has an
1161 associated simple storage pool, and rewrite the attribute as a
1162 raise of Program_Error. In the case of the Simple_Storage_Pool
1163 attribute, check that the prefix type has an associated simple
1164 storage pool, and set the attribute type to the pool's type.
1165 * sem_ch13.adb (Analyze_Aspect_Specifications): Add
1166 Aspect_Simple_Storage_Pool case choice.
1167 (Analyze_Attribute_Definition_Clause): Add
1168 Aspect_Simple_Storage_Pool to case for Ignore_Rep_Clauses
1169 (no action). Add handling for Simple_Storage_Pool attribute
1170 definition, requiring the name to denote a simple storage pool
1171 object.
1172 (Check_Aspect_At_Freeze_Point): For a simple storage pool
1173 aspect, set the type to that of the name specified for the aspect.
1174 * sem_prag.adb (Analyze_Pragma): Add handling for pragma
1175 Simple_Storage_Pool, requiring that it applies to a library-level
1176 type declared in a package declaration that is a limited private
1177 or limited record type.
1178 * sem_res.adb (Resolve_Allocator): Flag an attempt to call a
1179 build-in-place function in an allocator for an access type with
1180 a simple storage pool as unsupported.
1181 * snames.ads-tmpl: Add Name_Simple_Storage_Pool.
1182 (type Attribute_Id): Add Attribute_Simple_Storage_Pool.
1183 (type Pragma_Id): Add Pragma_Simple_Storage_Pool.
1184 * snames.adb-tmpl (Get_Pragma_Id): Handle case of
1185 Name_Simple_Storage_Pool.
1186 (Is_Pragma_Name): Return True for Name_Simple_Storage_Pool.
1187
1188 2012-02-08 Cyrille Comar <comar@adacore.com>
1189
1190 * projects.texi: Clarify doc for interfaces.
1191
1192 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
1193
1194 * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
1195 (GCC_LINK): Use it.
1196
1197 2012-02-01 Tristan Gingold <gingold@adacore.com>
1198
1199 * gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
1200 instead of size_type_node.
1201
1202 2012-01-30 Nicolas Roche <roche@adacore.com>
1203
1204 * gcc-interface/Make-lang.in: Update dependencies.
1205 * gcc-interface/Makefile.in: Use system-vxworks-system-ppc-mils.ads
1206 when needed.
1207 Remove Linker_Options -crtbe when building sjlj run-time.
1208
1209 2012-01-30 Robert Dewar <dewar@adacore.com>
1210
1211 * sem.adb (Analyze): Call Analyze_Mod for N_Op_Mod mode.
1212 * sem_ch3.adb (Modular_Type_Declaration): Warn on mod value of
1213 form 2 * small-literal.
1214 * sem_ch4.adb (Analyze_Mod): New procedure (warn on suspicious
1215 mod value).
1216 * sem_ch4.ads (Analyze_Mod): New procedure.
1217
1218 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1219
1220 * sem_ch6.adb: sem_ch6.adb (Analyze_Expression_Function): Copy
1221 types and return expression when building spec for implicit
1222 body, to preserve global references that may be present in an
1223 instantiation.
1224
1225 2012-01-30 Matthew Heaney <heaney@adacore.com>
1226
1227 * a-convec.adb, a-coinve.adb, a-cobove.adb (Sort,
1228 Reverse_Elements): Check for cursor tampering.
1229
1230 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1231
1232 * sem_util.adb (Is_Fully_Initialized_Type): In Ada 2012, a
1233 type with aspect Default_Value or Default_Component_Value is
1234 fully initialized, and use of variables of such types do not
1235 generate warnings.
1236
1237 2012-01-30 Javier Miranda <miranda@adacore.com>
1238
1239 PR ada/15846
1240 * sem_ch8.adb (Analyze_Subprogram_Renaming):
1241 Handle self-renaming when the renamed entity is referenced using
1242 its expanded name.
1243
1244 2012-01-30 Vincent Celier <celier@adacore.com>
1245
1246 * projects.texi: Add documentation for attribute Interfaces.
1247
1248 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1249
1250 * exp_ch7.adb (Build_Finalizer_Call): Set loc again.
1251 * exp_ch11.adb (Expand_At_End_Handler): Do not provide a source
1252 location for the wrapped call to the original AT_END routine
1253 and the subsequent return statement.
1254
1255 2012-01-30 Pascal Obry <obry@adacore.com>
1256
1257 * s-rannum.adb: Minor reformatting.
1258
1259 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1260
1261 * a-calend-vms.adb, a-calend.adb: Increment the number of leap seconds
1262 to 25 and add the hard time value for 2012-06-30.
1263
1264 2012-01-30 Robert Dewar <dewar@adacore.com>
1265
1266 * a-strhas.ads, einfo.adb, einfo.ads, exp_ch7.adb, exp_ch9.adb,
1267 freeze.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-proc.adb, s-llflex.ads,
1268 s-ransee.adb, s-ransee.ads, sem_ch13.adb, sem_dim.adb, sem_prag.adb:
1269 Minor reformatting/code reorganization.
1270
1271 2012-01-30 Thomas Quinot <quinot@adacore.com>
1272
1273 * s-rannum.adb, s-ransee.adb, s-ransee.ads (Get_Seed): Return
1274 Unsigned_64 rather than Duration.
1275 (System.Random_Numbers.Reset): Use full value of seed
1276 (do not truncate sub-second bits).
1277
1278 2012-01-30 Thomas Quinot <quinot@adacore.com>
1279
1280 * sem_cat.adb, sem_ch12.adb: Minor reformatting.
1281
1282 2012-01-30 Yannick Moy <moy@adacore.com>
1283
1284 * gnat_ugn.texi: Minor correction of GNAT UG, to take into
1285 account changes to -gnatwa and more recent warnings.
1286
1287 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1288
1289 * exp_ch7.adb (Build_Finalizer_Call): Do not provide a source
1290 location when creating a call to a finalizer.
1291 * exp_ch11.adb (Expand_Exception_Handlers): Do not provide
1292 a source location for the first actual of Save_Occurrence for
1293 consistency sake.
1294
1295 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1296
1297 * einfo.ads, einfo,adb: New attribute on scalar types:
1298 Default_Aspect_Value New attribute on array types:
1299 Default_Aspect_Component_Value Move attribute Related_Array_Object
1300 to a different position to accomodate new aspect attributes.
1301 * freeze.adb (Freeze_Entity): Use new attributes to retrieve value
1302 of defaults set with an aspect specification, rather than using
1303 the list of aspects attached to the type, to prevent issues with
1304 partial views.
1305 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1306 Default_Value and Default_Component _Value, store corresponding
1307 expression in type entity.
1308 (Check_Aspect_At_End_Of_Declaration): If the default aspects
1309 are declared on the full view, use the full view to resolve the
1310 correseponding expression.
1311 * exp_ch3.adb (Init_Component): Use attribute
1312 Default_Aspect_Component_Value to perform default initialization,
1313 rather than relying on the rep item list for the type.
1314 (Get_Simple_Init_Val): Ditto.
1315
1316 2012-01-30 Thomas Quinot <quinot@adacore.com>
1317
1318 * a-strhas.ads: Document risk of collision attack.
1319
1320 2012-01-30 Yannick Moy <moy@adacore.com>
1321
1322 * gnat_ugn.texi: Minor update wrt warning switches.
1323
1324 2012-01-30 Vincent Celier <celier@adacore.com>
1325
1326 * prj-nmsc.adb (Check_Interfaces): Report an error when a
1327 unit from Library_Interface is not a unit of the project.
1328
1329 2012-01-30 Vincent Pucci <pucci@adacore.com>
1330
1331 * sem_prag.adb (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Parent
1332 links fixed inside PPC pragmas.
1333 * sem_ch12.adb: Move call to Make_Aspect_For_PPC_In_Gen_Sub_Decl.
1334
1335 2012-01-30 Thomas Quinot <quinot@adacore.com>
1336
1337 * s-ransee.ads: Minor reformatting.
1338
1339 2012-01-30 Pascal Obry <obry@adacore.com>
1340
1341 * prj.ads, prj.adb (For_Each_Source): Add support for skipping
1342 sources coming from an encapsulated library.
1343
1344 2012-01-30 Ed Schonberg <schonberg@adacore.com>
1345
1346 * sem_ch3.adb (Process-Full_View): fix typo.
1347 * sem_ch13.adb (Aalyze_Aspect_Specifications): if predicates
1348 appear on a private type and the full view is available, ensure
1349 existence of freeze node for full view.
1350 (Build_Predicate_Function): Attach predicate function to both
1351 views of a private type.
1352
1353 2012-01-30 Vincent Celier <celier@adacore.com>
1354
1355 * prj-nmsc.adb (Check_Interfaces): Compute the Lib_Interface_ALIs
1356 for the project if either attribute Library_Interface or
1357 Interfaces is declared.
1358 (Check_Stand_Alone_Library): Use Lib_Interface_ALIs computed in
1359 Check_Interfaces.
1360
1361 2012-01-30 Pascal Obry <obry@adacore.com>
1362
1363 * prj-proc.adb (Recursive_Process): Set From_Encapsulated_Lib
1364 boolean value to true in the process list created by this routine.
1365 * prj.ads (Project_List_Element): New field From_Encapsulated_Lib.
1366 Continued work for KA06-021.
1367 * prj.adb (Compute_All_Imported_Projects): Set
1368 From_Encapsulated_Lib boolean flag.
1369
1370 2012-01-30 Vincent Pucci <pucci@adacore.com>
1371
1372 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Minor
1373 code clean up.
1374 * s-diflio.ads: Minor change.
1375
1376 2012-01-30 Javier Miranda <miranda@adacore.com>
1377
1378 * exp_ch9.adb (Build_Dispatching_Requeue): Add missing call
1379 to Get_Entry_Index. Required to generate code which provides
1380 the correct value of Entry_Index in the target entry.
1381
1382 2012-01-30 Nicolas Roche <roche@adacore.com>
1383
1384 * system-vxworks-ppc.ads: Add pragma Linker_Options -crtbe to
1385 fix issue with zcx on VxWorks5.
1386
1387 2012-01-30 Pascal Obry <obry@adacore.com>
1388
1389 * prj.ads, prj.adb (For_Every_Project_Imported): Remove
1390 In_Aggregate_Lib.
1391 (For_Every_Project_Imported_Context): New generic routine with
1392 a context parameter.
1393 * prj-nmsc.adb: Revert to use For_Every_Project_Imported Avoid
1394 distributed complexity.
1395 * prj-env.adb, prj-conf.adb, makeutl.adb, gnatcmd.adb: Ditto.
1396
1397 2012-01-30 Thomas Quinot <quinot@adacore.com>
1398
1399 * exp_aggr.adb (Expand_Record_Aggregate): After creating the
1400 _parent aggregate for an extension aggregate, check whether it
1401 requires delayed (top-down) expansion.
1402
1403 2012-01-30 Vincent Pucci <pucci@adacore.com>
1404
1405 * sem_dim.adb (Expand_Put_Call_With_Dimension_Symbol): Rewritten.
1406 * snames.ads-tmpl: Name_Item and Name_Symbols added.
1407 * s-diflio.adb, s-diflio.ads, s-diinio.adb, s-diinio.ads: Rename
1408 and change the position of parameter Symbols in every Put routine.
1409 * s-dimmks.ads: Convert long float type Mks_Type into long
1410 long float.
1411 * s-llflex.ads: Modifications in comments.
1412
1413 2012-01-30 Hristian Kirtchev <kirtchev@adacore.com>
1414
1415 * sem_ch12.adb (Earlier): Do not use the
1416 top level source locations of the two input nodes.
1417
1418 2012-01-30 Robert Dewar <dewar@adacore.com>
1419
1420 * einfo.ads, sem_prag.adb, sem_attr.adb, aspects.ads,
1421 sem_cat.adb, sem_aggr.adb, exp_aggr.adb: Minor reformatting.
1422
1423 2012-01-30 Robert Dewar <dewar@adacore.com>
1424
1425 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb: Minor reformatting.
1426
1427 2012-01-30 Olivier Hainque <hainque@adacore.com>
1428
1429 * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Add rule for r1 back +
1430 comments.
1431
1432 2012-01-30 Thomas Quinot <quinot@adacore.com>
1433
1434 * gnat_rm.texi, sem_dist.adb, sem_dist.ads, einfo.ads, sem_prag.adb,
1435 sem_ch12.adb, sem_attr.adb, aspects.adb, aspects.ads, par-prag.adb,
1436 sem_cat.adb, snames.ads-tmpl (Sem_Dist.Is_Valid_Remote_Object_Type):
1437 New subprogram (extracted from
1438 Sem_Cat.Validate_Remote_Access_Object_Type_Declaration).
1439 (Einfo.Is_Remote_Types): Now applies to generic types. Update
1440 documentation accordingly.
1441 (Sem_Ch12.Analyze_Associations): A RACW type is acceptable as
1442 actual for a formal type to which a pragma Remote_Access_Type
1443 applies.
1444 (Aspects, Par.Prag, Sem_Prag): Support for new pramga/aspect
1445 Remote_Access_Type.
1446 (Sem_Attr.Analyze_Attribute, case Stub_Type): Attribute can
1447 be applied to a generic type if pragma Remote_Access_Type
1448 applies, in which case the type of the attribute is
1449 System.Partition_Interface.RACW_Stub_Type.
1450
1451 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1452
1453 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set
1454 an alignment on fields of the RETURN type built for the CICO mechanism.
1455
1456 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1457
1458 * gcc-interface/trans.c (gnat_to_gnu): Avoid making a SAVE_EXPR for
1459 a call to a function that returns an unconstrained type with default
1460 discriminant. Similarly, avoid doing the conversion to the nominal
1461 result type in this case.
1462
1463 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1464
1465 * gcc-interface/ada-tree.h (DECL_ALIASED_P): New flag.
1466 * gcc-interface/decl.c (is_variable_size): Rename to...
1467 (type_has_variable_size): ...this.
1468 (adjust_packed): Adjust to above renaming.
1469 (gnat_to_gnu_field): Set DECL_ALIASED_P on the field.
1470 (field_is_artificial): New predicate.
1471 (field_is_aliased): Likewise.
1472 (field_has_self_size): Likewise.
1473 (field_has_variable_size): Likewise.
1474 (components_to_record): Record information for the final layout during
1475 the first pass on fields.
1476 If there is an aliased field placed after a field whose length depends
1477 on discriminants, put all the fields of the latter sort, last.
1478
1479 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1480
1481 * gcc-interface/gigi.h (get_minimal_subprog_decl): Declare.
1482 * gcc-interface/decl.c (get_minimal_subprog_decl): New function.
1483 * gcc-interface/trans.c (Attribute_to_gnu): Use it for the prefix of an
1484 Access-like attribute in a dispatch table if the subprogram is public.
1485
1486 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1487
1488 * gcc-interface/gigi.h (create_label_decl): Adjust.
1489 * gcc-interface/utils.c (create_label_decl): Add GNAT_NODE parameter
1490 and invoke gnat_pushdecl on it. Remove obsolete settings.
1491 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Label>: Adjust call to
1492 create_label_decl.
1493 * gcc-interface/trans.c (gnat_to_gnu) <N_Null): Likewise. Ignore the
1494 label for debugging purposes.
1495
1496 2012-01-27 Eric Botcazou <ebotcazou@adacore.com>
1497
1498 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: For an aliased
1499 object with an unconstrained nominal subtype and if optimization isn't
1500 enabled, create a special VAR_DECL for debugging purposes.
1501
1502 2012-01-23 Robert Dewar <dewar@adacore.com>
1503
1504 * sem_prag.ads, sem_prag.adb: Minor reformatting.
1505
1506 2012-01-23 Robert Dewar <dewar@adacore.com>
1507
1508 * sem_ch13.adb (Analyze_Aspect_Specifications): Check for
1509 language defined aspect applied to renaming or formal type
1510 declaration (not permitted)
1511
1512 2012-01-23 Matthew Heaney <heaney@adacore.com>
1513
1514 * a-cdlili.adb, a-cidlli.adb, a-cbdlli.adb (Vet): Replaced
1515 comment with pragma Assert.
1516
1517 2012-01-23 Vincent Pucci <pucci@adacore.com>
1518
1519 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Call
1520 to Make_Aspect_For_PPC_In_Gen_Sub_Decl added in ASIS mode.
1521 * sem_prag.adb, sem_prag.ads (Make_Aspect_For_PPC_In_Gen_Sub_Decl): New
1522 routine. In ASIS mode, convert any PPC pragmas into aspects in generic
1523 subprogram declaration in order to enable the analysis of PPC boolean
1524 expressions.
1525
1526 2012-01-23 Robert Dewar <dewar@adacore.com>
1527
1528 * sem_ch3.adb (Analyze_Object_Declaration): Properly
1529 handle Current_Value for volatile variables (also propagate
1530 Treat_As_Volatile from type to object).
1531
1532 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1533
1534 * sem_ch12.adb (Install_Body): Detect the case
1535 where the enclosing context is a package with a stub body that
1536 has already been replaced by the actual body. In such cases,
1537 the freeze node for the enclosing context must be inserted after
1538 the real body.
1539
1540 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1541
1542 * sem_prag.adb (Analyze_Pragma, case Debug): Freeze the called
1543 subprogram before expanding the pragma into an if-statement with
1544 a block, to ensure that when the subprogram is null its body is
1545 properly generated before expansion.
1546
1547 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1548
1549 * sem_ch12.adb (Analyze_Associations): Alphabetize local variables and
1550 constants. Rename Actual_Types to Actuals_To_Freeze. Rename Next_Formal
1551 to Saved_Formal.
1552 Freeze all eligible subprograms which appear as actuals in
1553 the instantiation.
1554 (Has_Fully_Defined_Profile): New routine.
1555 (Renames_Standard_Subprogram): New routine.
1556 (Earlier): Add local variable N. Comment update. Do not use source
1557 locations when trying to determine whether one node precedes another.
1558
1559 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1560
1561 * exp_ch4.adb (Expand_Concatenate): In the case
1562 where the result of a concatentation can be null, set the to
1563 result have both the low and high bounds of the right operand (not
1564 just the high bound, as was the case prior to this fix). Also,
1565 fix the saved high bound setting (Last_Opnd_High_Bound) in the
1566 empty string literal case (should have been low bound minus one,
1567 rather than plus one).
1568
1569 2012-01-23 Thomas Quinot <quinot@adacore.com>
1570
1571 * scos.ads, put_scos.adb, get_scos.adb (Get_SCOs, Put_SCOs): Do not
1572 omit statement SCOs for disabled pragmas.
1573
1574 2012-01-23 Matthew Heaney <heaney@adacore.com>
1575
1576 * a-cohase.ads, a-cihase.ads, a-cbhase.ads, a-coorse.ads,
1577 a-ciorse.ads, a-cborse.ads, a-cohama.ads, a-cihama.ads, a-cbhama.ads,
1578 a-coorma.ads, a-ciorma.ads, a-cborma.ads, a-cdlili.ads, a-cidlli.ads,
1579 a-cbdlli.ads, a-convec.ads, a-coinve.ads, a-cobove.ads (Cursor'Read,
1580 Cursor'Write): Declare in private part.
1581 (Reference_Type'Read, Reference_Type'Write): Ditto.
1582 (Constant_Reference_Type'Read, Constant_Reference_Type'Write): Ditto.
1583
1584 2012-01-23 Robert Dewar <dewar@adacore.com>
1585
1586 * a-catizo.ads, a-calend.adb, a-calend.ads, par-ch13.adb: Minor
1587 reformatting.
1588
1589 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1590
1591 * sem_ch6.adb (Analyze_Subprogram_Declaration): Do not set the
1592 Corresponding_Body on a defaulted null formal subprogram.
1593 * sem_ch12.adb (Check_Formal_Package_Instance): No check needed
1594 on a defaulted formal subprogram that is a null procedure.
1595
1596 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1597
1598 * exp_ch9.adb: Update the comments involving pragma Implemented.
1599 * sem_ch3.adb (Check_Pragma_Implemented (Entity_Id)): Add local
1600 constant Subp_Alias and local variable Impl_Subp. Properly
1601 handle aliases of synchronized wrappers. Code cleanup.
1602 (Check_Pragma_Implemented (Entity_Id; Entity_Id)): Add
1603 Name_Optional as part of the condition.
1604 * sem_prag.adb (Analyze_Pragma): Add "Optional" as one of the
1605 valid choices of implementation kind.
1606 (Check_Arg_Is_One_Of): New routine.
1607 * snames.ads-tmlp: Add Name_Optional.
1608
1609 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1610
1611 * par-ch13.adb: Better error recovery in illegal aspect
1612 specification.
1613
1614 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1615
1616 * a-calend.adb: Add with clause for Interfaces.C. Add constant
1617 Unix_Max.
1618 (Day_Of_Week): Call the internal UTC_Time_Offset.
1619 (Split): Call the internal UTC_Time_Offset.
1620 (Time_Of): Call the internal UTC_Time_Offset.
1621 (Time_Zone_Operations.UTC_Time_Offset): Call internal UTC_Time_Offset.
1622 (UTC_Time_Offset): New library-level routine.
1623 * a-calend.ads (UTC_Time_Offset): Remove parameter
1624 Is_Historic. Update related comment on usage.
1625 * a-catizo.adb (UTC_Time_Offset): Removed.
1626 (UTC_Time_Offset (Time)): Call Time_Zone_Operations.UTC_Time_Offset.
1627 * a-caltizo.ads (UTC_Time_Offset): Removed.
1628 (UTC_Time_Offset (Time)): Add back the default expression of parameter
1629 Date.
1630
1631 2012-01-23 Robert Dewar <dewar@adacore.com>
1632
1633 * sprint.ads, sprint.adb (Sprint_Node_List): Add New_Lines parameter
1634 (pg,po,ps): Make sure each entry starts on new line.
1635
1636 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1637
1638 * a-calend.ads, a-calend.adb: Define types int and int_Pointer. Update
1639 the parameter profile of procedure localtime_tzoff and its associated
1640 comment.
1641 (Day_Of_Week): Do not treat the input date as historical
1642 with respect to time zones.
1643 (Split): Do not treat the input
1644 date as historical with respect to time zones. (Time_Of): Do
1645 not treat the input constituents as forming a historical date
1646 with respect to time zones.
1647 (UTC_Time_Offset): Add new formal
1648 parameter Is_Historic. Add local variable Flag. Update the call
1649 to localtime_tzoff.
1650 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): New routine.
1651 (UTC_Time_Offset (Time)): Update the call to
1652 Time_Zone_Operations.UTC_Time_Offset.
1653 * sysdep.c (__gnat_localtime_tzoff): Update parameter
1654 profile. Split the processing of offsets on Windows into two - one
1655 part of historic time stamps and the other for the current time.
1656
1657 2012-01-23 Robert Dewar <dewar@adacore.com>
1658
1659 * a-calend.adb: Minor reformatting.
1660
1661 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1662
1663 * exp_ch9.adb, sem_ch9.adb: Handle array of access to synchronized
1664 interface in requeue statement.
1665
1666 2012-01-23 Cyrille Comar <comar@adacore.com>
1667
1668 * projects.texi: Remove references to main units and replace
1669 with references to main programs to be coherent with the
1670 documentation.
1671
1672 2012-01-23 Robert Dewar <dewar@adacore.com>
1673
1674 * s-utf_32.adb: Minor reformatting.
1675
1676 2012-01-23 Vincent Celier <celier@adacore.com>
1677
1678 * snames.ads-tmpl: Minor comment addition Indicate that
1679 Name_Library_Encapsulated_Options is only used in gprbuild.
1680
1681 2012-01-23 Robert Dewar <dewar@adacore.com>
1682
1683 * sem_ch10.adb (Analyze_Subunit): Properly save/restore cunit
1684 restrictions.
1685
1686 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1687
1688 * snames.ads-tmpl: Add Name_Synchronization.
1689 * aspects.ads, aspects.adb: Add Aspect_Synchronization to
1690 enumeration type and related maps.
1691 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle Aspect
1692 Synchronization, build corresponding pragma Implemented.
1693 * sem_util.adb (Implementation_Kind): Handle both explicit and
1694 implicit pragma_argument association to retrieve the given
1695 synchronization mode.
1696
1697 2012-01-23 Robert Dewar <dewar@adacore.com>
1698
1699 * sem_ch10.adb, errout.adb: Minor reformatting.
1700
1701 2012-01-23 Ed Schonberg <schonberg@adacore.com>
1702
1703 * sem_res.adb (Resolve_Actuals): An actual in a call to an
1704 Ada 2012 Reference function does not lead to a dangerous order
1705 dependence.
1706
1707 2012-01-23 Gary Dismukes <dismukes@adacore.com>
1708
1709 * exp_util.adb (Is_Iterated_Container): Test
1710 Is_Entity_Name when searching for calls to the default iterator,
1711 to avoid blowing up on indirect calls which have an explicit
1712 dereference as the call name.
1713
1714 2012-01-23 Thomas Quinot <quinot@adacore.com>
1715
1716 * errout.adb (Set_Msg_Node): For an N_Expanded_Name, output
1717 the complete expanded name, rather than just its Selector_Name.
1718
1719 2012-01-23 Thomas Quinot <quinot@adacore.com>
1720
1721 * a-textio.adb (Put): Rewrite one-parameter Character version to
1722 just call the two-parameter one with Current_Out.
1723
1724 2012-01-23 Hristian Kirtchev <kirtchev@adacore.com>
1725
1726 * freeze.adb (Check_Current_Instance): Issue an
1727 error when the prefix of 'Unchecked_Access or 'Access does not
1728 denote a legal aliased view of a type.
1729 (Freeze_Record_Type): Do not halt the processing of record components
1730 once the Has_Controlled_Component is set as this bypasses the remaining
1731 checks.
1732 (Is_Aliased_View_Of_Type): New routine.
1733
1734 2012-01-23 Thomas Quinot <quinot@adacore.com>
1735
1736 * errout.ads, freeze.adb: Minor reformatting.
1737
1738 2012-01-23 Thomas Quinot <quinot@adacore.com>
1739
1740 * sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
1741 messages.
1742
1743 2012-01-23 Olivier Hainque <hainque@adacore.com>
1744
1745 * adadecode.c (__gnat_decode): Deal with empty input early,
1746 preventing potential erroneous memory access later on.
1747
1748 2012-01-21 Eric Botcazou <ebotcazou@adacore.com>
1749
1750 PR ada/46192
1751 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: In the case of a
1752 renaming, preserve the volatileness through the indirection, if any.
1753
1754 2012-01-14 Andreas Schwab <schwab@linux-m68k.org>
1755
1756 * gcc-interface/Makefile.in (OSCONS_EXTRACT): Add
1757 $(GNATLIBCFLAGS).
1758
1759 2012-01-10 Pascal Obry <obry@adacore.com>
1760
1761 * prj-nmsc.adb (Check_Library_Attributes):
1762 Kill check for object/source directories for aggregate libraries.
1763
1764 2012-01-10 Matthew Heaney <heaney@adacore.com>
1765
1766 * a-cdlili.adb, a-cdlili.ads, a-cihama.adb, a-cihama.ads, a-coinve.adb,
1767 a-coinve.ads, a-ciorse.adb, a-ciorse.ads, a-coorma.adb, a-coorma.ads,
1768 a-cborma.adb, a-cborma.ads, a-cidlli.adb, a-cidlli.ads, a-cimutr.adb,
1769 a-cimutr.ads, a-cihase.adb, a-cihase.ads, a-cohama.adb, a-cohama.ads,
1770 a-coorse.adb, a-coorse.ads, a-cbhama.adb, a-cbhama.ads, a-cborse.adb,
1771 a-cborse.ads, a-comutr.adb, a-comutr.ads, a-ciorma.adb, a-cobove.adb,
1772 a-ciorma.ads, a-cobove.ads, a-convec.adb, a-convec.ads, a-cohase.adb,
1773 a-cohase.ads, a-cbdlli.adb, a-cbdlli.ads, a-cbmutr.adb, a-cbmutr.ads,
1774 a-cbhase.adb, a-cbhase.ads (Reference, Constant_Reference): Declare
1775 container parameter as aliased in/in out.
1776 Code clean ups.
1777
1778 2012-01-10 Bob Duff <duff@adacore.com>
1779
1780 * s-os_lib.ads: Improve comment.
1781
1782 2012-01-10 Geert Bosch <bosch@adacore.com>
1783
1784 * s-gearop.adb (Forward_Eliminate): Avoid improper aliasing
1785 for complex Scalar.
1786
1787 2012-01-10 Bob Duff <duff@adacore.com>
1788
1789 * sem_intr.adb (Check_Shift): Use RM_Size instead of Esize, when
1790 checking that the 'Size is correct. If the type is "mod 2**12",
1791 for example, it's illegal, but Esize is the 'Object_Size, which
1792 will be something like 16 or 32, so the error ('Size = 12) was
1793 not detected.
1794 * gnat_rm.texi: Improve documentation of shift
1795 and rotate intrinsics.
1796
1797 2012-01-10 Pascal Obry <obry@adacore.com>
1798
1799 * prj.adb (For_Every_Project_Imported): Fix
1800 implementation to make sure we return each project only once
1801 for aggragte libraries. It is fine to return a project twice for
1802 aggregate projects, this was the case as a Project_Id is different
1803 in each project tree. The new implementation use a table based on
1804 the project name to ensure proper detection of duplicate project
1805 in aggregate library. A new context is then created to continue
1806 retrurning duplicate project for aggregate libraries.
1807
1808 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1809
1810 * gcc-interface/trans.c (call_to_gnu): Create the temporary for the
1811 return value in the variable-sized return type case if the target is
1812 an array with fixed size. However, do not create it if this is the
1813 expression of an object declaration.
1814
1815 2012-01-09 Eric Botcazou <ebotcazou@adacore.com>
1816
1817 * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
1818
1819 2012-01-06 Robert Dewar <dewar@adacore.com>
1820
1821 * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads,
1822 s-utf_32.ads: Add pragma Pure
1823 * s-utf_32.adb: Suppress warnings on non-static constants (now
1824 that this is Pure).
1825
1826 2012-01-06 Bob Duff <duff@adacore.com>
1827
1828 * s-rpc.ads (Read, Write): Add overriding indicators.
1829
1830 2012-01-06 Robert Dewar <dewar@adacore.com>
1831
1832 * gnat_rm.texi: Add documentation for conventions
1833 Ada_Pass_By_Copy and Ada_Pass_By_Reference.
1834
1835 2012-01-06 Gary Dismukes <dismukes@adacore.com>
1836
1837 * a-tienio.adb (Put): Add exception message on
1838 raise statements. Remove unneeded blocks and object declarations.
1839
1840 2012-01-06 Robert Dewar <dewar@adacore.com>
1841
1842 * sem_prag.adb: Minor reformatting.
1843
1844 2012-01-06 Ed Schonberg <schonberg@adacore.com>
1845
1846 * sinfo.ads, sinfo.adb (Has_Prefixed_Call): New flag to indicate
1847 that a selected component within a generic unit has been resolved
1848 as a prefixed call with local references.
1849 * sem_ch3.adb (Is_Visible_Component): In an instance body a selected
1850 component is always visible.
1851 * sem_ch4.adb (Analyze_Selected_Component): If the node is a
1852 prefixed call in an instance, do not look for visible components
1853 of the type.
1854 * sem_ch12.adb (Reset_Entity): If a selected component has resolved
1855 to a prefixed call, mark the node accordingly when prefix and
1856 selector are local references.
1857
1858 2012-01-02 Eric Botcazou <ebotcazou@adacore.com>
1859
1860 * gnatvsn.ads (Current_Year): Bump to 2012.
1861 \f
1862 Copyright (C) 2012 Free Software Foundation, Inc.
1863
1864 Copying and distribution of this file, with or without modification,
1865 are permitted in any medium without royalty provided the copyright
1866 notice and this notice are preserved.