]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
[multiple changes]
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
6320f5e1
AC
12011-08-02 Robert Dewar <dewar@adacore.com>
2
3 * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads,
4 sem_res.adb, sem_ch6.adb: Minor reformatting.
5
62011-08-02 Jerome Guitton <guitton@adacore.com>
7
8 * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code.
9
2fe829ae
ES
102011-08-02 Ed Schonberg <schonberg@adacore.com>
11
12 * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do
13 not set Overridden_Operation if subprogram is an initialization
14 procedure.
15
e24329cd
YM
162011-08-02 Yannick Moy <moy@adacore.com>
17
18 * par-ch6.adb: Correct obsolete name in comments
19 * restrict.adb, restrict.ads (Check_Formal_Restriction): new function
20 which takes two message arguments (existing function takes one), with
21 second message used for continuation.
22 * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject
23 block statements that originate from a source block statement, not
24 generated block statements
25 * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for
26 symmetry with procedure case
27 * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new
28 function to issue an error in formal mode if a package specification
29 contains more than one tagged type or type extension.
30 * sem_res.adb (Resolve_Actuals): in formal mode, check that actual
31 parameters matching formals of tagged types are objects (or ancestor
32 type conversions of objects), not general expressions. Issue an error
33 on view conversions that are not involving ancestor conversion of an
34 extended type.
35 (Resolve_Type_Conversion): in formal mode, issue an error on the
36 operand of an ancestor type conversion which is not an object
37 * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the
38 procedure so that it works also for actuals of function calls
39 (Is_Actual_Tagged_Parameter): new function which determines if its
40 argument is an actual parameter of a formal of tagged type in a
41 subprogram call
42 (Is_SPARK_Object_Reference): new function which determines if the tree
43 referenced by its argument represents an object in SPARK
44
176dadf6
AC
452011-08-02 Robert Dewar <dewar@adacore.com>
46
47 * sem_ch3.adb: Minor reformatting
48 Minor comment addition
49 Minor error msg text change
50
512011-08-02 Javier Miranda <miranda@adacore.com>
52
53 * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New
54 function. Used to be more precise when we generate a variable plus one
55 assignment to remove side effects in the evaluation of the Bound
56 expressions.
57 (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes
58 of the bound expression to force its re-analysis and thus expand the
59 associated transient scope (if required). Code cleanup replacing the
60 previous code that declared the constant entity by an invocation to
61 routine Force_Evaluation which centralizes this work in the frontend.
62
d8b962d8
AC
632011-08-02 Robert Dewar <dewar@adacore.com>
64
65 * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table
66 (Base_Type): Now uses improved Is_Base_Type function
67 * einfo.ads (Base_Type): Inline this function
68
692011-08-02 Robert Dewar <dewar@adacore.com>
70
71 * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion
72 (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas
73
742011-08-02 Arnaud Charlet <charlet@adacore.com>
75
76 * gcc-interface/Make-lang.in: Update dependencies.
77 * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks
78 targets.
79
802011-08-02 Yannick Moy <moy@adacore.com>
81
82 * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on
83 non-simple expression used in delta constraint
84 (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on
85 index constraint which is not a subtype mark
86 * par.adb: With and use Restrict
87 * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal
88 mode on component type which is not a subtype mark and default
89 expression on component
90 (Analyze_Subtype_Declaration): issue an error in formal mode on subtype
91 of string which does not have a lower index bound equal to 1
92 (Array_Type_Declaration): issue an error in formal mode on index or
93 component type which is not a subtype mark, and on aliased keyword on
94 component
95 (Derived_Type_Declaration): issue an error in formal mode on interface,
96 limited or abstract type
97 (Record_Type_Declaration): issue an error in formal mode on interface
98 (Record_Type_Definition): issue an error in formal mode on tagged types
99 and type extensions not declared in the specification of a library unit
100 package; on null non-tagged record; on variant part
101
1022011-08-02 Vincent Celier <celier@adacore.com>
103
104 * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir
105 not declared for qualified library project when Library_Name is not
106 declared, but Library_Dir is.
107
1082011-08-02 Robert Dewar <dewar@adacore.com>
109
110 * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated
111 pragmas (affects aspects [Component_]Default_Value
112 (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use
113 component type for the resolution
114
f96b2d85
AC
1152011-08-02 Eric Botcazou <ebotcazou@adacore.com>
116
117 * einfo.adb (Base_Type): Tune implementation for speed.
118
1192011-08-02 Robert Dewar <dewar@adacore.com>
120
121 * freeze.adb: Minor reformatting.
122
8b3c6430
AC
1232011-08-02 Thomas Quinot <quinot@adacore.com>
124
125 * scos.ads: Update comments.
126
1272011-08-02 Ed Schonberg <schonberg@adacore.com>
128
129 * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the
130 base type, because the parent may be a subtype of a private type whose
131 convention is established in a private part.
132
1332011-08-02 Hristian Kirtchev <kirtchev@adacore.com>
134
135 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return
136 statement in a block when the expansion of the return expression has
137 created a finalization chain.
138 * freeze.adb (Freeze_Expression): Alphabetize all choices associated
139 with the parent node.
140 Add N_Extended_Return_Statement to handle the case where a transient
141 object declaration appears in the Return_Object_Declarations list of
142 an extended return statement.
143
1442011-08-02 Matthew Gingell <gingell@adacore.com>
145
146 * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly
147 unused parameter 'name'.
148
1492011-08-02 Ed Schonberg <schonberg@adacore.com>
150
151 * sem_elim.adb (Set_Eliminated): If the overridden operation is an
152 inherited operation, check whether its alias, which is the source
153 operastion that it renames, has been marked eliminated.
154
cae81f17
JM
1552011-08-02 Javier Miranda <miranda@adacore.com>
156
157 * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an
158 in-mode parameter whose type is an access type since it can be used to
159 modify its designated object. Enforce code that handles as safe an
160 access type that is not access-to-constant but it is the result of a
161 previous removal of side-effects.
162 (Remove_Side_Effects): Minor code reorganization of cases which require
163 no action. Done to incorporate documentation on new cases uncovered
164 working in this ticket: no action needed if this routine was invoked
165 too early and the nodes are not yet decorated.
166 * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls
167 to routine Remove_Side_Effects by calls to Force_Evaluation since they
168 were issued with actuals that are implicitly provided by
169 Force_Evaluation.
170
218e6dee
RD
1712011-08-02 Robert Dewar <dewar@adacore.com>
172
173 * sem_ch3.adb, sem_res.adb: Minor reformatting.
174
7a489a2b
AC
1752011-08-02 Yannick Moy <moy@adacore.com>
176
177 * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure
178 to issue an error in formal mode on attribute not supported in this mode
179 (Analyze_Attribute): issue errors on standard attributes not supported
180 in formal mode.
181 * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of
182 comment, and issue error in formal mode on modulus which is not a power
183 of 2.
184 (Process_Range_Expr_In_Decl): issue error in formal mode on non-static
185 range.
186 * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in
187 subtype mark.
188 * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary
189 operator on modular type (except 'not').
190
1912011-08-02 Robert Dewar <dewar@adacore.com>
192
193 * gnat_rm.texi: Minor reformatting.
194
cb7fa356
AC
1952011-08-02 Arnaud Charlet <charlet@adacore.com>
196
197 * s-osinte-linux.ads: Minor comment update and reformatting.
198 * i-cexten.ads: Make this unit pure, as for its parent.
199 Will allow its usage in more contexts if needed.
200
2012011-08-02 Robert Dewar <dewar@adacore.com>
202
203 * s-utf_32.ads: Minor comment fix.
204
2052011-08-02 Ed Schonberg <schonberg@adacore.com>
206
207 * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive
208 operation of a tagged synchronized type, handle the case where the
209 controlling argument is overloaded.
210
2112011-08-02 Yannick Moy <moy@adacore.com>
212
213 * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl:
214 Replace pragma SPARK_95 with pragma Restrictions (SPARK)
215 * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set
216 SPARK mode and formal verification mode on processing SPARK restriction
217 * s-rident.ads (Restriction_Id): add SPARK restriction in those not
218 requiring consistency checking.
219
5cc9353d
RD
2202011-08-02 Robert Dewar <dewar@adacore.com>
221
222 * sem_res.adb: Minor reformatting.
223
e51537ff
RD
2242011-08-02 Robert Dewar <dewar@adacore.com>
225
226 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
227 a-cforse.ads: Remove unneeded with of Ada.Containers
228 Remove commented out pragma Inline's
229 Move specifications of new subprograms to the actual specs
230
83fa09c5
AC
2312011-08-02 Yannick Moy <moy@adacore.com>
232
233 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
234 a-cforse.ads: Update comments.
235
2362011-08-02 Ed Schonberg <schonberg@adacore.com>
237
238 * sem_attr.adb: add attribute name when 'Result has the wrong prefix.
239
d11cfaf8
RD
2402011-08-02 Robert Dewar <dewar@adacore.com>
241
242 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
243 a-cforse.ads, a-cofove.ads: Minor reformatting.
244
300b98bb
AC
2452011-08-02 Claire Dross <dross@adacore.com>
246
247 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
248 a-cofove.ads: Add comments.
249
2502011-08-02 Yannick Moy <moy@adacore.com>
251
252 * gnat_rm.texi: Document formal containers.
253
2542011-08-02 Emmanuel Briot <briot@adacore.com>
255
256 * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there
257 are empty sections.
258
19fb051c
AC
2592011-08-02 Robert Dewar <dewar@adacore.com>
260
261 * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor
262 reformatting.
263
2642011-08-02 Robert Dewar <dewar@adacore.com>
265
266 * aspects.adb: New aspects Default_Value and Default_Component_Value
267 New format of Aspect_Names table checks for omitted entries
268 * aspects.ads: Remove mention of Aspect_Cancel and add documentation on
269 handling of boolean aspects for derived types.
270 New aspects Default_Value and Default_Component_Value
271 New format of Aspect_Names table checks for omitted entries
272 * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag
273 (Has_Default_Value): New flag
274 (Has_Default_Component_Value): New flag
275 (Has_Default_Value): New flag
276 * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names
277 table.
278 * par-prag.adb: New pragmas Default_Value and Default_Component_Value
279 * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects
280 Default_Value and Default_Component_Value
281 * sem_prag.adb: New pragmas Default_Value and Default_Component_Value
282 New aspects Default_Value and Default_Component_Value
283 * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value
284 * sprint.adb: Print N_Aspect_Specification node when called from gdb
285
2862011-08-02 Vincent Celier <celier@adacore.com>
287
288 * prj-nmsc.adb (Check_Library_Attributes): For virtual library project,
289 inherit library kind.
290
2912011-08-02 Ed Schonberg <schonberg@adacore.com>
292
293 * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds.
294 Minor reformatting.
295
2962011-08-02 Robert Dewar <dewar@adacore.com>
297
298 * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM
299
5f7747af
AC
3002011-08-02 Yannick Moy <moy@adacore.com>
301
302 * sem_aggr.adb (Resolve_Aggregate): Fix thinko.
303
3042011-08-02 Robert Dewar <dewar@adacore.com>
305
306 * impunit.adb: Add comment.
307
a5fe697b
AC
3082011-08-02 Yannick Moy <moy@adacore.com>
309
310 * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks
311 qualification of aggregates in formal mode
312 (Is_Top_Level_Aggregate): returns True for an aggregate not contained in
313 another aggregate
314 (Resolve_Aggregate): complete the test that an aggregate is adequately
315 qualified in formal mode
316
3172011-08-02 Pascal Obry <obry@adacore.com>
318
319 * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting.
320 * mlib-prj.adb: Supress warning when compiling binder generated file.
321 (Build_Library): Supress all warnings when compiling the binder
322 generated file.
323
bd65a2d7 3242011-08-02 Yannick Moy <moy@adacore.com>
d4487611 325
bd65a2d7
AC
326 * errout.adb, errout.ads (Check_Formal_Restriction): move procedure
327 from here...
328 * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here
329 * sem_aggr.adb, sem_ch5.adb, sem_util.adb:
330 Add with/use clauses to make Check_Formal_Restriction visible
331
3322011-08-02 Ed Schonberg <schonberg@adacore.com>
333
334 * sem_ch12.adb (Check_Generic_Actuals): handle properly actual
335 in-parameters when type of the generic formal is private in the generic
336 spec and non-private in the body.
337
3382011-08-02 Claire Dross <dross@adacore.com>
339
340 * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb,
341 a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads,
342 a-cofove.adb, a-cofove.ads: New files implementing formal containers.
343 * impunit.adb, Makefile.rtl: Take new files into account.
d4487611
AC
344
3452011-08-02 Robert Dewar <dewar@adacore.com>
346
347 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb,
348 sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting.
349
bd434b3f
YM
3502011-08-02 Yannick Moy <moy@adacore.com>
351
352 * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in
353 formal mode
354 * sem_util.adb (Matching_Static_Array_Bounds): proper detection of
355 matching static array bounds, taking into account the special case of
356 string literals
357 * sem_ch3.adb: Typo in comment.
358
fe5d3068
YM
3592011-08-02 Yannick Moy <moy@adacore.com>
360
361 * errout.adb, errout.ads (Check_Formal_Restriction): new procedure
362 which issues an error in formal mode if its argument node is originally
363 from source
364 * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type
365 has a discriminant specification so that it does not include the case
366 of derived types
367 (Derived_Type_Declaration): move here the test that a derived type has a
368 discriminant specification
369 * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the
370 first element of a component association before accessing its choices
371 (presence of component association is not enough)
372 * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram
373 declaration is a library item before accessing the next element in a
374 list, as library items are not member of lists
375 * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
376 sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use
377 Check_Formal_Restriction whenever possible.
378
b60a3f26
AC
3792011-08-02 Ed Schonberg <schonberg@adacore.com>
380
381 * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype
382 reference when needed.
383
3842011-08-02 Bob Duff <duff@adacore.com>
385
386 * gnat_ugn.texi: Fix typo.
387
3882011-08-02 Vincent Celier <celier@adacore.com>
389
390 * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of
391 archive file name. Do not use the full path name of archives for Open
392 VMS.
393
eaba57fb
RD
3942011-08-02 Robert Dewar <dewar@adacore.com>
395
396 * sem_ch12.adb, sem_ch11.adb: New calling sequence for
397 Analyze_Aspect_Specifications
398 * sem_ch13.adb
399 (Analyze_Aspect_Specifications): New handling for boolean aspects
400 * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence
401 * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling
402 sequence for Analyze_Aspect_Specifications
403 * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely
404 * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used
405
4062011-08-02 Robert Dewar <dewar@adacore.com>
407
408 * freeze.adb (Freeze_Entity): Remove handling of delayed boolean
409 aspects, since these no longer exist.
410
4112011-08-02 Robert Dewar <dewar@adacore.com>
412
413 * par-ch13.adb (Aspect_Specifications_Present): Always return false on
414 semicolon, do not try to see if there are aspects following it.
415 * par-ch3.adb (P_Declarative_Items): Better message for unexpected
416 aspect spec.
417
8830d1d2
AC
4182011-08-02 Robert Dewar <dewar@adacore.com>
419
420 * sem_ch8.adb, aspects.ads: Minor reformatting.
421
4222011-08-02 Eric Botcazou <ebotcazou@adacore.com>
423
424 * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline.
425 * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure
426 extracted from...
427 (Analyze_Aspect_Specifications): ...here. Call above procedure.
428
7ff2d234
AC
4292011-08-02 Yannick Moy <moy@adacore.com>
430
431 * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal
432 mode on subprogram declaration outside of package specification, unless
433 it is followed by a pragma Import
434 * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration,
435 Access_Type_Declaration): issue error in formal mode on access type
436 (Analyze_Incomplete_Type_Decl): issue error in formal mode on
437 incomplete type
438 (Analyze_Object_Declaration): issue error in formal mode on object
439 declaration which does not respect SPARK restrictions
440 (Analyze_Subtype_Declaration): issue error in formal mode on subtype
441 declaration which does not respect SPARK restrictions
442 (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue
443 error in formal mode on digits or delta constraint
444 (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on
445 decimal fixed point type
446 (Derived_Type_Declaration): issue error in formal mode on derived type
447 other than type extensions of tagged record types
448 * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant
449 with check on access definition
450 * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal
451 mode on protected definition.
452 (Analyze_Task_Definition): issue error in formal mode on task definition
453
4542011-08-02 Robert Dewar <dewar@adacore.com>
455
456 * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting.
457
806f6d37
AC
4582011-08-02 Javier Miranda <miranda@adacore.com>
459
460 * sem_ch6.adb (Can_Override_Operator): New function.
461 (Verify_Overriding_Indicator): Add missing code to check overriding
462 indicator in operators. Fixes regression.
463 (Check_Overriding_Indicator): Minor reformating after replacing the
464 code that evaluates if the subprogram can override an operator by
465 invocations to the above new function.
466 * einfo.adb
467 (Write_Field26_Name): Add missing code to ensure that, following
468 the documentation in einfo.ads, this field is not shown as attribute
469 "Static_Initialization" on non-dispatching functions.
470
4712011-08-02 Jose Ruiz <ruiz@adacore.com>
472
473 * sem_res.adb (Resolve_Call): A call to
474 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
475 No_Relative_Delay (AI-0211) only when it sets a relative timing event,
476 i.e., when the second parameter is of type Time_Span.
477
4782011-08-02 Vincent Celier <celier@adacore.com>
479
480 * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link
481 with an archive instead of -L<library dir> -l<library name>.
482
4832011-08-02 Ed Schonberg <schonberg@adacore.com>
484
485 * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed,
486 mark the base types In_Use in addition to making the operations
487 use_visible.
488
4892011-08-02 Ed Falis <falis@adacore.com>
490
491 * init.c: add and setup __gnat_signal_mask for the exception signals
492 * s-inmaop-vxworks.adb: new file.
493 * s-intman-vxworks.adb: remove unnecessary initializations and
494 simplify remaining
495 * s-intman-vxworks.ads: remove unnecessary variable
496 * s-taprop-vxworks.adb: simplify signal initialization
497
780d052e
RD
4982011-08-02 Robert Dewar <dewar@adacore.com>
499
500 * sem_ch8.adb: Minor code reorganization, comment updates.
501
5022011-08-02 Robert Dewar <dewar@adacore.com>
503
504 * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util
505 * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved
506 here from Sem_Res.
507 (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression
508 (Matching_Static_Array_Bounds): Moved here from Sem_Res
509
29efbb8c
ES
5102011-08-02 Ed Schonberg <schonberg@adacore.com>
511
512 * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5.
513 * par_ch8.adb (P_Use_Type): initialize Used_Operations for node.
514 * sinfo.ads, sinfo.adb (Used_Operations): new attribute of
515 use_type_clauses, to handle more efficiently use_type and use_all_type
516 constructs.
517 * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the
518 Ada2012 Use_All_Type clause.
519 (Use_Class_Wide_Operations): new procedure.
520
b0186f71
AC
5212011-08-02 Robert Dewar <dewar@adacore.com>
522
523 * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb,
524 sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized
525 expression to expression function.
526
5272011-08-02 Ed Schonberg <schonberg@adacore.com>
528
529 * sem_ch4.adb: transform simple Ada2012 membership into equality only
530 if types are compatible.
531
5322011-08-02 Yannick Moy <moy@adacore.com>
533
534 * sem_res.adb (Matching_Static_Array_Bounds): new function which
535 returns True if its argument array types have same dimension and same
536 static bounds at each index.
537 (Resolve_Actuals): issue an error in formal mode on actuals passed as
538 OUT or IN OUT paramaters which are not view conversions in SPARK.
539 (Resolve_Arithmetic_Op): issue an error in formal mode on
540 multiplication or division with operands of fixed point types which are
541 not qualified or explicitly converted.
542 (Resolve_Comparison_Op): issue an error in formal mode on comparisons of
543 Boolean or array type (except String) operands.
544 (Resolve_Equality_Op): issue an error in formal mode on equality
545 operators for array types other than String with non-matching static
546 bounds.
547 (Resolve_Logical_Op): issue an error in formal mode on logical operators
548 for array types with non-matching static bounds. Factorize the code in
549 Matching_Static_Array_Bounds.
550 (Resolve_Qualified_Expression): issue an error in formal mode on
551 qualified expressions for array types with non-matching static bounds.
552 (Resolve_Type_Conversion): issue an error in formal mode on type
553 conversion for array types with non-matching static bounds
554
767bb4e8
AC
5552011-08-02 Robert Dewar <dewar@adacore.com>
556
557 * par-ch10.adb: Minor code reorganization (use Nkind_In).
558
5592011-08-02 Ed Schonberg <schonberg@adacore.com>
560
561 * par-ch9.adb: save location of entry for proper error message.
562
4ac2477e
JM
5632011-08-02 Javier Miranda <miranda@adacore.com>
564
565 * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal
566 (Use_Full_View) which permits this routine to climb through the
567 ancestors using the full-view of private parents.
568 * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set
569 Use_Full_View to true in calls to Is_Ancestor.
570 * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to
571 true in call to Is_Ancestor.
572 * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set
573 Use_Full_View to true in call to Is_Ancestor.
574 * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in
575 call to Is_Ancestor.
576 * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set
577 Use_Full_View to true in calls to Is_Ancestor.
578 * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT,
579 Make_Select_Specific_Data_Table, Register_Primitive,
580 Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor.
581 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View
582 to true in call to Is_Ancestor.
583 * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set
584 Use_Full_View to true in calls to Is_Ancestor.
585 * exp_cg.adb
586 (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor.
587 (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor.
588
9f90d123
AC
5892011-08-02 Robert Dewar <dewar@adacore.com>
590
591 * gnat_rm.texi: Minor reformatting.
592 * sem_prag.adb: Minor reformatting.
593
5942011-08-02 Tristan Gingold <gingold@adacore.com>
595
596 * vms_data.ads: Add VMS qualifier for -gnateP.
597
5982011-08-02 Robert Dewar <dewar@adacore.com>
599
600 * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty
601 * par-ch7.adb (P_Package): Proper placement of aspects for package
602 decl/instantiation.
603 * par-endh.adb (Check_End): Ad Is_Sloc parameter
604 (End_Statements): Add Is_Sloc parameterr
605 * par.adb (P_Aspect_Specification): New meaning of Decl = Empty
606 (Check_End): Ad Is_Sloc parameter
607 (End_Statements): Add Is_Sloc parameterr
608
6092011-08-02 Vincent Celier <celier@adacore.com>
610
611 * ug_words: Add VMS qualifier equivalent to -gnateP:
612 /SYMBOL_PREPROCESSING.
613
6142011-08-02 Jose Ruiz <ruiz@adacore.com>
615
616 * gnat-style.texi: For hexadecimal numeric literals the typical
617 grouping of digits is 4 to represent 2 bytes.
618 A procedure spec which is split into several lines is indented two
619 characters.
620
6212011-08-02 Yannick Moy <moy@adacore.com>
622
623 * exp_aggr.adb (Is_Others_Aggregate): move function to other unit.
624 * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here
625 (Resolve_Aggregate): issue errors in formal modes when aggregate is not
626 properly qualified
627 (Resolve_Array_Aggregate): issue errors in formal modes on non-static
628 choice in array aggregate
629 (Resolve_Extension_Aggregate): issue errors in formal modes on subtype
630 mark as ancestor
631 (Resolve_Record_Aggregate): issue errors in formal modes on mixed
632 positional and named aggregate for record, or others in record
633 aggregate, or multiple choice in record aggregate
634 * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when
635 array operands to logical operations AND, OR and XOR do not have the
636 same static lower and higher bounds
637 * sem_ch5.adb, sinfo.ads: Correct typos in comments
638
2933b16c
RD
6392011-08-01 Robert Dewar <dewar@adacore.com>
640
641 * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement):
642 Replaces Last_Source_Node_In_Sequence.
643 * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K
644 * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores
645 parens and blank in string (this was inconsistently implemented).
646 * errout.ads
647 (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and
648 blank in string (this was inconsistently implemented).
649 * gnat1drv.adb
650 (Set_Global_Switches): Set formal mode switches appropriately
651 * opt.ads, opt.adb: Formal mode is now global switches, more consistent
652 * par-prag.adb
653 (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and
654 call Set_Error_Msg_Lang to set "spark" as language name.
655 * par.adb: Remove unnecessary call to set formal language for errout
656 * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches
657 appropriately and call Set_Error_Msg_Lang to set "spark" as language
658 name.
659 * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and
660 calls to it, moved after resolution so that types are known
661 * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if
662 result of concatenation is not of type String
663 (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of
664 concatenation is not properly restricted
665 * gnat_rm.texi: Add doc on pragma Spark_95.
666 * gcc-interface/Makefile.in: Remove obsolete target pairs for
667 Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads.
668 * gcc-interface/Make-lang.in: Update dependencies.
669
05dbd302
AC
6702011-08-01 Javier Miranda <miranda@adacore.com>
671
672 * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of
673 condition that detects if the overridden operation must replace an
674 existing entity.
675
6762011-08-01 Javier Miranda <miranda@adacore.com>
677
678 * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded
679 code declarations inserted by Insert_Actions in each alternative of the
680 N_Case_Expression node.
681
6822011-08-01 Robert Dewar <dewar@adacore.com>
683
684 * sem_ch6.adb: Minor code reorganization.
685 * sem_util.adb: Minor reformatting.
686
af9e051f
PO
6872011-08-01 Pascal Obry <obry@adacore.com>
688
689 * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
690 * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
691
1d801f21
AC
6922011-08-01 Yannick Moy <moy@adacore.com>
693
694 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
695 literal or operator symbol which is prefixed
696 * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal
697 mode on access attributes.
698 * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check
699 that concatenation operands are properly restricted in formal mode
700 (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure
701 Analyze_Concatenation_Operand. Issue an error in formal mode if the
702 result of the concatenation has a type different from String.
703 (Analyze_Conditional_Expression, Analyze_Explicit_Dereference,
704 Analyze_Quantified_Expression, Analyze_Slice,
705 Analyze_Null): issue an error in formal mode on unsupported constructs
706 * sem_ch5.adb
707 (Analyze_Block_Statement): only issue error on source block statement
708 * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new
709 function which returns the last node in a list of nodes for which
710 Comes_From_Source returns True, if any
711 * sem_ch6.adb (Check_Missing_Return): minor refactoring to use
712 Last_Source_Node_In_Sequence
713 * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
714 Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal
715 mode on unsupported constructs
716 * sem_ch9.adb Do not return after issuing error in formal mode, as the
717 rest of the actions may be needed later on since the error is marked as
718 not serious.
719 * sinfo.ads: Typos in comments.
720
7212011-08-01 Pascal Obry <obry@adacore.com>
722
723 * projects.texi: Minor editing.
724
53beff22
YM
7252011-08-01 Yannick Moy <moy@adacore.com>
726
727 * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for
728 insertion character ~~
729 * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures
730 (Set_Error_Msg_Lang): new procedure which fixes the language for use
731 with insertion character ~~
732 (Set_Msg_Text): treat insertion character ~~
733 * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb,
734 sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to
735 Formal_Error_Msg_... procedures by equivalent Error_Msg_...
736 procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make
737 errors related to the formal language restriction not serious
738 (insertion character |).
739 * par.adb (Par): set formal language for error messages if needed
740 * sem_ch6.adb (Check_Missing_Return): take into account possible
741 generated statements at the end of the function
742 * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and
743 enumeration value to define a new pragma SPARK_95
744 * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default,
745 SPARK_Version): new type and variables to store the SPARK version
746 (none by default).
747 (SPARK_Mode): return True when SPARK_Version is set
748 * par-prag.adb: Correct indentation
749 (Prag): take Pragma_SPARK_95 into account
750 * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95
751 into account.
752
8d606a78
RD
7532011-08-01 Robert Dewar <dewar@adacore.com>
754
755 * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb,
756 sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb,
757 sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting
758
1982d5a8
PO
7592011-08-01 Pascal Obry <obry@adacore.com>
760
761 * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass
762 Target_Name to Get_Path call.
763 (Parse_Single_Project): Likewise.
764 (Post_Parse_Context_Clause): Likewise.
765 * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter.
766 Call Initialise_Project_Path with the proper Target_Name.
767 (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat
768 search path.
769 (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path
770 with the proper Target_Name.
771 * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to
772 Part.Parse routine.
773 (Parse_Project_And_Apply_Config): Likewise.
774 * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine.
775 This is fine as this part of the code is supporting only native
776 compilation.
777 * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This
778 is fine as this part of the code is supporting only native compilation.
779
0d53d36b
AC
7802011-08-01 Yannick Moy <moy@adacore.com>
781
782 * sem_util.adb (Enter_Name): issue error in formal mode on declaration
783 of homonym, unless the homonym is one of the cases allowed in SPARK
784 * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for
785 package declaration occurring after a body.
786
7872011-08-01 Robert Dewar <dewar@adacore.com>
788
789 * checks.adb, exp_ch4.adb: Minor reformatting.
790
7912011-08-01 Javier Miranda <miranda@adacore.com>
792
793 * einfo.ads (Access_Disp_Table): Fix documentation.
794 (Dispatch_Table_Wrappers): Fix documentation.
795
7962011-08-01 Pascal Obry <obry@adacore.com>
797
798 * prj-env.adb, prj-env.ads: Minor reformatting.
799
8ed68165
AC
8002011-08-01 Yannick Moy <moy@adacore.com>
801
802 * sem_util.ads, sem_util.adb, par.adb, par_util.adb
803 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
804 procedures out of these packages.
805 * errout.ads, errout.adb
806 (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move
807 procedures in of this package
808 (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE
809 * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode
810 on misplaced later vs initial declarations, like in Ada 83
811 * sem_attr.adb (Processing for Analyze_Attribute): issue error in
812 formal mode on attribute of private type whose full type declaration
813 is not visible
814 * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a
815 package declaration inside a package specification
816 (Analyze_Full_Type_Declaration): issue error in formal mode on
817 controlled type or discriminant type
818 * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on
819 user-defined operator means that it should come from the source
820 (New_Overloaded_Entity): issue error in formal mode on overloaded
821 entity.
822 * sem_ch6.ads, sem_ch13.ads: typos in comments.
823
8242011-08-01 Thomas Quinot <quinot@adacore.com>
825
826 * atree.adb: Minor reformatting.
827 * checks.adb: Minor reformatting.
828
4230bdb7
AC
8292011-08-01 Vincent Celier <celier@adacore.com>
830
831 * s-parame-vms-ia64.ads: Fix typo in comment
832 Minor reformatting
833 * s-parame-vms-restrict.ads: Removed, unused.
834
8352011-08-01 Javier Miranda <miranda@adacore.com>
836
837 * exp_ch3.adb
838 (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound.
839 * sem_ch3.adb
840 (Constrain_Index): Remove side effects in the evaluation of the bounds.
841 * sem_ch3.ads, sem_ch3.adb
842 (Is_Constant_Bound): New extended version of the subprogram that was
843 previously located inside function Exp_Ch3.Is_Variable_Size_Array.
844 Moved here since it is shared by routines of sem_ch3 and exp_ch3.
845 * sem_aux.ads (Constant_Value): Fix typo in comment.
846 * checks.adb (Generate_Index_Checks): New implementation which, for
847 array objects with constant bounds, generates the runtime check
848 referencing the bounds of the array type. For other cases this routine
849 provides its previous behavior obtaining such values from the array
850 object.
851 * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its
852 parent type.
853 * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since
854 we cannot have semantic interpretations of the new node.
855
2010d078
AC
8562011-08-01 Ed Schonberg <schonberg@adacore.com>
857
858 * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified
859 expressions.
860
8612011-08-01 Arnaud Charlet <charlet@adacore.com>
862
863 * sem_ch8.adb: Minor code editing.
864 * s-vxwext.adb: Remove trailing space.
865 * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for
866 consistency with other files.
867
8682011-08-01 Thomas Quinot <quinot@adacore.com>
869
870 * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting.
871
8722011-08-01 Ed Schonberg <schonberg@adacore.com>
873
874 * par-ch10.adb: reject parameterized expressions as compilation unit.
875 * sem_ch4.adb: handle properly conditional expression with overloaded
876 then_clause and no else_clause.
877
8782011-08-01 Tristan Gingold <gingold@adacore.com>
879
880 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address
881 like done by System.Aux_DEC.
882 * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table.
883
daec8eeb
YM
8842011-08-01 Yannick Moy <moy@adacore.com>
885
886 * par-endh.adb (Check_End): issue a syntax error in SPARK mode for
887 missing label at end of declaration (subprogram or package)
888 * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing
889 of positional and named parameter association
890 * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on
891 Error_Msg_SP which adds a prefix to the error message giving the name
892 of the formal language analyzed
893 * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for
894 access result type in subprogram, unconstrained array as result type,.
895 (Analyze_Subprogram_Declaration): issue an error in formal mode for null
896 procedure
897 * sem_ch8.adb: Code clean up.
898
38171f43
AC
8992011-08-01 Javier Miranda <miranda@adacore.com>
900
901 * sem_ch7.adb (Uninstall_Declarations): Remove useless code.
902 * einfo.ads (Access_Disp_Table): Fix documentation.
903 (Dispatch_Table_Wrappers): Fix documentation.
904 * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers,
905 Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions
906 to enforce the documentation of this attribute.
907 (Set_Is_Interface): Cleanup the assertion.
908 * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate
909 the Underlying_Type entity before reading attribute Access_Disp_Table.
910 * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion):
911 Locate the Underlying_Type before reading attribute Access_Disp_Table.
912 * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate
913 the Underlying_Type entity before reading attribute Access_Disp_Table.
914 * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration):
915 Locate the Underlying_Type entity before reading attribute
916 Access_Disp_Table.
917
9182011-08-01 Ed Schonberg <schonberg@adacore.com>
919
920 * s-poosiz.ads: Additional overriding indicators.
921
9222011-08-01 Yannick Moy <moy@adacore.com>
923
924 * sem_ch5.adb (Analyze_Exit_Statement): add return after error in
925 formal mode.
926 (Analyze_Iteration_Scheme): issue error in formal mode when loop
927 parameter specification does not include a subtype mark.
928 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in
929 formal mode on abstract subprogram.
930 (Analyze_Subprogram_Specification): issue error in formal mode on
931 user-defined operator.
932 (Process_Formals): issue error in formal mode on access parameter and
933 default expression.
934 * sem_ch9.adb (Analyze_Abort_Statement,
935 Analyze_Accept_Statement, Analyze_Asynchronous_Select,
936 Analyze_Conditional_Entry_Call, Analyze_Delay_Relative,
937 Analyze_Delay_Until, Analyze_Entry_Call_Alternative,
938 Analyze_Requeue, Analyze_Selective_Accept,
939 Analyze_Timed_Entry_Call): issue error in formal mode on such constructs
940 * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error):
941 issue error in formal mode on user-defined raise statement.
942
1f250383
AC
9432011-08-01 Thomas Quinot <quinot@adacore.com>
944
945 * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a
946 declaration being hidden when overriding an implicit inherited
947 subprogram.
948 * par-ch10.adb (P_Compilation_Unit): In syntax check only mode
949 (-gnats), do not complain about a source file that contains only a
950 pragma No_Body.
951
9522011-08-01 Ed Schonberg <schonberg@adacore.com>
953
954 * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop
955 variable if already set.
956
607d0635
AC
9572011-08-01 Arnaud Charlet <charlet@adacore.com>
958
959 * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads,
960 g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads,
961 s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads,
962 g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb,
963 g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads,
964 g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads,
965 g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads,
966 g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb,
967 g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb,
968 g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads,
969 g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads,
970 s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb,
971 g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads,
972 s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads,
973 g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb,
974 g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb,
975 g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb,
976 g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb,
977 g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb,
978 g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb,
979 s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads,
980 s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads,
981 a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb,
982 s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads,
983 s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb,
984 g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads,
985 g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb,
986 g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb,
987 g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads,
988 g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads,
989 g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads,
990 s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads,
991 s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb,
992 g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb,
993 g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads,
994 s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb,
995 s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads,
996 g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads,
997 g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb,
998 g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads,
999 s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads,
1000 g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads,
1001 g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads,
1002 g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb,
1003 s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb,
1004 g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb,
1005 g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb,
1006 g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb,
1007 s-osinte-mingw.ads: Update to GPLv3 run-time license.
1008 Use GNAT instead of GNARL.
1009
10102011-08-01 Bob Duff <duff@adacore.com>
1011
1012 * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
1013 a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads,
1014 a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor
1015 reformatting.
1016
10172011-08-01 Yannick Moy <moy@adacore.com>
1018
1019 * debug.adb (d.D) reverve flag for the SPARK mode
1020 (d.E) reverve flag for SPARK generation mode
1021 (d.F) reverve flag for Why generation mode
1022 * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode,
1023 ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New
1024 functions which return True when the corresponding modes are set
1025 (Formal_Language): return "spark" or "alfa" when in formal verification
1026 mode.
1027 * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on
1028 Error_Msg to prefix the error message with a tag giving the formal
1029 language
1030 (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error
1031 message with a tag giving the formal language
1032 * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on
1033 block statement
1034 (Analyze_Case_Statement): issue error in formal mode on case statement
1035 with a single "others" case alternative
1036 (Analyze_Exit_Statement): issue errors in formal mode on exit
1037 statements which do not respect SPARK restrictions
1038 (Analyze_Goto_Statement): issue error in formal mode on goto statement
1039 (Check_Unreachable_Code): always issue an error (not a warning) in
1040 formal mode on unreachable code (concerns both code after an infinite
1041 loop and after an unconditional jump, both not allowed in SPARK)
1042 * sem_ch6.adb (Analyze_Return_Statement): add call to
1043 Set_Return_Present for a procedure containing a return statement
1044 (already done for functions in Analyze_Function_Return)
1045 (Analyze_Function_Return): issue error in formal mode on extended
1046 return or if return is not last statement in function
1047 (Check_Missing_Return): issue error in formal mode if function does
1048 not end with return or if procedure contains a return
1049 * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new
1050 function to detect if there is an inner scope of its parameter S which
1051 is a loop.
1052
10532011-08-01 Thomas Quinot <quinot@adacore.com>
1054
1055 * sem_ch6.ads: Minor reformatting.
1056
d8b3ccb9
AC
10572011-08-01 Javier Miranda <miranda@adacore.com>
1058
1059 * sem_util.adb (Abstract_Interface_List): Complete condition when
1060 processing private type declarations to avoid reading unavailable
1061 attribute.
1062 (Is_Synchronized_Tagged_Type): Complete condition when processing
1063 private extension declaration nodes to avoid reading unavailable
1064 attribute.
1065
10662011-08-01 Thomas Quinot <quinot@adacore.com>
1067
1068 * sem_ch3.adb: Minor reformatting.
1069
10702011-08-01 Thomas Quinot <quinot@adacore.com>
1071
1072 * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads,
1073 i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads,
1074 s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads,
1075 s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages
1076 for VMS, instead parametrize the common implementation with
1077 System.Parameters declarations.
1078
0bb9276c
AC
10792011-08-01 Eric Botcazou <ebotcazou@adacore.com>
1080
1081 * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing.
1082
10832011-08-01 Tristan Gingold <gingold@adacore.com>
1084
1085 * seh_init.c: Fix SEH handler installation on win64.
1086
10872011-08-01 Ed Schonberg <schonberg@adacore.com>
1088
1089 * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent
1090 double analysis of an anonymous access to subprogram, because it can
1091 lead to improper sharing of profiles and a back-end crash.
1092
6a2e4f0b
AC
10932011-08-01 Robert Dewar <dewar@adacore.com>
1094
1095 * make.adb, sem_ch4.adb: Minor reformatting.
1096 * gcc-interface/Make-lang.in: Update dependencies.
1097 * sem_util.adb, exp_ch5.adb: Minor reformatting.
1098
10992011-08-01 Arnaud Charlet <charlet@adacore.com>
1100
1101 * gnat_rm.texi: Fix definition of Long_Integer.
1102
11032011-08-01 Ed Schonberg <schonberg@adacore.com>
1104
1105 * exp_aggr.adb: check limit size of static aggregate unconditionally,
1106 to prevent storage exhaustion.
1107 * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being
1108 finalized is a function body, insert the cleanup code before the final
1109 return statement, to prevent spurious warnings.
1110 * s-pooglo.ads: add overriding indicator.
1111
4561baf7
ES
11122011-08-01 Ed Schonberg <schonberg@adacore.com>
1113
1114 * sem_ch4.adb (Operator_Check): improve error message when both a
1115 with_clause and a use_clause are needed to make operator usage legal.
1116 * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to
1117 determine whether a compilation unit is visible within an other,
1118 either through a with_clause in the current unit, or a with_clause in
1119 its library unit or one one of its parents.
1120
383e179e
AC
11212011-08-01 Ed Schonberg <schonberg@adacore.com>
1122
1123 * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator
1124 over an arbitrary expression of an array or container type.
1125 * lib-xref.adb: clarify comment.
1126
11272011-08-01 Bob Duff <duff@adacore.com>
1128
1129 * einfo.ads: Minor reformatting.
1130 * debug.adb: Minor comment improvement.
1131
11322011-08-01 Javier Miranda <miranda@adacore.com>
1133
1134 * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not
1135 consider hidden subprograms as valid candidates.
1136
11372011-08-01 Arnaud Charlet <charlet@adacore.com>
1138
1139 * make.adb (Compile): Strip -mxxx switches in CodePeer mode.
1140
11412011-08-01 Vasiliy Fofanov <fofanov@adacore.com>
1142
1143 * gnat_ugn.texi: Fix typo.
1144
61c161b2
AC
11452011-08-01 Robert Dewar <dewar@adacore.com>
1146
1147 * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb,
1148 lib-xref.adb: Minor reformatting
1149
11502011-08-01 Gary Dismukes <dismukes@adacore.com>
1151
1152 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of
1153 when to generate a call to Move_Final_List.
1154 (Has_Controlled_Parts): Remove this function.
1155
84df40f7
AC
11562011-08-01 Geert Bosch <bosch@adacore.com>
1157
1158 * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra
1159 "," in choice list.
1160
11612011-08-01 Thomas Quinot <quinot@adacore.com>
1162
1163 * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for
1164 explicit raise of a predefined exception as Comes_From_Source if the
1165 original N_Raise_Statement comes from source.
1166
11672011-08-01 Robert Dewar <dewar@adacore.com>
1168
1169 * sinfo.ads: Add comment.
1170 * sem_ch6.adb: Minor reformatting.
1171
11722011-08-01 Robert Dewar <dewar@adacore.com>
1173
1174 * freeze.adb (Freeze_Entity): Refine check for bad component size
1175 clause to avoid rejecting confirming clause when atomic/aliased present.
1176
11772011-08-01 Ed Schonberg <schonberg@adacore.com>
1178
1179 * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to
1180 better determine whether an entity reference is a write.
1181 * sem_util.adb (Is_LHS): refine predicate to handle assignment to a
1182 subcomponent.
1183 * lib-xref.adb (Output_References): Do no suppress a read reference at
1184 the same location as an immediately preceeding modify-reference, to
1185 handle properly in-out actuals.
1186
11872011-08-01 Tristan Gingold <gingold@adacore.com>
1188
1189 * env.c (__gnat_setenv) [VMS]: Refine previous change.
1190
11912011-08-01 Quentin Ochem <ochem@adacore.com>
1192
1193 * i-cstrin.adb (New_String): Changed implementation, now uses only the
1194 heap to compute the result.
1195
c7f0d2c0
AC
11962011-08-01 Robert Dewar <dewar@adacore.com>
1197
1198 * atree.ads: Minor reformatting.
1199
12002011-08-01 Emmanuel Briot <briot@adacore.com>
1201
1202 * g-expect.adb (Get_Command_Output): Fix memory leak.
1203
12042011-08-01 Geert Bosch <bosch@adacore.com>
1205
1206 * cstand.adb (P_Float_Type): New procedure to print the definition of
1207 predefined fpt types.
1208 (P_Mixed_Name): New procedure to print a name using mixed case
1209 (Print_Standard): Use P_Float_Type for printing floating point types
1210 * einfo.adb (Machine_Emax_Value): Add preliminary support for quad
1211 precision IEEE float.
1212
12132011-08-01 Thomas Quinot <quinot@adacore.com>
1214
1215 * sem_ch3.adb: Minor reformatting.
1216
12172011-08-01 Ed Schonberg <schonberg@adacore.com>
1218
1219 * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is
1220 the completion of a generic function, insert the new body rather than
1221 rewriting the original.
1222
12232011-08-01 Yannick Moy <moy@adacore.com>
1224
1225 * sinfo.ads, errout.ads: Typos in comments.
1226
1c54829e
AC
12272011-08-01 Robert Dewar <dewar@adacore.com>
1228
1229 * par-endh.adb: Minor reformatting.
1230
12312011-08-01 Robert Dewar <dewar@adacore.com>
1232
1233 * aspects.ads, aspects.adb: Add aspects for library unit pragmas
1234 (Pre_Post_Aspects): New subtype.
1235 * par-ch12.adb (P_Generic): New syntax for aspects in packages
1236 * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter
1237 * par-ch7.adb (P_Package): Remove Decl parameter
1238 (P_Package): Handle new syntax for aspects (before IS)
1239 * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle
1240 new aspect syntax
1241 (P_Task_Definition): Remove Decl parameter, handle new aspect syntax
1242 * par.adb (P_Aspect_Specifications): Add Semicolon parameter
1243 (P_Package): Remove Decl parameter
1244 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit
1245 aspects
1246 * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect
1247 specs
1248 * sem_util.ads, sem_util.adb (Static_Boolean): New function
1249 * sinfo.ads: Document new syntax for aspects in packages etc.
1250 * sprint.adb: Handle new syntax of aspects before IS in package
1251
12522011-08-01 Thomas Quinot <quinot@adacore.com>
1253
1254 * atree.ads: Minor reformatting.
1255 * sem_prag.adb: Minor reformatting.
1256
12572011-08-01 Robert Dewar <dewar@adacore.com>
1258
1259 * exp_util.adb (Insert_Actions): Fix error in handling Actions for
1260 case expr alternative.
1261
12622011-08-01 Ed Schonberg <schonberg@adacore.com>
1263
1264 * sem_ch12.adb: Fix typo.
1265
9eea4346
GB
12662011-08-01 Geert Bosch <bosch@adacore.com>
1267
1268 * sem_prag.adb (Check_No_Link_Name): New procedure.
1269 (Process_Import_Or_Interface): Use Check_No_Link_Name.
1270 * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float)
1271 instead of Standard_Long_Long_Float_Size global. Preparation for
1272 eventual removal of per type constants.
1273 * exp_util.ads (Get_Stream_Size): New function returning the stream
1274 size value of subtype E.
1275 * exp_util.adb (Get_Stream_Size): Implement new function.
1276 * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size
1277 function.
1278 * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size
1279 * einfo.adb:
1280 (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats
1281
3d6c3bd7
GB
12822011-08-01 Geert Bosch <bosch@adacore.com>
1283
1284 * cstand.adb: Fix comments.
1285 * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit
1286 count of arguments.
1287
e7d897b8
AC
12882011-08-01 Robert Dewar <dewar@adacore.com>
1289
1290 * exp_ch4.adb, sem_cat.adb: Minor reformatting.
1291
12922011-08-01 Geert Bosch <bosch@adacore.com>
1293
1294 * atree.ads: Fix comment.
1295
c228a069
AC
12962011-08-01 Robert Dewar <dewar@adacore.com>
1297
1298 * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec.
1299 * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name.
1300 * par.adb: Add with for Namet.Sp.
1301 * par-tchk.adb: Minor reformatting.
1302
13032011-08-01 Vincent Celier <celier@adacore.com>
1304
1305 * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb
1306 (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name
1307 of the init procedure of a SAL.
1308 * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name):
1309 New procedure.
1310
13112011-08-01 Thomas Quinot <quinot@adacore.com>
1312
1313 * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor
1314 reformatting.
1315
13162011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1317
1318 * adaint.c (__gnat_file_time_name_attr): Get rid of warning.
1319
13202011-08-01 Thomas Quinot <quinot@adacore.com>
1321
1322 * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function
1323 conformant with its spec (return True only for types that have
1324 an overriding Initialize primitive operation that prevents them from
1325 having preelaborable initialization).
1326 * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable
1327 initialization for controlled types in Ada 2005 or later mode.
1328
857ade1b
RD
13292011-08-01 Robert Dewar <dewar@adacore.com>
1330
1331 * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition,
1332 Postcondition.
1333 (Same_Aspect): New function.
1334 * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect
1335 Type_Invariant, Precondition, Postcondition.
1336 * snames.ads-tmpl: Add Name_Type_Invariant.
1337
bd949ee2
RD
13382011-08-01 Robert Dewar <dewar@adacore.com>
1339
1340 * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point
1341 here.
1342 (Freeze_All_Ent): Fix error in handling inherited aspects.
1343 * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is
1344 already analyzed, but don't skip entire processing of a declaration,
1345 that's wrong in some cases of declarations being rewritten.
1346 (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects.
1347 Don't delay for integer, string literals
1348 Treat predicates in usual manner for delay, remove special case code,
1349 not needed.
1350 (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point
1351 (Build_Predicate_Function): Update saved expression in aspect
1352 (Build_Invariant_Procedure): Update saved expression in aspect
1353 * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization
1354 of replacement of discriminant references if the reference is simple.
1355
f1c952af
RD
13562011-08-01 Robert Dewar <dewar@adacore.com>
1357
1358 * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate.
1359 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for
1360 Static_Predicate and Dynamic_Predicate.
1361 (Build_Predicate_Function): Add processing for Static_Predicate
1362 and Dynamic_Predicate.
1363 * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag
1364 (From_Static_Predicate): New flag
1365 * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate
1366
13672011-08-01 Robert Dewar <dewar@adacore.com>
1368
1369 * usage.adb: Documentation cleanup for Ada version modes in usage.
1370 * expander.adb: Minor reformatting.
1371
47e11d08
AC
13722011-08-01 Robert Dewar <dewar@adacore.com>
1373
1374 * atree.ads: Minor comment fix.
1375 * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads,
1376 a-witeio.ads, sem_prag.adb: Minor reformatting.
1377
13782011-08-01 Doug Rupp <rupp@adacore.com>
1379
1380 * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure
1381 pointers. Use descrip.h header file for convenience. Add some
1382 comments.
1383
13842011-08-01 Robert Dewar <dewar@adacore.com>
1385
1386 * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point
1387 (Freeze_All): Call Check_Aspect_At_End_Of_Declarations
1388 * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point):
1389 New procedure.
1390 (Check_Aspect_At_End_Of_Declarations): New procedure
1391 (Analye_Aspect_Specification): Minor changes for above procedures
1392 * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect
1393 specification node as well.
1394
13952011-08-01 Pascal Obry <obry@adacore.com>
1396
1397 * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special
1398 Windows files. Use GetFilesAttributes() in this case to check for file
1399 existence instead of returning with an error code.
1400
a3a16b21
VC
14012011-08-01 Vincent Celier <celier@adacore.com>
1402
1403 * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when
1404 High is above Source length.
1405
ff58cc69
RD
14062011-08-01 Robert Dewar <dewar@adacore.com>
1407
1408 * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment.
1409
6bb88533
AC
14102011-08-01 Robert Dewar <dewar@adacore.com>
1411
1412 * aspects.ads (Boolean_Aspects): New subtype.
1413 * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects
1414 for derived types in cases where the parent type and derived type have
1415 aspects.
1416 * freeze.adb (Freeze_Entity): Fix problems in handling derived type
1417 with aspects when parent type also has aspects.
1418 (Freeze_Entity): Deal with delay of boolean aspects (must evaluate
1419 boolean expression at this point).
1420 * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in
1421 accordance with final decision on the Ada 2012 feature.
1422 * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag.
1423
14242011-08-01 Matthew Heaney <heaney@adacore.com>
1425
1426 * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector.
1427
060a3f28
AC
14282011-08-01 Pascal Obry <obry@adacore.com>
1429
1430 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb:
1431 Fix Replace_Slice when High is above current string size.
1432 (Replace_Slice): Fix DL computation when High is above current
1433 string length.
1434
14352011-08-01 Gary Dismukes <dismukes@adacore.com>
1436
1437 * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired.
1438
e7f567a3
AC
14392011-08-01 Matthew Heaney <heaney@adacore.com>
1440
1441 * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child
1442 of node.
1443
14442011-08-01 Pascal Obry <obry@adacore.com>
1445
1446 * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor
1447 reformatting.
1448
1a265e78
AC
14492011-08-01 Ed Schonberg <schonberg@adacore.com>
1450
1451 * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named
1452 access to protected subprograms in generic bodies.
1453 * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a
1454 protected type, indicate that the convention of the subprogram is
1455 Convention_Protected, because it may be used in subsequent declarations
1456 within the protected declaration.
1457
14582011-08-01 Vincent Celier <celier@adacore.com>
1459
1460 * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init"
1461 and "final" procedures when the name of the library is "ada", to avoid
1462 duplicate symbols "adainit" and "adafinal" in executables.
1463
67e28ef8
ES
14642011-08-01 Ed Schonberg <schonberg@adacore.com>
1465
1466 * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a
1467 quantified expression that appears within a postcondition and uses the
1468 Ada2012 'Result attribute.
1469
6da2ca7d
RO
14702011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1471
1472 * init.c (__gnat_error_handler): Cast reason to int.
1473 (__gnat_install_handler): Explain sa_sigaction use.
1474
7d5997c6
EB
14752011-07-24 Eric Botcazou <ebotcazou@adacore.com>
1476
1477 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the
1478 subprogram has copy-in copy-out parameters, try to promote the mode of
1479 the return type if it is passed in registers.
1480
4b4cfdd5
EB
14812011-07-24 Eric Botcazou <ebotcazou@adacore.com>
1482
1483 * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
1484 left operand as addressable.
1485
f3d34576
EB
14862011-07-24 Eric Botcazou <ebotcazou@adacore.com>
1487
1488 * gcc-interface/gigi.h (build_function_stub): Remove.
1489 (build_return_expr): Likewise.
1490 (convert_vms_descriptor): Declare.
1491 * gcc-interface/utils.c (convert_vms_descriptor): Make global.
1492 (build_function_stub): Move to...
1493 * gcc-interface/utils2.c (build_return_expr): Move to...
1494 * gcc-interface/trans.c (build_function_stub): ...here.
1495 (build_return_expr): ...here.
1496 (Subprogram_Body_to_gnu): Add local variable for language_function.
1497 Disconnect the parameter attributes cache, if any, once done with it.
1498 Call end_subprog_body only after setting the end_locus.
1499 Build the stub associated with the function, if any, at the very end.
1500 (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local
1501 variables and streamline control flow.
1502
0a6ecc08
AC
15032011-07-23 Arnaud Charlet <charlet@adacore.com>
1504
1505 PR ada/49819
1506 * gcc-interface/Makefile.in (powerpc-linux): Remove reference to
1507 g-trasym-dwarf.adb.
1508
5b6d595b
RO
15092011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1510
1511 PR bootstrap/49794
1512 * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler):
1513 Assign to act.sa_sigaction.
1514 * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast
1515 current->return_address to char * before arithmetic.
1516
94017021
RO
15172011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1518
1519 * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation.
1520 Correct argument types.
1521 Extract code from reason.
1522 (__gnat_install_handler): Assign to act.sa_sigaction.
1523
52fd02bb
EB
15242011-07-21 Eric Botcazou <ebotcazou@adacore.com>
1525
1526 * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
1527 (GNAT1_OBJS): ...here.
1528
f39a9ca2
EB
15292011-07-15 Eric Botcazou <ebotcazou@adacore.com>
1530
1531 PR ada/48711
1532 * g-socthi-mingw.adb (Fill): Fix formatting.
1533
9e36aa23
EB
1534 * gcc-interface/gigi.h: Move around comment.
1535
e3aca522
JDA
15362011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1537
1538 PR ada/46350
1539 * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast.
1540
696b1960
FW
15412011-07-14 Florian Weimer <fw@deneb.enyo.de>
1542
1543 PR ada/48711
1544 * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL.
1545
f542c405
EB
15462011-07-13 Eric Botcazou <ebotcazou@adacore.com>
1547
1548 * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit
1549 range comparison if Pmode is SImode.
1550
9e9bd455
LG
15512011-07-12 Laurent GUERBY <laurent@guerby.net>
1552 Eric Botcazou <ebotcazou@adacore.com>
1553
1554 * adadecode.c: Wrap up in extern "C" block.
1555 * adadecode.h: Likewise.
1556 * adaint.c: Likewise. Remove 'const' keyword.
1557 * adaint.h: Likewise.
1558 * argv.c: Likewise.
1559 * atree.h: Likewise.
1560 * cio.c: Likewise.
1561 * cstreams.c: Likewise.
1562 * env.c: Likewise.
1563 * exit.c: Likewise.
1564 * fe.h: Likewise.
1565 * final.c: Likewise.
1566 * init.c: Likewise.
1567 * initialize.c: Likewise.
1568 * link.c: Likewise.
1569 * namet.h: Likewise.
1570 * nlists.h: Likewise.
1571 * raise.c: Likewise.
1572 * raise.h: Likewise.
1573 * repinfo.h: Likewise.
1574 * seh_init.c: Likewise.
1575 * targext.c: Likewise.
1576 * tracebak.c: Likewise.
1577 * uintp.h: Likewise.
1578 * urealp.h: Likewise.
1579 * xeinfo.adb: Wrap up generated C code in extern "C" block.
1580 * xsinfo.adb: Likewise.
1581 * xsnamest.adb: Likewise.
1582 * gcc-interface/gadaint.h: Wrap up in extern "C" block.
1583 * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
1584 * gcc-interface/misc.c: Likewise.
1585 * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
1586 (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and
1587 ada/targext.o here...
1588 (GNAT_ADA_OBJS): ...and not here.
1589 (GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
1590 (GNATBIND_OBJS): Reorder.
1591
7644b3c7
RH
15922011-07-07 Richard Henderson <rth@redhat.com>
1593
1594 * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
1595 dwarf2out_frame_init.
1596
8384ac41
EB
15972011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1598
1599 * gcc-interface/misc.c (gnat_init): Tweak previous change.
1600
fbdd5d87
RO
16012011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1602
1603 PR target/39150
1604 * gcc-interface/Makefile.in: Handle x86_64-solaris2.
1605
1a072294
RG
16062011-07-06 Richard Guenther <rguenther@suse.de>
1607
8384ac41
EB
1608 * gcc-interface/misc.c (gnat_init): Merge calls to
1609 build_common_tree_nodes and build_common_tree_nodes_2.
1a072294
RG
1610 Re-initialize boolean_false_node.
1611
bc712852
EB
16122011-07-02 Eric Botcazou <ebotcazou@adacore.com>
1613 Olivier Hainque <hainque@adacore.com>
1614 Nicolas Setton <setton@adacore.com>
1615
1616 * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on
1617 the type according to the ARTIFICIAL_P parameter.
1618 (create_type_decl): Likewise.
1619 (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1.
1620
2eb22389
EB
16212011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1622
1623 * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command.
1624 (gnatbind): Likewise.
1625
4bdaaf2f
RO
16262011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1627
1628 * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL).
1629
c020c92b
EB
16302011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1631
1632 * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE
1633 local variable throughout. Remove useless call to Base_Type.
1634 (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout.
1635 Take it also into account for the volatileness of the field. Set the
1636 TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings.
1637
96769d32
EB
16382011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1639
1640 * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP
1641 on a dereference built for a by-ref object if it has an address clause.
1642
7e4680c1
EB
16432011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1644
1645 * einfo.ads (Address_Taken): Document use for the second argument of
1646 Asm_Input and Asm_Output attributes.
1647 * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second
1648 argument is an entity name, then set Address_Taken on it.
1649 <Attribute_Asm_Output>: Likewise.
1650 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the
1651 Attr_Asm_Input and Attr_Asm_Output attributes explicitly.
1652 (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in
1653 memory and is a CONST_DECL, retrieve its corresponding VAR_DECL.
1654
16552011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
1656
1657 PR middle-end/46500
1658 * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args.
1659
677f3fa8
JM
16602011-06-14 Joseph Myers <joseph@codesourcery.com>
1661
1662 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
1663 (ada/utils.o): Update dependencies.
1664 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
1665 ../../../libcpp/libcpp.a.
1666 * gcc-interface/utils.c: Include common/common-target.h.
1667 (process_attributes): Use targetm_common.have_named_sections.
1668
009db074
RG
16692011-06-07 Richard Guenther <rguenther@suse.de>
1670
0bad0e23
EB
1671 * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call
1672 set_sizetype.
009db074 1673
3bfc61cf
EB
16742011-06-06 Eric Botcazou <ebotcazou@adacore.com>
1675
0bad0e23 1676 * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the
3bfc61cf
EB
1677 TREE_THIS_NOTRAP flag.
1678
5c4a1c7b
EB
16792011-06-06 Eric Botcazou <ebotcazou@adacore.com>
1680
1681 * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
1682 Fix thinko.
1683
e9f57686
EB
16842011-06-06 Eric Botcazou <ebotcazou@adacore.com>
1685
1686 * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
1687 constants whose full view has discriminants specially.
1688
10e4d056
EB
16892011-06-06 Eric Botcazou <ebotcazou@adacore.com>
1690
1691 * gcc-interface/utils.c: Include diagnostic.h.
1692 (gnat_write_global_declarations): Output debug information for all
1693 global type declarations before finalizing the compilation unit.
1694 * gcc-interface/Make-lang.in (ada/utils.o): Add dependency.
1695
0957c029
JJ
16962011-05-25 Jakub Jelinek <jakub@redhat.com>
1697
1698 * gcc-interface/utils.c (def_fn_type): Remove extra va_end.
1699
52d0a7ac
KT
17002011-05-25 Kai Tietz <ktietz@redhat.com>
1701
1702 * adaint.c (__gnat_to_canonical_file_list_next): Use array
1703 initialization instead of const/none-const pointer assignment.
1704
1ed1641d
JM
17052011-05-24 Joseph Myers <joseph@codesourcery.com>
1706
1707 * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include
1708 $(EXTRA_GNAT1_OBJS).
1709 (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS).
1710 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove.
1711 (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a.
1712 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use
1713 libcommon-target.a instead of prefix.o.
1714
9fe72ebd
JM
17152011-05-21 Joseph Myers <joseph@codesourcery.com>
1716
1717 PR ada/49097
0bad0e23 1718 * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS).
9fe72ebd 1719
2691e6d7
JM
17202011-05-20 Joseph Myers <joseph@codesourcery.com>
1721
0bad0e23
EB
1722 * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o.
1723 * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a
1724 instead of version.o.
2691e6d7 1725
bf6490b5
KT
17262011-05-18 Kai Tietz <ktietz@redhat.com>
1727
1728 * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use
1729 boolean_false_node instead of integer_zero_node.
1730 (convert_with_check): Likewise.
1731 * gcc-interface/decl.c (choices_to_gnu): Likewise.
1732
7bf9a5ac
EB
17332011-05-12 Eric Botcazou <ebotcazou@adacore.com>
1734
1735 * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the
1736 type of the parameter is an unconstrained array, convert the actual to
1737 the type of the formal in the In Out and Out cases as well.
1738
e5b00edf
NF
17392011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1740
1741 * gcc-interface/utils.c (def_fn_type): Don't call build_function_type;
1742 call build_function_type_array or build_varargs_function_type_array
1743 instead.
1744 (create_subprog_type): Don't call build_function_type; call
1745 build_function_type_vec instead.
1746
51545682
NF
17472011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1748
1749 * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL.
1750 (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL.
1751 (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL.
1752
c99c0026
EB
17532011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1754
f620bd21
EB
1755 * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces.
1756
c99c0026
EB
1757 * gcc-interface/gigi.h (global_bindings_p): Adjust prototype.
1758 * gcc-interface/utils.c (global_bindings_p): Return bool and simplify.
1759
3d528853
NF
17602011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1761
c99c0026 1762 * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label.
3d528853 1763
d7d058c5
NF
17642011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1765
1766 * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators
1767 instead of accessing TYPE_ARG_TYPES directly.
1768 * gcc-interface/utils.c (handle_nonnull_attribute): Likewise.
1769
805e60a0
EB
17702011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1771
1772 PR ada/48844
1773 * gcc-interface/gigi.h (get_variant_part): Declare.
1774 * gcc-interface/decl.c (get_variant_part): Make global.
1775 * gcc-interface/utils2.c (find_common_type): Do not return T1 if the
1776 types have the same constant size, are record types and T1 has a
1777 variant part while T2 doesn't.
1778
907a08d9
EB
17792011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1780
1781 * gcc-interface/utils.c (begin_subprog_body): Do not call
1782 get_pending_sizes.
1783 (end_subprog_body): Likewise.
1784
d35936ab
RG
17852011-05-04 Richard Guenther <rguenther@suse.de>
1786
1787 * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to
1788 int_const_binop.
1789 (pos_to_constructor): Likewise.
1790
c1fd8753
NF
17912011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1792 Eric Botcazou <ebotcazou@adacore.com>
1793
1794 * gcc-interface/trans.c (gigi): Call build_function_type_list instead
1795 of build_function_type. Adjust calls to...
1796 (build_raise_check): ...this. Do not take a void_tree parameter.
1797 Call build_function_type_list instead of build_function_type.
1798 Fix head comment and swap couple of conditional blocks.
1799
4fb87d2b
EB
18002011-04-30 Eric Botcazou <ebotcazou@adacore.com>
1801
1802 * gnatvsn.ads (Library_Version): Bump to 4.7.
1803 (Current_Year): Bump to 2011.
1804
fa5e5a76
MM
18052011-04-29 Michael Matz <matz@suse.de>
1806
1807 * gcc-interface/misc.c (gnat_handle_option): Set
1808 warn_maybe_uninitialized.
1809
8d6a2f69
GP
18102011-04-23 Gerald Pfeifer <gerald@pfeifer.com>
1811
1812 * gnat_ugn.texi (Complexity Metrics Control): Update link to
1813 the Watson/McCabe paper.
1814
770937fd
JM
18152011-04-23 Jim Meyering <meyering@redhat.com>
1816
1817 * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/
1818
eb601ae1
EB
18192011-04-22 Eric Botcazou <ebotcazou@adacore.com>
1820
1821 * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE
1822 onto the new type.
1823
7d7fcb08
EB
18242011-04-22 Eric Botcazou <ebotcazou@adacore.com>
1825
1826 * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
1827 parameter.
1828 * gcc-interface/utils.c (create_subprog_decl): Likewise. Set
1829 DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
1830 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
1831 ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
1832 <all>: Do not set flags on the reused DECL node coming from an alias.
1833 Set DECL_IGNORED_P on the DECL node built for subprograms if they
1834 don't need debug info here...
1835 * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
1836 (gigi): Adjust calls to create_subprog_decl.
1837 (build_raise_check): Likewise.
1838 (establish_gnat_vms_condition_handler): Likewise.
1839 (Compilation_Unit_to_gnu): Likewise.
1840 (gnat_to_gnu): Likewise.
1841
e1876cac
EB
18422011-04-21 Eric Botcazou <ebotcazou@adacore.com>
1843
1844 * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define.
1845 (NO_REORDER_ADAFLAGS): New variable.
1846 (EXTRA_GNATTOOLS): Always define.
1847 (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h.
1848 Clean up and adjust list of files compiled with special options.
1849 * gcc-interface/Make-lang.in: Likewise.
1850 (ada/decl.o): Cosmetical change.
1851 (ada/misc.o): Remove dependency on $(PLUGIN_H).
1852
04695783
JM
18532011-04-20 Jim Meyering <meyering@redhat.com>
1854
1855 * initialize.c (__gnat_initialize): Remove useless if-before-free.
1856
23399579
EB
18572011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1858
1859 * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with
1860 $(CFLAGS) on the link line.
1861
51c5169c
EB
18622011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1863
1864 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the
1865 padded type built for the return type if it is unconstrained.
1866
61e46a7d
NF
18672011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1868
1869 * gcc-interface/utils.c (gnat_poplevel): Use block_chainon.
1870
81f653d6
NF
18712011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1872
b4867846
EB
1873 * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON
1874 before calling TREE_CHAIN.
81f653d6
NF
1875 * gcc-interface/misc.c (gnat_init_ts): New function.
1876 (LANG_HOOKS_INIT_TS): Define.
1877
a358e188
MJ
18782011-04-12 Martin Jambor <mjambor@suse.cz>
1879
b4867846
EB
1880 * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node
1881 instead of cgraph_node.
a358e188 1882
29b1c5a4
EB
18832011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1884
1885 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum
1886 alignment on fields of the RETURN type built for the Copy-In Copy-Out
1887 mechanism.
1888
88872b00
EB
18892011-04-08 Eric Botcazou <ebotcazou@adacore.com>
1890
1891 * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers
1892 of aggregate types that contain a placeholder.
1893
dcf0c47e
NF
18942011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1895
1896 * gcc-interface/utils.c (handle_sentinel_attribute): Don't use
b4867846 1897 TYPE_ARG_TYPES.
dcf0c47e
NF
1898 (handle_type_generic_attribute): Likewise.
1899
53e3000c
EB
19002011-04-04 Eric Botcazou <ebotcazou@adacore.com>
1901
1902 PR ada/47163
1903 * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change.
1904
ab380bb4
KT
19052011-04-04 Kai Tietz <ktietz@redhat.com>
1906
1907 PR ada/47163
0bad0e23
EB
1908 * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets
1909 to flag value.
ab380bb4 1910
8ffac116
EB
19112011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1912
1913 * gcc-interface/utils2.c (build_allocator): In the unconstrained array
1914 type case, do not strip a padding type around the array type.
1915
de9528f0
EB
19162011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1917
1918 * gcc-interface/utils.c (update_pointer_to): Finalize named pointer
1919 types.
1920
d9d7a26c
EB
19212011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1922
1923 * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
1924 * gcc-interface/misc.c (gnat_handle_option): Remove special handling
de9528f0 1925 code for -feliminate-unused-debug-types.
d9d7a26c
EB
1926 (gnat_post_options): Likewise.
1927
4cb12a90
EB
19282011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1929
1930 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
1931 declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
1932 distinct copy.
1933
acccc61c
EB
19342011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1935
1936 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
1937 DECL_ARTIFICIAL flag on enumeration types.
1938
583eb0c9
EB
19392011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1940
1941 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
1942 fat pointer types artificial unconditionally.
1943 <E_Array_Subtype>: Attach the base array type as a parallel type if it
1944 isn't artificial.
1945
e3edbd56
EB
19462011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1947
1948 * gcc-interface/gigi.h (get_dummy_type): Declare.
1949 (build_dummy_unc_pointer_types): Likewise.
1950 (finish_fat_pointer_type): Likewise.
1951 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
1952 fat pointer type has been built, complete it in place.
1953 <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
1954 and thin pointers. Remove useless variable.
1955 (finish_fat_pointer_type): Make global and move to...
1956 * gcc-interface/utils.c (finish_fat_pointer_type): ...here.
1957 (get_dummy_type): New function.
1958 (build_dummy_unc_pointer_types): Likewise.
1959 (gnat_pushdecl): Propage the name to the anonymous variants only.
1960 (update_pointer_to): Only adjust the pointer types in the unconstrained
1961 array case.
1962
65444786
EB
19632011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1964
1965 * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
1966 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
1967 if this is a Taft amendment type and the full declaration is available.
1968 * gcc-interface/trans.c (process_type): Likewise.
1969 If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
1970 (process_freeze_entity): Likewise.
1971 * gcc-interface/utils.c (dummy_global): New static variable.
1972 (gnat_write_global_declarations): If there are types declared as used
1973 at the global level, insert them in the global hash table.
1974
1aeb40dd
EB
19752011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1976
1977 * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
1978 * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
1979 declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
1980 copy.
1981 (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL
1982 flag of the type accordingly.
1983 * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.
1984
80ec8b4c
EB
19852011-04-02 Eric Botcazou <ebotcazou@adacore.com>
1986
1987 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
1988 finalizing types when updating the pointers to the designated type.
1989 <all>: Finalize the deferred types even if we didn't defer processing
1990 of incomplete types in this invocation.
1991
2a9d769a
OH
19922011-04-01 Olivier Hainque <hainque@adacore.com>
1993 Nicolas Setton <setton@adacore.com>
1994 Eric Botcazou <ebotcazou@adacore.com>
1995
1996 * gcc-interface/misc.c (gnat_descriptive_type): New function.
1997 (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.
1998
2438d7a6
KT
19992011-03-28 Kai Tietz <ktietz@redhat.com>
2000
333d8aff 2001 * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native
80ec8b4c
EB
2002 Windows targets.
2003 (EH_MECHANISM): Use GCC exception mechanism for native Windows targets.
2004 * system-mingw.ads (System): Change ZCX_By_Default default to True.
333d8aff 2005
80ec8b4c 2006 * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype.
2438d7a6 2007
8ad150f6
TG
20082011-03-28 Tristan Gingold <gingold@adacore.com>
2009
2010 PR ada/44431
80ec8b4c
EB
2011 * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c.
2012 Use ada output of gnatbind.
8ad150f6
TG
2013 (ada/b_gnatb.adb): Ditto.
2014 (ada/b_gnat1.o, ada/b_gnatb.o): New rules.
2015 (ada.mostlyclean, ada.stage1)
2016 (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile)
2017 (ada.stagefeedback): Adjust.
80ec8b4c 2018 * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c.
8ad150f6
TG
2019 Use ada output of gnatbind.
2020 (b_gnatm.adb): Ditto.
2021 (b_gnatl.o, b_gnatm.o): New rules.
2022
51c7954d
EB
20232011-03-26 Eric Botcazou <ebotcazou@adacore.com>
2024
2025 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
2026 for the padded type built to support a specified size or alignment.
2027
6ddf9843
EB
20282011-03-26 Eric Botcazou <ebotcazou@adacore.com>
2029
2030 * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment.
2031 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
2032 unconditionally to the end of the unit when the designated type is
2033 limited_with'ed.
2034 <all>: Rename local variable. Attempt to un-defer types only and do it
2035 for limited_with'ed types as well.
2036 (finalize_from_with_types): Adjust comment. Rename variable and tidy.
2037 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT
2038 consistently and remove redundant call to finalize_from_with_types.
2039
5daed84a
EB
20402011-03-26 Eric Botcazou <ebotcazou@adacore.com>
2041
2042 * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to
2043 subprograms without a previous spec declared in the same unit.
2044 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined
2045 subprograms at the end of the unit instead of at the beginning.
2046 * gcc-interface/utils.c (create_subprog_decl): Check that the entity
2047 isn't public for the special handling of non-inline functions nested
2048 inside inline external functions.
2049
0edf1bb2
JL
20502011-03-25 Jeff Law <law@redhat.com>
2051
5daed84a 2052 * gcc-interface/utils.c (def_fn_type): Add missing va_end.
0edf1bb2 2053
e3c4580e
EB
20542011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2055
2056 * einfo.ads (Size_Depends_On_Discriminant): Adjust description.
2057 * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure
2058 to compute Set_Size_Depends_On_Discriminant.
2059 (Layout_Type): Call it on array types in back-end layout mode.
2060 * sem_util.adb (Requires_Transient_Scope): Return true for array
2061 types only if the size depends on the value of discriminants.
2062 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS
2063 type if the RHS is a call to a function that returns an unconstrained
2064 type with default discriminant.
2065
abbc8c7b
EB
20662011-03-24 Eric Botcazou <ebotcazou@adacore.com>
2067
2068 * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of
2069 non-conversion to the nominal result type at the end.
2070
ddb5a105
EB
20712011-03-23 Eric Botcazou <ebotcazou@adacore.com>
2072
2073 * gcc-interface/trans.c (create_temporary): New function taken from...
2074 (create_init_temporary): ...here. Call it.
2075 (call_to_gnu): Create the temporary for the return value early, if any.
2076 Create it for a function with copy-in/copy-out parameters if there is
2077 no target; in other cases of copy-in/copy-out, use another temporary.
2078 Push the new binding level lazily. Add and rename local variables.
2079
0d853156
EB
20802011-03-23 Eric Botcazou <ebotcazou@adacore.com>
2081
2082 * gcc-interface/decl.c (validate_size): Improve comments and tweak
2083 error message.
2084 (set_rm_size): Likewise.
2085
4184ef1b
EB
20862011-03-23 Eric Botcazou <ebotcazou@adacore.com>
2087
2088 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL
2089 for the padded type built in order to support a specified alignment.
2090 Fix incorrect formatting.
2091
bf7eefab
EB
20922011-03-21 Eric Botcazou <ebotcazou@adacore.com>
2093
2094 PR bootstrap/48216
2095 * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL.
2096
ef0feeb2
EB
20972011-03-21 Eric Botcazou <ebotcazou@adacore.com>
2098
2099 * gcc-interface/decl.c (components_to_record): Add REORDER parameter,
2100 rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter
2101 to the end of the list. Adjust recursive call. Rename local variable.
2102 If REORDER is true, reorder components of the record type.
2103 (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to
2104 components_to_record and adjust the parameter list.
2105
646f9414
EB
21062011-03-21 Eric Botcazou <ebotcazou@adacore.com>
2107
2108 * gcc-interface/decl.c (elaborate_expression_1): When optimization is
2109 disabled, use the variable for bounds of loop iteration scheme.
2110
62d784f7
KT
21112011-03-21 Kai Tietz <ktietz@redhat.com>
2112
2113 PR target/12171
0bad0e23 2114 * gcc-interface/utils.c (gnat_internal_attribute_table): Add column.
62d784f7 2115
f230d759
EB
21162011-03-17 Eric Botcazou <ebotcazou@adacore.com>
2117
2118 * gcc-interface/decl.c (elaborate_expression_1): Try harder to find
2119 out whether the expression is read-only. Short-circuit placeholder
2120 case and rename a couple of local variables.
2121
bb1f7929
EB
21222011-03-17 Eric Botcazou <ebotcazou@adacore.com>
2123
2124 * gcc-interface/gigi.h (smaller_form_type_p): Declare.
2125 * gcc-interface/trans.c (smaller_form_type_p): Make global and move...
2126 * gcc-interface/utils.c (smaller_form_type_p): ...to here.
2127 (convert): Deal with conversions from a smaller form type specially.
2128
400a2d24
EB
21292011-02-14 Eric Botcazou <ebotcazou@adacore.com>
2130
2131 * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and
2132 its argument, except for the special -I- switch.
2133
c26bc3ad
GP
21342011-02-12 Gerald Pfeifer <gerald@pfeifer.com>
2135
0bad0e23
EB
2136 * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to
2137 "Ada Issues".
c26bc3ad 2138
07b8e910
EB
21392011-02-08 Eric Botcazou <ebotcazou@adacore.com>
2140
2141 * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
2142
31a5a547
EB
21432011-02-03 Eric Botcazou <ebotcazou@adacore.com>
2144
2145 * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of
2146 GNAT_FORMAL.
2147 * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to...
2148 * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE
2149 instead of GNAT_FORMAL. Protect the expression against multiple uses.
2150 Do not generate the check directly, instead instantiate the template
2151 check present in the descriptor.
2152 (make_descriptor_field): Move around.
2153 (build_vms_descriptor32): Build a template check in the POINTER field.
2154 (build_vms_descriptor): Remove useless suffixes.
2155 * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call.
2156
dcf25f59
EB
21572011-01-26 Eric Botcazou <ebotcazou@adacore.com>
2158
2159 PR bootstrap/47467
2160 * targext.c: Include target files if IN_RTS is defined.
2161
0418e131
RG
21622011-01-26 Richard Guenther <rguenther@suse.de>
2163
2164 PR bootstrap/47467
2165 * targext.c: Include config.h.
2166 * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H)
2167 dependency.
2168
c6eecbd8
PO
21692011-01-04 Pascal Obry <obry@adacore.com>
2170 Eric Botcazou <ebotcazou@adacore.com>
2171
2172 * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit.
2173
2d3c7e4f
EB
21742011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2175
2176 * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the
2177 end-of-case on the end label and its associated gotos, if any.
2178
0394741f
EB
21792011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2180
2181 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the
2182 expressions of the parameter cache within the statement group of
2183 the CICO mechanism.
2184
2a02d090
OH
21852011-01-04 Olivier Hainque <hainque@adacore.com>
2186 Eric Botcazou <ebotcazou@adacore.com>
2187
2188 * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default.
2189 (set_end_locus_from_node): New function.
2190 (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we
2191 make and the function end_locus.
2192 (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus
2193 for the elaboration subprogram.
2194 (set_gnu_expr_location_from_node) <default case>: Use it to attempt to
2195 set the end_locus of the expression as well.
2196
89f5e978
EB
21972011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2198
2199 PR ada/47131
2200 * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make
2201 variables that are referenced in exception handlers volatile.
2202
2203
ad41bd84 2204\f
797103eb 2205Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
2206
2207Copying and distribution of this file, with or without modification,
2208are permitted in any medium without royalty provided the copyright
2209notice and this notice are preserved.
This page took 1.136154 seconds and 5 git commands to generate.