Update ChangeLog and version files for release
[official-gcc.git] / gcc / ada / ChangeLog
blob54173e786cf1fe9266c7d82d940403d2b6338b0c
1 2017-10-10  Release Manager
3         * GCC 5.5.0 released.
5 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
7         * gcc-interface/trans.c (gnat_to_gnu): Do not apply special handling
8         of boolean rvalues to function calls.
10 2017-02-24  Eric Botcazou  <ebotcazou@adacore.com>
12         * gcc-interface/trans.c (return_value_ok_for_nrv_p): Add sanity check.
14 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
16         * gcc-interface/Make-lang.in (check-acats): Fix detection
17         of -j argument.
19 2016-11-13  Bob Duff  <duff@adacore.com>
21         * gcc-interface/decl.c (gnat_to_gnu_entity): In assertion about known
22         Esize, protect with !is_type and change !Unknown_Esize to Known_Esize.
24 2016-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26         Backport from mainline
27         2016-10-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29         * gcc-interface/Make-lang.in (lang_checks_parallelized): New target.
30         (check_gnat_parallelize): Likewise.
32 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
34         * system-darwin-ppc64.ads (Support_64_Bit_Divides): Delete.
35         * system-linux-armeb.ads (Support_64_Bit_Divides): Likewise.
36         * system-linux-mips.ads (Support_64_Bit_Divides): Likewise.
37         * system-linux-mips64el.ads (Support_64_Bit_Divides): Likewise.
38         * system-linux-mipsel.ads (Support_64_Bit_Divides): Likewise.
39         * system-linux-sparcv9.ads (Support_64_Bit_Divides): Likewise.
40         * system-rtems.ads (Support_64_Bit_Divides): Likewise.
42 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
44         * system-aix.ads (Always_Compatible_Rep): Change to False.
45         * system-aix64.ads (Always_Compatible_Rep): Likewise.
46         * system-hpux-ia64.ads (Always_Compatible_Rep): Likewise.
47         * system-hpux.ads (Always_Compatible_Rep): Likewise.
48         * system-linux-alpha.ads (Always_Compatible_Rep): Likewise.
49         * system-linux-hppa.ads (Always_Compatible_Rep): Likewise.
50         * system-linux-ia64.ads (Always_Compatible_Rep): Likewise.
51         * system-linux-mips.ads (Always_Compatible_Rep): Likewise.
52         * system-linux-mips64el.ads (Always_Compatible_Rep): Likewise.
53         * system-linux-mipsel.ads (Always_Compatible_Rep): Likewise.
54         * system-linux-s390.ads (Always_Compatible_Rep): Likewise.
55         * system-linux-s390x.ads (Always_Compatible_Rep): Likewise.
56         * system-linux-sh4.ads (Always_Compatible_Rep): Likewise.
57         * system-linux-sparc.ads (Always_Compatible_Rep): Likewise.
58         * system-linux-sparcv9.ads (Always_Compatible_Rep): Likewise.
59         * system-rtems.ads (Always_Compatible_Rep): Likewise.
61 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
63         Backport from mainline
64         2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
66         * system-linux-armeb.ads (Backend_Overflow_Checks): Change to True.
67         * system-linux-mips.ads (Backend_Overflow_Checks): Likewise.
68         * system-linux-mips64el.ads (Backend_Overflow_Checks): Likewise.
69         * system-linux-mipsel.ads (Backend_Overflow_Checks): Likewise.
70         * system-linux-sparcv9.ads (Backend_Overflow_Checks): Likewise.
71         * system-rtems.ads (Always_Compatible_Rep): Likewise.
73         2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
74                     Tristan Gingold  <gingold@adacore.com>
76         * system-linux-ppc64.ads: Delete.
77         * system-linux-ppc.ads: Make 32-bit/64-bit neutral.
78         * gcc-interface/Makefile.in (PowerPC/Linux): Simplify.
80 2016-10-10  Eric Botcazou  <ebotcazou@adacore.com>
82         * gcc-interface/utils.c (convert): For a biased input type, convert
83         the bias itself to the base type before adding it.
85 2016-06-03  Release Manager
87         * GCC 5.4.0 released.
89 2016-05-31  Eric Botcazou  <ebotcazou@adacore.com>
91         * s-osinte-kfreebsd-gnu.ads (clock_getres): Define.
93 2016-05-31  Jan Sommer  <soja-lists@aries.uberspace.de>
95         PR ada/71317
96         * s-osinte-rtems.ads (clock_getres): Define.
98 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
100         PR ada/70969
101         * system-darwin-ppc64.ads: Add pragma No_Elaboration_Code_All.
102         * system-linux-armeb.ads: Likewise.
103         * system-linux-mips64el.ads: Likewise.
104         * system-linux-mips.ads: Likewise.
105         * system-linux-mipsel.ads: Likewise.
106         * system-linux-ppc64.ads: Likewise.
107         * system-linux-sparcv9.ads: Likewise.
108         * system-rtems.ads: Likewise.
110 2016-05-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
112         * gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
113         Honor DESTDIR.
115 2016-04-28  Eric Botcazou  <ebotcazou@adacore.com>
117         PR ada/70786
118         * a-textio.adb (Get_Immediate): Add missing 'not' in expression.
120 2016-04-02  Eric Botcazou  <ebotcazou@adacore.com>
122         * gcc-interface/decl.c (components_to_record): Restrict the previous
123         change to fields with variable size.
125 2016-03-27  Eric Botcazou  <ebotcazou@adacore.com>
127         * gcc-interface/decl.c (components_to_record): Add special case for
128         single field with representation clause at offset 0.
130 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
132         * exp_ch4.adb (Expand_N_Indexed_Component): Activate synchronization if
133         the prefix denotes an entity which Has_Atomic_Components.
135 2016-02-16  Eric Botcazou  <ebotcazou@adacore.com>
137         * gcc-interface/misc.c (gnat_enum_underlying_base_type): New function.
138         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): Define to above.
140 2016-01-18  Eric Botcazou  <ebotcazou@adacore.com>
142         PR ada/69219
143         * gcc-interface/trans.c (check_inlining_for_nested_subprog): Consider
144         the parent function instead of the current function in order to issue
145         the warning or the error.  Add guard for ignored functions.
147 2015-12-06  Piotr Trojanek  <piotr.trojanek@gmail.com>
149         PR ada/60164
150         * doc/gnat_ugn/gnat_and_program_execution.rst (gnatmem): Fix typo.
152 2015-12-06  Eric Botcazou  <ebotcazou@adacore.com>
154         PR ada/56274
155         * s-osinte-kfreebsd-gnu.ads (pthread_rwlock_t): New subtype.
156         (pthread_rwlockattr_t): Likewise.
158 2015-12-06  Ludovic Brenta  <ludovic@ludovic-brenta.org>
160         PR ada/49944
161         * s-osinte-freebsd.ads: Minor reformatting.
162         (Stack_Base_Available): Correct comments.
163         * s-osinte-kfreebsd-gnu.ads (Time_Slice_Supported, nanosleep,
164         clock_id_t, clock_gettime, Stack_Base_Available, Get_Page_Size,
165         mprotect, pthread_mutexattr_setprotocol,pthread_mutexattr_getprotocol
166         pthread_mutexattr_setprioceiling, pthread_mutexattr_getprioceiling,
167         pthread_attr_setscope, pthread_attr_getscope,
168         pthread_attr_setinheritsched, pthread_attr_getinheritsched,
169         Time_Slice_Supported): Copy from s-osinte-freebsd.ads.
170         * gcc-interface/Makefile.in (x86/kfreebsd): Use the POSIX version of
171         the System.Task_Primitives.Operations package.
173 2015-12-06  Ludovic Brenta  <ludovic@ludovic-brenta.org>
175         PR ada/49940
176         * s-osinte-kfreebsd-gnu.ads (lwp_self): New imported function.
178 2015-12-04  Jan Sommer <soja-lists@aries.uberspace.de>
180         PR ada/68169
181         * s-oscons-tmplt.c: Generate pthread constants for RTEMS
182         * s-osinte-rtems.ads: Declare pthread structs as opaque types in Ada
184 2015-12-04  Release Manager
186         * GCC 5.3.0 released.
188 2015-11-29  Matthias Klose  <doko@ubuntu.com>
190         PR ada/68564
191         * gcc-interface/Makefile.in: Fix powerpc/powerpc64* and
192         mipsel/mips64el bitness detection.
193         Merge the mipsel/mips64el definitions into one.
195 2015-11-28  Matthias Klose  <doko@ubuntu.com>
197         PR ada/68564
198         * gcc-interface/Makefile.in: Fix sparc/sparc64 bitness detection.
200 2015-11-24  Eric Botcazou  <ebotcazou@adacore.com>
202         * gcc-interface/decl.c (is_cplusplus_method): Check that the type of
203         the first parameter (indirectly) has C++ convention too.
205 2015-11-18  Eric Botcazou  <ebotcazou@adacore.com>
207         * gcc-interface/trans.c (fold_constant_decl_in_expr) <ARRAY_REF>: If
208         the index is not itself constant then bail out.
210 2015-10-09  Eric Botcazou  <ebotcazou@adacore.com>
212         * gcc-interface/Make-lang.in: Make sure that GNAT1_OBJS and not just
213         GNAT1_ADA_OBJS are compiled only after generated files are created.
215 2015-07-16  Release Manager
217         * GCC 5.2.0 released.
219 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
221         * gcc-interface/utils.c (get_global_context): Register the main
222         translation unit through the new debug hook.
224 2015-06-04  Pierre-Marie de Rodat  <derodat@adacore.com>
226         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: If
227         processing a definition, create definitions for padding types
228         around return types.
230 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
232         * gcc-interface/Makefile.in: Fix ARM/Darwin configuration.
234 2015-04-22  Release Manager
236         * GCC 5.1.0 released.
238 2015-04-09  Iain Sandoe  <iain@codesourcery.com>
240         * gcc-interface/Makefile.in (darwin, powerpc): Enable atomics.
242 2015-04-08  Eric Botcazou  <ebotcazou@adacore.com>
244         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not make
245         a function returning an unconstrained type 'const' for the middle-end.
247         * gcc-interface/trans.c (Pragma_to_gnu) <case Pragma_Warning>: Use
248         exact condition to detect Reason => "..." pattern.
250 2015-03-31  Tom de Vries  <tom@codesourcery.com>
252         PR ada/65490
253         * terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
254         bzero call is the same expression as the destination'.
256 2015-03-26  Eric Botcazou  <ebotcazou@adacore.com>
258         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case.
260 2015-03-24  Gary Dismukes  <dismukes@adacore.com>
262         * sem_ch3.adb: Minor typo fix (missing paren).
264 2015-03-24  Robert Dewar  <dewar@adacore.com>
266         * sinfo.ads: Update comment.
268 2015-03-24  Robert Dewar  <dewar@adacore.com>
270         * exp_attr.adb: Add entry for typ'Deref.
271         * sem_attr.adb (Deref): New GNAT attribute.
272         * sem_attr.ads: Add entry for new GNAT attribute Deref.
273         * snames.ads-tmpl: Add entries for new attribute Deref.
275 2015-03-24  Ed Schonberg  <schonberg@adacore.com>
277         * sem_ch13.adb (Rep_Item_Too_Early): allow pragma Convention
278         on generic type.
280 2015-03-24  Gary Dismukes  <dismukes@adacore.com>
282         * inline.adb: Minor typo fix.
284 2015-03-24  Arnaud Charlet  <charlet@adacore.com>
286         * doc/gnat_ugn/building_executable_programs_with_gnat.rst,
287         doc/gnat_ugn/gnat_utility_programs.rst
288         doc/gnat_rm/implementation_defined_attributes.rst
289         doc/gnat_rm/implementation_defined_pragmas.rst
290         doc/gnat_rm/representation_clauses_and_pragmas.rst
291         doc/gnat_rm/about_this_guide.rst
292         doc/gnat_rm/implementation_of_ada_2012_features.rst: Doc improvements.
293         * gnat_rm.texi, gnat_ugn.texi: Regenerate.
295 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
297         PR bootstrap/65522
298         * adadecode.c (ada_demangle): Guard with IN_RTS instead of IN_GCC.
300 2015-03-20  Eric Botcazou  <ebotcazou@adacore.com>
302         PR ada/65451
303         * gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
304         Make sure to chain only main variants through TYPE_NEXT_PTR_TO.
306         * gcc-interface/trans.c (Attribute_to_gnu): Revert latest change.
308 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
310         * gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
311         of the expression ends up being composite.
313 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
315         * gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
316         (gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
317         parameter types to detect circularities in ASIS mode.
318         * gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.
320 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
322         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
323         short-circuit the regular handling.
325 2015-03-13  Robert Dewar  <dewar@adacore.com>
327         * exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
328         references.
329         (Actual_Ref): New function.
330         (AREC_String): Minor reformatting.
331         (Unnest_Subprogram): Use Actual_Ref.
332         * frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
333         before call to Instantiate_Bodies.
335 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
337         * freeze.adb (Freeze_Profile): If the return type of a function
338         being frozen is an untagged limited view and the function is
339         abstract, mark the type as frozen because there is no later
340         point at which the profile of the subprogram will be elaborated.
342 2015-03-13  Robert Dewar  <dewar@adacore.com>
344         * einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
345         component to entities. Add new fields Field36-41 and Node36-41.
347 2015-03-13  Claire Dross  <dross@adacore.com>
349         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.
351 2015-03-13  Robert Dewar  <dewar@adacore.com>
353         * exp_util.adb (Is_Volatile_Reference): Compile time known
354         value is never considered to be a volatile reference.
356 2015-03-13  Robert Dewar  <dewar@adacore.com>
358         * sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
359         cannot be volatile" for internally generated object (such as
360         FIRST and LAST constants).
362 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
364         * sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
365         convention is specified for the formal parameter, verify that
366         the actual has the same convention.
367         * sem_prag.adb (Set_Convention_From_Pragma): Allow convention
368         pragma to be set on a generic formal type.
369         * sem_util.adb (Set_Convention): Ignore within an instance,
370         as it has already been verified in the generic unit.
372 2015-03-13  Claire Dross  <dross@adacore.com>
374         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
375         subprograms with unconstrained record parameters containing
376         Itype declarations.
377         * sinfo.ads Document GNATprove assumption that type should match
378         in the AST.
379         * sem_ch6.adb (Analyze_Subprogram_Body_Contract):
380         Do not check for Refined_Depends and Refined_Globals contracts
381         as they are optional.
383 2015-03-13  Ed Schonberg  <schonberg@adacore.com>
385         * sem_ch12.adb (Instantiate_Type): For a floating-point type,
386         capture dimension info if any, because the generated subtype
387         declaration does not come from source and will not process dimensions.
388         * sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
389         Do not analyze expressions with an initialization procedure
390         because aggregates will have been checked at the point of record
391         declaration.
393 2015-03-13  Robert Dewar  <dewar@adacore.com>
395         * aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
396         * einfo.ads, einfo.adb (Is_Unimplemented): New flag.
397         * sem_ch13.adb: Add dummy entry for aspect Unimplemented.
398         * snames.ads-tmpl: Add entry for Name_Unimplemented.
400 2015-03-13  Gary Dismukes  <dismukes@adacore.com>
402         * style.adb (Missing_Overriding): Apply the
403         Comes_From_Source test to the Original_Node of the subprogram
404         node, to handle the case of a null procedure declaration that
405         has been rewritten as an empty procedure body.
407 2015-03-13  Robert Dewar  <dewar@adacore.com>
409         * exp_util.ads: Minor fix to comment.
410         * sem_ch3.adb (Constrain_Index): Correct pasto from previous
411         change.
413 2015-03-13  Robert Dewar  <dewar@adacore.com>
415         * exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
416         Is_Low/High_Bound params.
417         * sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
418         sequence to simplify generation of FIRST/LAST temps for bounds.
420 2015-03-12  Olivier Hainque  <hainque@adacore.com>
422         * gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
423         On targets where a function symbol designates a function descriptor,
424         fetch the function code address from the descriptor.
425         (USE_RUNTIME_DESCRIPTORS): Provide a default definition.
427 2015-03-04  Robert Dewar  <dewar@adacore.com>
429         * sem_warn.adb: Minor reformatting.
430         * init.c: Minor tweaks.
432 2015-03-04  Dmitriy Anisimko  <anisimko@adacore.com>
434         * a-coinho-shared.adb: Fix clear of already empty holder.
436 2015-03-04  Robert Dewar  <dewar@adacore.com>
438         * exp_unst.adb (Check_Dynamic_Type): Ignore library level types.
439         (Check_Uplevel_Reference_To_Type): Ignore call inside generic.
440         (Note_Uplevel_Reference): Ignore call inside generic.
441         (Note_Uplevel_Reference): Fix check for no entity field.
442         (Unnest_Subprogram): Ignore call inside generic.
443         (Find_Current_Subprogram): Use Defining_Entity, not Defining_Unit_Name.
444         (Visit_Node): Ignore calls to Imported subprograms.
445         (Visit_Node): Fix problem in finding subprogram body in some cases.
446         (Add_Form_To_Spec): Use Defining_Entity, not Defining_Unit_Name.
448 2015-03-04  Robert Dewar  <dewar@adacore.com>
450         * einfo.adb (Is_ARECnF_Entity): Removed.
451         (Last_Formal): Remove special handling of Is_ARECnF_Entity.
452         (Next_Formal): Remove special handling of Is_ARECnF_Entity.
453         (Next_Formal_With_Extras): Remove special handling of Is_ARECnF_Entity.
454         (Number_Entries): Minor reformatting.
455         * einfo.ads (Is_ARECnF_Entity): Removed.
456         * exp_unst.adb (Unnest_Subprogram): Remove setting of
457         Is_ARECnF_Entity.
458         (Add_Extra_Formal): Use normal Extra_Formal circuit.
459         * sprint.adb (Write_Param_Specs): Properly handle case where
460         there are no source formals, but we have at least one Extra_Formal
461         present.
463 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
465         * sem_aggr.adb (Resolve_Record_Aggregate,
466         Add_Discriminant_Values): If the value is a reference to the
467         current instance of an enclosing type, use its base type to check
468         against prefix of attribute reference, because the target type
469         may be otherwise constrained.
471 2015-03-04  Robert Dewar  <dewar@adacore.com>
473         * atree.h: Add entries for Flag287-Flag309.
474         * einfo.adb: Add (unused) flags Flag287-Flag309.
476 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
478         * sem_util.adb (Collect_Interfaces, Collect): When gathering
479         interfaces of ancestors, handle properly a subtype of a private
480         extension.
482 2015-03-04  Robert Dewar  <dewar@adacore.com>
484         * einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
485         (Next_Formal): Don't return ARECnF formal.
486         (Last_Formal): Don't consider ARECnF formal.
487         (Next_Formal_With_Extras): Do consider ARECnF formal.
488         * einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
489         * exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.
491 2015-03-04  Javier Miranda  <miranda@adacore.com>
493         * exp_ch6.adb (Expand_Simple_Function_Return): When the returned
494         object is a class-wide interface object and we generate the
495         accessibility described in RM 6.5(8/3) then displace the pointer
496         to the object to reference the base of the object (to get access
497         to the TSD of the object).
499 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
501         * sem_prag.adb (Analyze_Abstract_State): Use routine
502         Malformed_State_Error to issue general errors.
503         (Analyze_Pragma): Diagnose a syntax error related to a state
504         declaration with a simple option.
505         (Malformed_State_Error): New routine.
507 2015-03-04  Robert Dewar  <dewar@adacore.com>
509         * a-strsup.adb (Super_Slice): Deal with super flat case.
510         * einfo.ads: Minor reformatting.
511         * s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
512         redundant code.
514 2015-03-04  Claire Dross  <dross@adacore.com>
516         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
517         a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
518         containers.
520 2015-03-04  Ed Schonberg  <schonberg@adacore.com>
522         * sem_warn.adb (Check_References): When checking for an unused
523         in-out parameter of a class- wide type, use its type to determine
524         whether it is private, in order to avoid a spurious warning when
525         subprogram spec and body are in different units.
527 2015-03-04  Yannick Moy  <moy@adacore.com>
529         * sem_attr.adb: Improve warning messages.
531 2015-03-04  Robert Dewar  <dewar@adacore.com>
533         * exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
534         generic subprograms.
535         * exp_unst.adb (Check_Dynamic_Type): Handle record types properly
536         (Note_Uplevel_Reference): Ignore uplevel references to non-types
537         (Get_Level): Consider only subprograms, not blocks.
538         (Visit_Node): Set proper condition for generating ARECnF entity.
539         Ignore indirect calls. Ignore calls to subprograms
540         outside our nest.
541         (Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
542         (Add_Form_To_Spec): Properly set Last_Entity field.
543         (Unnest_Subprogram): Set current subprogram scope for analyze calls.
544         Handle case of no uplevel refs in outer subprogram
545         Don't mark uplevel entities as aliased.
546         Don't deal with calls with no ARECnF requirement.
548 2015-03-04  Robert Dewar  <dewar@adacore.com>
550         * s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
551         * s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
552         operation in computing LZ.
553         * sem_attr.adb: Minor typo fix
555 2015-03-04  Robert Dewar  <dewar@adacore.com>
557         * exp_ch7.adb: Minor reformatting.
558         * exp_unst.adb (Build_Tables): Fix minor glitch for no separate
559         spec case.
560         * erroutc.adb (Delete_Msg): add missing decrement of info msg counter.
562 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
564         * exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
565         references to formal parameters subject to pragma Unreferenced.
566         (Suppress_Reference): New routine.
567         * sem_attr.adb (Analyze_Attribute): Reimplement the analysis
568         of attribute 'Old. Attributes 'Old and 'Result now share
569         common processing.
570         (Analyze_Old_Result_Attribute): New routine.
571         (Check_Placement_In_Check): Removed.
572         (Check_Placement_In_Contract_Cases): Removed.
573         (Check_Placement_In_Test_Case): Removed.
574         (Check_Use_In_Contract_Cases): Removed.
575         (Check_Use_In_Test_Case): Removed.
576         (In_Refined_Post): Removed.
577         (Is_Within): Removed.
578         * sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
579         (Check_Low_Bound_Tested_For): New routine.
581 2015-03-04  Hristian Kirtchev  <kirtchev@adacore.com>
583         * exp_ch3.adb (Expand_N_Object_Declaration):
584         Generate a runtime check to test the expression of pragma
585         Default_Initial_Condition when the object is default initialized.
587 2015-03-02  Robert Dewar  <dewar@adacore.com>
589         * scng.adb (Scan): Ignore illegal character in relaxed
590         semantics mode.
592 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
594         * sem_ch4.adb (Analyze_Set_Membership); Retain Overloaded flag
595         on left operand, so it can be properly resolved with type of
596         alternatives of right operand.
597         * sem_res.adb (Resolve_Set_Membership): Handle properly an
598         overloaded left-hand side when the alternatives on the right
599         hand side are literals of some universal type.  Use first
600         non-overloaded alternative to find expected type.
602 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
604         * exp_ch7.adb (Make_Set_Finalize_Address_Call): Use underlying
605         type to retrieve designated type, because the purported access
606         type may be a partial (private) view, when it is declared in
607         the private part of a nested package, and finalization actions
608         are generated when completing compilation of enclosing unit.
610 2015-03-02  Robert Dewar  <dewar@adacore.com>
612         * back_end.adb (Call_Back_End): Remove previous patch,
613         the back end now gets to see the result of -gnatd.1
614         (Unnest_Subprogram_Mode) processing.
615         * elists.ads, elists.adb (List_Length): New function.
616         * exp_unst.ads, exp_unst.adb: Major changes, first complete version.
617         * sem_util.adb (Check_Nested_Access): Handle formals in
618         Unnest_Subprogram_Mode.
619         (Adjust_Named_Associations): Minor reformatting.
620         * sprint.adb (Sprint_Node_Actual): Fix failure to print aliased
621         for parameters.
623 2015-03-02  Robert Dewar  <dewar@adacore.com>
625         * atree.ads, atree.adb (Uint24): New function
626         (Set_Uint24): New procedure.
627         * atree.h (Uint24): New macro for field access.
628         * back_end.adb (Call_Back_End): For now, don't call back end
629         if unnesting subprogs.
630         * einfo.adb (Activation_Record_Component): New field
631         (Subps_Index): New field.
632         * einfo.ads (Activation_Record_Component): New field
633         (Subps_Index): New field Minor reordering of comments into alpha order.
634         * exp_unst.ads, exp_unst.adb: Continued development.
636 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
638         * exp_disp.ads: Minor reformatting.
640 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
642         * sem_ch8.adb (Chain_Use_Clause): Do not chain use clause from
643         ancestor to list of use clauses active in descendant unit if we
644         are within the private part of an intervening parent, to prevent
645         circularities in use clause list.
647 2015-03-02  Javier Miranda  <miranda@adacore.com>
649         * exp_ch9.adb (Build_Corresponding_Record): Propagate type
650         invariants to the corresponding record type.
651         * exp_disp.ad[sb] (Set_DT_Position_Value): New subprogram
652         which sets the value of the DTC_Entity associated with a given
653         primitive of a tagged type and propagates the value to the
654         wrapped subprogram.
655         (Set_DTC_Entity_Value): Propagate the DTC
656         value to the wrapped entity.
657         * sem_ch13.adb (Build_Invariant_Procedure): Append the code
658         associated with invariants of progenitors.
659         * sem_ch3.adb (Build_Derived_Record_Type): Inherit type invariants
660         of parents and progenitors.
661         (Process_Full_View): Check hidden inheritance of class-wide type
662         invariants.
663         * sem_ch7.adb (Analyze_Package_Specification): Do not generate
664         the invariant procedure for interface types; build the invariant
665         procedure for tagged types inheriting invariants from their
666         progenitors.
667         * sem_prag.adb (Pragma_Invariant) Allow invariants in interface
668         types but do not build their invariant procedure since their
669         invariants will be propagated to the invariant procedure of
670         types covering the interface.
671         * exp_ch6.adb, exp_disp.adb, sem_ch3.adb, sem_ch7.adb,
672         sem_ch8.adb, sem_disp.adb: Replace all calls to Set_DT_Position
673         by calls to Set_DT_Position_Value.
675 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
677         * sem_attr.adb (Analyze_Attribute): Factor out heavily indented
678         code in Denote_Same_Function.  Do not analyze attribute 'Result
679         when it is inside procedure _Postconditions.  Remove a misplaced
680         warning diagnostic. Code cleanup.
681         (Denote_Same_Function): New routine.
682         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Code
683         cleanup. Warn on pre/postconditions on an inlined subprogram.
684         (Analyze_Pragma, Refined_Post case): Warn on pre/postconditions on
685         an inlined subprogram.
686         (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup. Warn on
687         pre/post condition on an inlined subprogram.
688         (Analyze_Test_Case_In_Decl_Part): Code cleanup. Warn on
689         pre/postconditions on an inlined subprogram.
690         (Check_Postcondition_Use_In_Inlined_Subprogram): New routine.
692 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
694         * sem_prag.adb (Ensure_Aggregate_Form):
695         Ensure that the name denoted by the Chars of a pragma argument
696         association has the proper Sloc when converted into an aggregate.
698 2015-03-02  Bob Duff  <duff@adacore.com>
700         * sem_ch6.adb (Check_Private_Overriding): Capture
701         Incomplete_Or_Partial_View in a constant. This is cleaner and
702         more efficient.
704 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
706         * einfo.ads, exp_unst.ads: Minor reformatting.
708 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
710         * a-strsea.adb (Find_Token): Ensure that the range of iteration
711         does not perform any improper character access. This prevents
712         erroneous access in the unusual case of an empty string target
713         and a From parameter less than Source'First.
715 2015-03-02  Robert Dewar  <dewar@adacore.com>
717         * elists.adb (List_Length): Fix incorrect result.
719 2015-03-02  Bob Duff  <duff@adacore.com>
721         * sem_ch6.adb (Check_Private_Overriding): Refine the legality
722         checks here. It used to check that the function is merely
723         overriding SOMEthing. Now it checks that the function is
724         overriding a corresponding public operation. This is a correction
725         to the implementation of the rule in RM-3.9.3(10).
727 2015-03-02  Robert Dewar  <dewar@adacore.com>
729         * debug.adb: Document new debug flag -gnatd.1.
730         * einfo.ads, einfo.adb (Has_Nested_Subprogram): New flag.
731         (Has_Uplevel_Reference): New flag (Is_Static_Type): New flag.
732         (Uplevel_Reference_Noted):New flag (Uplevel_References): New field.
733         * elists.ads elists.adb (List_Length): New function.
734         * exp_ch6.adb (Expand_N_Subprogram_Body): Call Unnest_Subprogram
735         when appropriate (Process_Preconditions): Minor code
736         reorganization and reformatting
737         * exp_unst.ads, exp_unst.adb: New files.
738         * gnat1drv.adb (Adjust_Global_Switches): Set
739         Unnest_Subprogram_Mode if -gnatd.1
740         * namet.ads, namet.adb (Name_Find_Str): New version of Name_Find with
741         string argument.
742         * opt.ads (Unnest_Subprogram_Mode): New flag.
743         * par-ch3.adb (P_Identifier_Declarations): Fixes to -gnatd.2 handling.
744         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
745         Has_Nested_Subprogram flag.
746         * sem_ch8.adb (Find_Direct_Name): New calling sequence for
747         Check_Nested_Access.
748         (Find_Selected_Component): Minor comment addition.
749         * sem_util.adb (Check_Nested_Access): New version for use with Exp_Unst.
750         (Note_Possible_Modification): New calling sequence for
751         Check_Nested_Access.
752         * sem_util.ads (Check_Nested_Access): New version for use with Exp_Unst.
753         * gcc-interface/Make-lang.in (GNAT1_OBJS): Add exp_unst.o
755 2015-03-02  Pierre-Marie de Rodat  <derodat@adacore.com>
757         * gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
758         types, preserve the original type and create copies just like the C
759         front-end does.  For artificial ones, do not define a name for
760         the original type.
761         (create_type_decl): When gnat_pushdecl made the input type the
762         original type for the new declaration, do not define a stub
763         declaration for it.
764         * gcc-interface/utils2.c (build_binary_op): Accept two different
765         pointer types when they point to the same type.
767 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
769         * exp_util.adb (Possible_Bit_Aligned_Component): Do not process
770         an unanalyzed node.
771         * sem_util.adb (Kill_Current_Values): Do not invalidate and
772         de-null a constant.
774 2015-03-02  Robert Dewar  <dewar@adacore.com>
776         * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
777         reformatting.
779 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
781         * sem_ch8.adb: extend use of Available_Subtype.
783 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
785         * sem_prag.adb (Duplication_Error): Remove the special handling
786         of 'Class or _Class in the context of pre/postconditions.
787         (Process_Class_Wide_Condition): Remove the special handling of
788         'Class or _Class in the context of pre/postconditions.
789         * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
790         and Post_Class no longer need to be converted to _Pre and _Post.
791         * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
792         on usage.
794 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
796         * exp_ch6.adb (Process_Preconditions): Modify the
797         mechanism that find the first source declaration to correct exit
798         the loop once it has been found.
800 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
802         * a-strsea.adb: Minor typo fix.
804 2015-03-02  Bob Duff  <duff@adacore.com>
806         * einfo.ads: Minor comment fixes.
808 2015-03-02  Gary Dismukes  <dismukes@adacore.com>
810         * einfo.adb, checks.adb: Minor reformatting and typo fixes.
812 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
814         * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
815         is defined for the array type, use it instead of a Default_Value
816         specified for the component type itself.
818 2015-03-02  Thomas Quinot  <quinot@adacore.com>
820         * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
821         expanding a 'Input attribute reference for a class-wide type,
822         do not generate a separate object declaration for the controlling
823         tag dummy object; instead, generate the expression inline in the
824         dispatching call. Otherwise, the declaration (which involves a
825         call to String'Input, returning a dynamically sized value on the
826         secondary stack) will be expanded outside of proper secondary
827         stack mark/release operations, and will thus cause a secondary
828         stack leak.
830 2015-03-02  Hristian Kirtchev  <kirtchev@adacore.com>
832         * checks.adb (Add_Validity_Check): Change the names of all
833         formal parameters to better illustrate their purpose. Update
834         the subprogram documentation. Update all occurrences of the
835         formal parameters. Generate a pre/postcondition pragma by
836         calling Build_Pre_Post_Condition.
837         (Build_PPC_Pragma): Removed.
838         (Build_Pre_Post_Condition): New routine.
839         * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
840         is now used as Postconditions_Proc. Flag240 is now renamed to
841         Has_Expanded_Contract.  (First_Formal): The routine can now
842         operate on generic subprograms.
843         (First_Formal_With_Extras): The routine can now operate on generic
844         subprograms.
845         (Has_Expanded_Contract): New routine.
846         (Has_Postconditions): Removed.
847         (Postcondition_Proc): Removed.
848         (Postconditions_Proc): New routine.
849         (Set_Has_Expanded_Contract): New routine.
850         (Set_Has_Postconditions): Removed.
851         (Set_Postcondition_Proc): Removed.
852         (Set_Postconditions_Proc): New routine.
853         (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
854         the output of Has_Expanded_Contract.
855         (Write_Field8_Name): Remove the output of Postcondition_Proc.
856         (Write_Field14_Name): Add the output of Postconditions_Proc.
857         * einfo.ads New attributes Has_Expanded_Contract and
858         Postconditions_Proc along with occurrences in entities.
859         Remove attributes Has_Postconditions and Postcondition_Proc
860         along with occurrences in entities.
861         (Has_Expanded_Contract): New routine along with pragma Inline.
862         (Has_Postconditions): Removed along with pragma Inline.
863         (Postcondition_Proc): Removed along with pragma Inline.
864         (Postconditions_Proc): New routine along with pragma Inline.
865         (Set_Has_Expanded_Contract): New routine along with pragma Inline.
866         (Set_Has_Postconditions): Removed along with pragma Inline.
867         (Set_Postcondition_Proc): Removed along with pragma Inline.
868         (Set_Postconditions_Proc): New routine along with pragma Inline.
869         * exp_ch6.adb (Add_Return): Code cleanup. Update the
870         generation of the call to the _Postconditions routine of
871         the procedure.  (Expand_Non_Function_Return): Reformat the
872         comment on usage. Code cleanup.  Update the generation of
873         the call to the _Postconditions routine of the procedure or
874         entry [family].
875         (Expand_Simple_Function_Return): Update the
876         generation of the _Postconditions routine of the function.
877         (Expand_Subprogram_Contract): Reimplemented.
878         * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
879         profile along the comment on usage.
880         * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
881         (Expand_N_Task_Type_Declaration): Generate pre/postconditions
882         wrapper when the entry [family] has a contract with
883         pre/postconditions.
884         * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
885         (Expand_Contract_Cases): This routine and its subsidiaries now
886         analyze all generated code.
887         (Expand_Old_In_Consequence): Removed.
888         * sem_attr.adb Add with and use clause for Sem_Prag.
889         (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
890         (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
891         "Ensures".
892         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
893         a generic subprogram.
894         (Analyze_Object_Declaration): Do not create a contract node.
895         (Derive_Subprogram): Do not create a contract node.
896         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
897         not create a contract node.
898         (Analyze_Completion_Contract): New routine.
899         (Analyze_Function_Return): Alphabetize.
900         (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
901         contract node.  Do not copy pre/postconditions to the original
902         generic template.
903         (Analyze_Null_Procedure): Do not create a contract node.
904         (Analyze_Subprogram_Body_Contract): Reimplemented.
905         (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
906         as having postconditions. Do not create a contract node. Analyze
907         the subprogram body contract of a body that acts as a compilation
908         unit. Expand the subprogram contract after the declarations have
909         been analyzed.
910         (Analyze_Subprogram_Contract): Reimplemented.
911         (Analyze_Subprogram_Specification): Do not create a contract node.
912         (List_Inherited_Pre_Post_Aspects): Code cleanup.
913         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
914         comment on usage.
915         (Analyze_Subprogram_Contract): Update the
916         parameter profile and the comment on usage.
917         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
918         contract node.
919         (Analyze_Package_Declaration): Do not create a
920         contract node.
921         (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
922         * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
923         contract node.
924         * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
925         contract node.
926         * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
927         their proper section and alphabetize them. Analyze the contract of
928         a [generic] subprogram after all Pragmas_After have been analyzed.
929         (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
930         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
931         create a contract node.
932         (Analyze_Generic_Subprogram_Declaration):
933         Alphabetize local variables. Do not create a contract
934         node. Do not generate aspects out of pragmas for ASIS.
935         (Analyze_Subprogram_Instantiation): Instantiate
936         the contract of the subprogram.  Do not create a
937         contract node.  (Instantiate_Contract): New routine.
938         (Instantiate_Subprogram_Body): Alphabetize local variables.
939         (Save_Global_References_In_Aspects): New routine.
940         (Save_References): Do not save the global references found within
941         the aspects of a generic subprogram.
942         * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
943         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
944         Original_Node for establishing linkages.
945         (Insert_Pragma): Insertion in a subprogram body takes precedence over
946         the case where the subprogram body is also a compilation unit.
947         * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
948         Get_Argument to obtain the proper expression. Install the generic
949         formals when the related context is a generic subprogram.
950         (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
951         the proper expression. Use Corresponding_Spec_Of to obtain
952         the spec. Install the generic formal when the related context
953         is a generic subprogram.
954         (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
955         expression. Use Corresponding_Spec_Of to obtain the spec. Install the
956         generic formal when the related context is a generic subprogram.
957         (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
958         to obtain the proper expression. Remove the call to
959         Check_SPARK_Aspect_For_ASIS as the analysis is now done
960         automatically.
961         (Analyze_Pragma): Update all occurrences
962         to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
963         Extensions_Visible, Global, Postcondition, Precondition and
964         Test_Case now carry generic templates when the related context
965         is a generic subprogram. The same pragmas are no longer
966         forcefully fully analyzed when the context is a subprogram
967         that acts as a compilation unit. Pragmas Abstract_State,
968         Initial_Condition, Initializes and Refined_State have been clean
969         up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
970         and Precondition now use the same routine for analysis. Pragma
971         Refined_Post does not need to check the use of 'Result or
972         the lack of a post-state in its expression. Reimplement the
973         analysis of pragma Test_Case.
974         (Analyze_Pre_Post_Condition): New routine.
975         (Analyze_Pre_Post_Condition_In_Decl_Part):
976         Reimplemented.
977         (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
978         proper expression.
979         (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
980         the proper expression.
981         (Analyze_Test_Case_In_Decl_Part): Reimplemented.
982         (Check_Pre_Post): Removed.
983         (Check_Precondition_Postcondition): Removed.
984         (Check_SPARK_Aspect_For_ASIS): Removed.
985         (Check_Test_Case): Removed.
986         (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
987         to obtain the proper expression. Use Corresponding_Spec_Of to
988         find the proper spec.
989         (Create_Generic_Template): New routine.
990         (Duplication_Error): New routine.
991         (Expression_Function_Error): New routine.
992         (Find_Related_Subprogram_Or_Body): Moved to the spec
993         of Sem_Prag. Emit precise error messages. Account for cases of
994         rewritten expression functions, generic instantiations, handled
995         sequence of statements and pragmas from aspects.
996         (Get_Argument): New routine.
997         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
998         (Preanalyze_CTC_Args): Removed.
999         (Process_Class_Wide_Condition): New routine.
1000         * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
1001         the parameter profile along with the comment on usage.
1002         (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
1003         (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
1004         (Test_Case_Arg): New routine.
1005         * sem_util.adb Add with and use clauses for Sem_Ch6.
1006         (Add_Contract_Item): This routine now creates a contract
1007         node the first time an item is added. Remove the duplicate
1008         aspect/pragma checks.
1009         (Check_Result_And_Post_State): Reimplemented.
1010         (Corresponding_Spec_Of): New routine.
1011         (Get_Ensures_From_CTC_Pragma): Removed.
1012         (Get_Requires_From_CTC_Pragma): Removed.
1013         (Has_Significant_Contract): New routine.
1014         (Inherit_Subprogram_Contract): Inherit only if the source
1015         has a contract.
1016         (Install_Generic_Formals): New routine.
1017         (Original_Aspect_Name): Removed.
1018         (Original_Aspect_Pragma_Name): New routine.
1019         * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
1020         (Corresponding_Spec_Of): New routine.
1021         (Get_Ensures_From_CTC_Pragma): Removed.
1022         (Get_Requires_From_CTC_Pragma): Removed.
1023         (Has_Significant_Contract): New routine.
1024         (Install_Generic_Formals): New routine.
1025         (Original_Aspect_Name): Removed.
1026         (Original_Aspect_Pragma_Name): New routine.
1027         * sem_warn.adb Add with and use clauses for Sem_Prag.
1028         (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
1030 2015-03-02  Ed Schonberg  <schonberg@adacore.com>
1032         * sem_ch8.adb (Available_Subtype): Optimization in
1033         Find_Selected_Component: when safe, use existing subtype of
1034         array component, possibly discriminant-dependent, rather than
1035         creating new subtype declaration for it. In this fashion different
1036         occurrences of the component have the same subtype, rather than
1037         just equivalent ones. Simplifies value tracing in GNATProve.
1039 2015-03-01  Arnaud Charlet  <charlet@adacore.com>
1041         PR ada/65259
1043         * doc/gnat_ugn/gnat_project_manager.rst,
1044         doc/gnat_ugn/platform_specific_information.rst: Remove reference to
1045         image, too troublesome with texi format.
1046         * gnat_ugn.texi: Regenerate.
1048 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
1050         PR libgomp/64625
1051         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
1052         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
1053         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1055 2015-02-23  Thomas Schwinge  <thomas@codesourcery.com>
1057         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
1058         arguments parameter.
1059         (DEF_FUNCTION_TYPE_VAR_12): Likewise.
1061 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
1063         * doc/Makefile: postprocess texinfo files to update @dircategory
1064         and update texi files under gcc/ada.
1065         * gnat_ugn.texi, gnat_rm.texi: Regenerated.
1067 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
1069         * doc/gnat_ugn/project-manager-figure.png,
1070         doc/gnat_ugn/rtlibrary-structure.png: New.
1072 2015-02-22  Tom de Vries  <tom@codesourcery.com>
1074         PR ada/65100
1075         * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
1076         @item, and fix warning '@itemize has text but no @item'.
1078 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1080         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
1081         legally applies to an abstract subprogram declaration.
1082         * freeze.adb: Minor comment addition.
1084 2015-02-20  Robert Dewar  <dewar@adacore.com>
1086         * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
1087         * erroutc.adb (Set_Msg_Str): Replace _xxx.
1088         (Pre/Post/Type_Invariant) by xxx'Class.
1089         * erroutc.ads (Set_Msg_Str): Replace _xxx.
1090         (Pre/Post/Type_Invariant) by xxx'Class.
1091         * sem_prag.adb (Fix_Error): Remove special casing of
1092         Name_uType_Invariant.
1093         (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
1094         Name_uPre and Name_uPost in aspect case (done in Errout now).
1096 2015-02-20  Robert Dewar  <dewar@adacore.com>
1098         * g-alveop.adb: Minor style fixes.
1100 2015-02-20  Robert Dewar  <dewar@adacore.com>
1102         * freeze.adb (Warn_Overlay): Guard against blow up with address
1103         clause.
1105 2015-02-20  Bob Duff  <duff@adacore.com>
1107         * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
1108         for the compiler to guess whether the call is internal or external --
1109         it is always external.
1110         (Expand_Access_To_Protected_Op): For P'Access, where P
1111         is a protected subprogram, always create a pointer to the
1112         External_Subprogram.
1114 2015-02-20  Robert Dewar  <dewar@adacore.com>
1116         * a-dispat.adb, a-stcoed.ads: Minor reformatting.
1118 2015-02-20  Robert Dewar  <dewar@adacore.com>
1120         * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
1121         predicate for non-static subtype.
1122         (Build_Predicate_Functions): Do not assume subtype associated with a
1123         static predicate must be static.
1125 2015-02-20  Robert Dewar  <dewar@adacore.com>
1127         * errout.adb (Set_Msg_Node): Better handling of internal names
1128         (Set_Msg_Node): Kill message when we cannot eliminate internal name.
1129         * errout.ads: Document additional case of message deletion.
1130         * namet.adb (Is_Internal_Name): Refined to consider wide
1131         strings in brackets notation and character literals not to be
1132         internal names.
1133         * sem_ch8.adb (Find_Selected_Component): Give additional error
1134         when selector name is a subprogram whose first parameter has
1135         the same type as the prefix, but that type is untagged.
1137 2015-02-20  Robert Dewar  <dewar@adacore.com>
1139         * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
1141 2015-02-20  Tristan Gingold  <gingold@adacore.com>
1143         * opt.ads (GNAT_Mode_Config): New variable.
1144         * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
1145         to set Assertions_Enabled.
1146         * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
1147         for -gnatg.
1149 2015-02-20  Robert Dewar  <dewar@adacore.com>
1151         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
1152         comment regarding the handling of unterminated fixed-point
1153         constants.
1154         * s-valuns.ads (Scan_Raw_Unsigned): Add comments
1155         corresponding to those previously added for
1156         System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
1158 2015-02-20  Olivier Hainque  <hainque@adacore.com>
1160         * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
1162 2015-02-20  Robert Dewar  <dewar@adacore.com>
1164         * sem_prag.adb: Minor comment clarification.
1166 2015-02-20  Olivier Hainque  <hainque@adacore.com>
1168         * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
1169         * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
1170         * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
1171         (vec_ctf): Now renamings as well.
1173 2015-02-20  Robert Dewar  <dewar@adacore.com>
1175         * switch-c.adb, bindgen.adb: Minor reformatting.
1177 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1179         * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
1180         Invariant'class is allowed on an abstract type.
1182 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1184         * sem_ch3.adb (Access_Definition): If the access definition is
1185         for a protected component and defines an access to protected
1186         subprogram, do not create an itype reference for it because a
1187         full type declaration will be built in order to generate the
1188         proper equivalent type.
1189         (Analyze_Subtype_Declaration): Add information of incomplete
1190         subtypes, for Ada 2012 extended uses of incomplete types.
1192 2015-02-20  Gary Dismukes  <dismukes@adacore.com>
1194         * sem_res.adb: Minor reformatting.
1196 2015-02-20  Vincent Celier  <celier@adacore.com>
1198         * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
1199         path name for several switches --RTS, use the normalized path
1200         names.
1202 2015-02-20  Vincent Celier  <celier@adacore.com>
1204         * bindgen.adb: Minor reformatting and code reorganization.
1206 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
1208         * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
1209         * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
1210         defined by Ada 2012.
1212 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1214         * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
1215         obsolete references to RTX, nucleus, VMS.
1217 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1219         * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
1220         aspect, use name that mentions Class explicitly, rather than
1221         compiler-internal name.
1223 2015-02-20  Robert Dewar  <dewar@adacore.com>
1225         * debug.adb: Add documentation for -gnatd.2 (allow statements
1226         in decl sequences).
1227         * par-ch3.adb (P_Identifier_Declarations): Handle
1228         statement appearing where declaration expected more cleanly.
1229         (Statement_When_Declaration_Expected): Implement debug flag
1230         -gnatd.2.
1232 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
1234         * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
1235         * a-dispat.ads (Yield): Include procedure added in Ada 2012.
1236         * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
1237         * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
1238         defined by Ada 2005.
1239         * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
1240         This is the correct name for the dispatching policy (FIFO was
1241         missing).
1243 2015-02-20  Javier Miranda  <miranda@adacore.com>
1245         * sem_res.adb (Resolve_Type_Conversion): If the type of the
1246         operand is the limited-view of a class-wide type then recover
1247         the class-wide type of the non-limited view.
1249 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1251         * gcc-interface/Makefile.in: Remove references to nucleus.
1252         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
1253         extern_flag to true for Inline_Always subprograms with
1254         Intrinsic convention.
1256 2015-02-20  Yannick Moy  <moy@adacore.com>
1258         * sem_prag.ads: Minor typo in comment.
1260 2015-02-20  Pascal Obry  <obry@adacore.com>
1262         * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
1264 2015-02-20  Vincent Celier  <celier@adacore.com>
1266         * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
1267         if it exists.
1269 2015-02-20  Robert Dewar  <dewar@adacore.com>
1271         * sem_eval.ads: Minor reformatting.
1273 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1275         * freeze.adb (Size_Known): Do not set the packed size for
1276         independent type or component.
1277         (Freeze_Array_Type): Check for Independent[_Components] with packing
1278         or explicit component size clause.
1279         * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
1280         of independence pragmas only for non-GCC back-ends.
1281         * sem_ch13.adb (Initialize): Likewise for the initialization.
1282         * sem_prag.adb (Record_Independence_Check): New procedure to record an
1283         independence check in the table.
1284         (Analyze_Pragma): Use it throughout instead of doing it manually.
1285         * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
1286         independent type or component.
1288 2015-02-20  Thomas Quinot  <quinot@adacore.com>
1290         * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
1291         struct direct and readdir. This is required for NFS filesystems
1292         mounted from servers that use 64-bit cookies.
1294 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1296         * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
1297         Build_Subprogram_Renaming, to create renaming of subprogram
1298         instance in the the declaration of the wrapper package rather
1299         than in its body, so that it is available for analysis of aspects
1300         propagated from generic to instantiation.
1301         (Check_Mismatch): An actual for a formal package that is an
1302         incomplete type matches a formal type that is incomplete.
1303         (Instantiate_Package_Body): Move code that builds subprogram
1304         renaming to Analyze_Subprogram_Instantiation.
1305         (Instantiate_Type): The generated subtype is a limited view if
1306         the actual is a limited view.
1307         (Load_Parent_Of_Generic): Retrieve instance declaration from
1308         its new position within wrapper package.
1310 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1312         * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
1314 2015-02-20  Robert Dewar  <dewar@adacore.com>
1316         * s-osinte-vxworks.ads (To_Timespec): Add comment about the
1317         issue of negative arguments.
1319 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1321         * gnat1drv.adb: Minor consistency fix.
1323 2015-02-20  Pascal Obry  <obry@adacore.com>
1325         * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
1326         paths.
1328 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1330         * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
1331         renamings.
1332         * exp_ch6.adb (Expand_Call): Use back-end inlining
1333         instead of expansion for simple subprogram renamings.
1335 2015-02-20  Robert Dewar  <dewar@adacore.com>
1337         * exp_util.adb: Minor reformatting.
1339 2015-02-20  Vincent Celier  <celier@adacore.com>
1341         * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
1342         is specified several times with different values that indicates
1343         the same runtime directory.
1345 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1347         * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
1348         handle properly illegal uses of attributes on prefixes on an
1349         incomplete type, both when the type of the prefix is locally
1350         incomplete, and when it is a limited view of a type whose
1351         non-limited view is not available.
1352         (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
1353         'Address and others.
1355 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1357         * exp_ch6.adb: Fix minor typo in comment.
1359 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1361         * sinfo.ads: Add comment.
1363 2015-02-20  Olivier Hainque  <hainque@adacore.com>
1365         * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
1366         flags controlling the actual FE inlining out of pragma Inline
1367         and pragma Inline_Always.
1368         * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
1369         on -fno-inline, which disables all inlining in compilers with
1370         an Ada back-end and without back-end inlining support.
1371         * back_end.adb (Scan_Back_End_Switches): Set the Inline related
1372         flag to True on -fno-inline and leave Inline_Always alone for
1373         gcc back-ends.
1374         * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
1375         names of the Opt flags it sets.
1376         * gnat1drv.adb (Adjust_Global_Switches): Remove test on
1377         Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
1378         * sem_prag.adb (Make_Inline): Remove early return conditioned
1379         on Opt.Suppress_All_Inlining.
1380         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
1381         disable the calls to Build_Body_To_Inline otherwise triggered
1382         by pragma Inline or Inline_Always. This will prevent actual
1383         front-end inlining of the subprogram on calls.
1385 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1387         * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
1388         Abort_Undefer_Direct function.
1389         * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
1390         * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
1391         * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
1392         * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
1393         Add_Inlined_Body.
1394         * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
1395          Remove call to Register_Backend_Call and move code resetting
1396         Needs_Debug_Info on inlined subprograms to...
1397         * inline.ads (Add_Inlined_Body): Add N parameter.
1398         (Register_Backend_Call): Delete.
1399         * inline.adb (Add_Inlined_Body): ...here and simplify.
1400          Register the call with Backend_Calls directly.
1401         (Register_Backend_Call): Delete.
1402         * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
1404 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
1406         * s-stalib.ads: Fix typo.
1408 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1410         * exp_ch3.adb (Default_Initialize_Object): If the object has a
1411         delayed freeze, the actions associated with default initialization
1412         must be part of the freeze actions, rather that being inserted
1413         directly after the object declaration.
1415 2015-02-20  Robert Dewar  <dewar@adacore.com>
1417         * lib-load.adb: Minor comment update.
1419 2015-02-20  Vincent Celier  <celier@adacore.com>
1421         * prj-proc.adb (Process_Case_Construction): When there are
1422         incomplete withed projects and the case variable is unknown,
1423         skip the case construction.
1425 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1427         * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
1428         when an actual is a view conversion, either because the call is
1429         to an inherited operation, or because the actual is an explicit
1430         type conversion to an ancestor type.  Fixes ACATS 4.0D: C732001
1432 2015-02-20  Robert Dewar  <dewar@adacore.com>
1434         * einfo.ads: Minor comment updates Fix missing pragma Inline
1435         for Set_Partial_View_Has_Unknown_Discr.
1436         * einfo.adb (Write_Entity_Flags): Add missing entry for
1437         Partial_View_Has_Unknown_Discr.
1438         * sem_ch3.adb: Minor reformatting.
1440 2015-02-20  Vincent Celier  <celier@adacore.com>
1442         * opt.ads: Minor cleanup: remove mention of gprmake.
1443         * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
1444         * s-tataat.adb: Do not call System.Tasking.Self but directly
1445         System.Task_Primitives.Operations.Self.
1447 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
1449         * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
1450         sphinx in the doc directory.
1451         * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
1453 2015-02-20  Robert Dewar  <dewar@adacore.com>
1455         * sem_res.adb: Minor reformatting.
1456         * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
1457         building spec.
1458         * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
1459         aspects from circuitry setting delay required to false if the
1460         argument is an integer literal.
1462 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
1464         * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr):  New flag
1465         on type entities, to enforce AI12-0133: default initialization
1466         of types whose partial view has unknown discriminants does not
1467         get an invariant check, because clients of the unit can never
1468         declare objects of such types.
1469         * sem_ch3.adb (Find_Type_Name); Set new flag
1470         Partial_View_Has_Unknown_Discr when needed.
1471         * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
1472         generation of invariant call on default-initialized object.
1474 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1476         * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
1477         if the parameter either is passed by reference or if the alignment
1478         would be lowered.
1480 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1482         * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
1483         detect primitive operations of tagged and untagged types.
1485 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1487         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
1488         sets in presence of derivation for subprogram types.
1490 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
1492         * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
1493         present in the same context as the declaration.
1495 2015-02-07  Jakub Jelinek  <jakub@redhat.com>
1497         PR middle-end/64340
1498         * gcc-interface/trans.c (gigi): Recreate optimization_default_node
1499         and optimization_current_node after tweaking global_options.
1501 2015-02-05  Robert Dewar  <dewar@adacore.com>
1503         * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
1504         prj-nmsc.adb: Minor reformatting.
1506 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1508         * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
1509         of a protected type may not be available, so to check conformance
1510         with an interface type, examine the interface list in the type
1511         declaration directly.
1512         (Write_Overloads): Improve information for indirect calls,
1513         for debugger use.
1515 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1517         * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
1518         expansion activity in ASIS mode.
1520 2015-02-05  Javier Miranda  <miranda@adacore.com>
1522         * errout.adb (Error_Msg_PT): Add missing error.
1523         * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
1524         RM rule.  Code cleanup.
1525         * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
1526         anonymous access types.  Found working on the tests. Code cleanup.
1528 2015-02-05  Vincent Celier  <celier@adacore.com>
1530         * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
1531         when there are incomplete withs.
1532         * prj-nmsc.adb (Process_Naming): Do not try to get the value
1533         of an element when it is nil.
1534         (Check_Naming): Do not check a nil suffix for illegality
1535         * prj-proc.adb (Expression): Do not process an empty term.
1536         * prj-strt.adb (Attribute_Reference): If attribute cannot be
1537         found, parse a possible index to avoid cascading errors.
1539 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1541         * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
1542         for an access_to_subprogram declaration is not a derived type.
1544 2015-02-05  Robert Dewar  <dewar@adacore.com>
1546         * errout.adb (Error_Msg_Internal): For non-serious error set
1547         Fatal_Error to Ignored.
1548         * lib-load.adb (Load_Unit): Minor comment updates.
1549         * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
1550         setting from with'ed unit to with'ing unit.
1551         * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
1552         of ambiguity.
1554 2015-02-05  Yannick Moy  <moy@adacore.com>
1556         * sem_prag.adb, par-prag.adb: Minor code clean up.
1558 2015-02-05  Yannick Moy  <moy@adacore.com>
1560         * par-prag.adb (Pragma_Warnings): Update for extended form
1561         of pragma Warnings. The "one" argument case may now have 2 or
1562         3 arguments.
1563         * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
1564         extended form of pragma Warnings. Pragma with tool name is either
1565         rewritten as null or as an equivalent form without tool name,
1566         before reanalysis.
1567         * snames.ads-tmpl (Name_Gnatprove): New name.
1569 2015-02-05  Robert Dewar  <dewar@adacore.com>
1571         * sem_ch13.adb (Add_Invariants): Don't assume invariant is
1572         standard Boolean.
1573         * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
1574         condition is standard Boolean, it can be non-standard derived
1575         Boolean.
1577 2015-02-05  Robert Dewar  <dewar@adacore.com>
1579         * checks.adb (Enable_Range_Check): Disconnect attempted
1580         optimization for the case of range check for subscript of
1581         unconstrained array.
1583 2015-02-05  Robert Dewar  <dewar@adacore.com>
1585         * par-ch13.adb (With_Present): New function
1586         (Aspect_Specifications_Present): Handle WHEN in place of WITH
1587         (Get_Aspect_Specifications): Comment update.
1588         * par.adb: Comment updates.
1590 2015-02-05  Robert Dewar  <dewar@adacore.com>
1592         * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
1593         * frontend.adb (Frontend): New setting of Fatal_Error.
1594         * lib-load.adb (Create_Dummy_Package_Unit): New setting of
1595         Fatal_Error.
1596         (Load_Main_Source): New setting of Fatal_Error
1597         (Load_Unit): New setting of Fatal_Error.
1598         * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
1599         Fatal_Error.
1600         (Ensure_System_Dependency): New setting of Fatal_Error.
1601         * lib.adb (Fatal_Error): New setting of Fatal_Error
1602         (Set_Fatal_Error): New setting of Fatal_Error.
1603         * lib.ads: New definition of Fatal_Error and associated routines.
1604         * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
1605         * par-load.adb (Load): New setting of Fatal_Error.
1606         * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
1607         * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
1608         Fatal_Error.
1609         (Optional_Subunit): New setting of Fatal_Error.
1610         (Analyze_Proper_Body): New setting of Fatal_Error.
1611         (Load_Needed_Body): New setting of Fatal_Error.
1613 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1615         * sem_res.adb (Resolve_Call): If the function being called has
1616         out parameters do not check for language version if the function
1617         comes from a predefined unit, as those are always compiled in
1618         Ada 2012 mode.
1620 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
1622         * sem_ch3.adb (Process_Full_View): Verify that the full view
1623         of a type extension must carry an explicit limited keyword if
1624         the partial view does (RM 7.3 (10.1)).
1626 2015-02-05  Robert Dewar  <dewar@adacore.com>
1628         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
1629         sem_warn.ads: Minor reformatting.
1630         * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
1631         deleted by -gnatI.
1632         * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
1633         error for abstract type.
1635 2015-02-05  Yannick Moy  <moy@adacore.com>
1637         * opt.ads (Warn_On_Suspicious_Contract): Update comment
1638         describing use.
1639         * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
1640         suspicious uses of 'Update.
1641         * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
1642         function issues warning on suspicious uses of 'Update.
1643         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
1644         package spec and body as SPARK_Mode Off.
1646 2015-02-05  Robert Dewar  <dewar@adacore.com>
1648         * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
1649         (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
1650         (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
1651         * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
1652         for exported entity.
1654 2015-02-05  Hristian Kirtchev  <kirtchev@adacore.com>
1656         * sem_prag.adb (Check_Pragma_Conformance): Add
1657         local variable Arg. Ensure that all errors are associated with
1658         the pragma if it appears without an argument. Add comments on
1659         various cases.
1661 2015-02-05  Robert Dewar  <dewar@adacore.com>
1663         * lib-xref.adb: Minor reformatting.
1665 2015-02-05  Tristan Gingold  <gingold@adacore.com>
1667         PR ada/64349da/64349
1668         * env.c: Fix thinko: handle Darwin case before default one.
1670 2015-01-30  Robert Dewar  <dewar@adacore.com>
1672         * a-assert.adb: Minor reformatting.
1673         * sem_ch13.adb: Minor comment clarification.
1674         * types.ads: Minor comment update.
1675         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
1676         when we have a predicate that is nothing but an inherited dynamic
1677         predicate.
1679 2015-01-30  Jerome Guitton  <guitton@adacore.com>
1681         * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
1682         include cert link spec.
1684 2015-01-30  Robert Dewar  <dewar@adacore.com>
1686         * einfo.ads: Minor comment fix.
1687         * freeze.adb (Freeze_Profile): Add test for suspicious import
1688         in pure unit.
1689         * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
1690         use in Pure unit is now moved to Freeze (to properly catch
1691         Pure_Function exemption).
1693 2015-01-30  Bob Duff  <duff@adacore.com>
1695         * sem_res.ads: Minor comment fix.
1696         * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
1697         check both operands of an operator.
1699 2015-01-30  Yannick Moy  <moy@adacore.com>
1701         * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
1702         policy for Pre to Ignore.
1703         (Assert): Add precondition.
1705 2015-01-30  Robert Dewar  <dewar@adacore.com>
1707         * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
1708         Pure unit.
1709         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
1710         documentation for some special cases of invalid attempts at
1711         based integers.
1713 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1715         * errout.ads: Minor reformatting.
1717 2015-01-30  Yannick Moy  <moy@adacore.com>
1719         * inline.adb (Process_Formals): Use the sloc of
1720         the inlined node instead of the sloc of the actual parameter,
1721         when replacing formal parameters by the actual one.
1723 2015-01-30  Arnaud Charlet  <charlet@adacore.com>
1725         * g-expect.adb (Get_Command_Output): Use infinite timeout when
1726         calling Expect.
1728 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1730         * sem_ch12.adb (Analyze_Associations): If an in-parameter is
1731         defaulted in an instantiation, add an entry in the list of actuals
1732         to indicate the default value of the formal (as is already done
1733         for defaulted subprograms).
1735 2015-01-30  Javier Miranda  <miranda@adacore.com>
1737         * errout.adb (Error_Msg_PT): Minor error phrasing update.
1739 2015-01-30  Robert Dewar  <dewar@adacore.com>
1741         * sem_warn.adb (Warn_On_Known_Condition): Improve error message
1742         for object case.
1744 2015-01-30  Pierre-Marie de Rodat  <derodat@adacore.com>
1746         * exp_dbug.adb (Get_Encoded_Name): When
1747         -fgnat-encodings=minimal, do not generate names for biased types.
1749 2015-01-30  Tristan Gingold  <gingold@adacore.com>
1751         PR ada/64349
1752         * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
1754 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1756         * freeze.adb: Minor reformatting.
1758 2015-01-30  Javier Miranda  <miranda@adacore.com>
1760         * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
1761         improve its documentation.
1762         * errout.adb (Error_Msg_PT): Improve the error message.
1763         * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
1764         (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
1765         * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
1767 2015-01-30  Robert Dewar  <dewar@adacore.com>
1769         * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
1770         message for False case.
1772 2015-01-30  Doug Rupp  <rupp@adacore.com>
1774         * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
1775         * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
1776         kernel.
1778 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1780         * sem_attr.adb (Declared_Within_Generic_Unit):
1781         New function to test whether an entity is declared within the
1782         declarative region of a given generic unit.
1783         (Resolve_Attribute): For checking legality of subprogram'Access within
1784         a generic unit, call new Boolean function Declared_Within_Generic_Unit
1785         instead of simply comparing the results of Enclosing_Generic_Unit on
1786         the prefix and access type.  Correct minor comment typos.
1788 2015-01-30  Robert Dewar  <dewar@adacore.com>
1790         * freeze.adb, exp_util.ads: Update comment.
1791         * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
1792         * sem_util.adb: Minor: fix typo.
1794 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1796         * sem_attr.adb (Analyze_Attribute): Ensure that
1797         the check concerning Refined_Post takes precedence over the
1798         other cases.
1800 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
1802         * sem_prag.adb: Minor typo fixes and reformatting.
1804 2015-01-30  Yannick Moy  <moy@adacore.com>
1806         * sem_attr.adb: Code clean up.
1808 2015-01-30  Robert Dewar  <dewar@adacore.com>
1810         * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
1811         * ali.ads (Unit_Record): Add new field Serious_Errors.
1812         * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
1813         attribute in U line.
1814         * lib-writ.ads: New attribute SE (serious erors) in unit line.
1816 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
1818         * einfo.adb Update the usage of attributes Entry_Bodies_Array,
1819         Lit_Indexes, Scale_Value, Storage_Size_Variable,
1820         String_Literal_Low_Bound along associated routines and
1821         Write_FieldX_Name.
1822         (Pending_Access_Types): New routine.
1823         (Set_Pending_Access_Types): New routine.
1824         (Write_Field15_Name): Add an entry for Pending_Access_Types.
1825         * einfo.ads Add new attribute Pending_Access_Types along
1826         with usage in nodes.  Update the usage of attributes
1827         Entry_Bodies_Array, Lit_Indexes, Scale_Value,
1828         Storage_Size_Variable, String_Literal_Low_Bound.
1829         (Pending_Access_Types): New routine along with pragma Inline.
1830         (Set_Pending_Access_Types): New routine along with pragma Inline.
1831         * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
1832         Ins_Node. Determine the insertion node for anonynous access type
1833         that acts as a component type of an array. Update the call to
1834         Build_Finalization_Master.
1835         (Expand_Freeze_Record_Type): Update
1836         the calls to Build_Finalization_Master.
1837         (Freeze_Type): Remove
1838         local variable RACW_Seen. Factor out the code that deals with
1839         remote access-to-class-wide types. Create a finalization master
1840         when the designated type contains a private component. Fully
1841         initialize all pending access types.
1842         (Process_RACW_Types): New routine.
1843         (Process_Pending_Access_Types): New routine.
1844         * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
1845         needs to set primitive Finalize_Address.
1846         (Expand_N_Allocator): Allocation no longer sets primitive
1847         Finalize_Address.
1848         * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
1849         Update the call to Build_Finalization_Master.
1850         (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
1851         needs to set primitive Finalize_Address.
1852         * exp_ch7.adb (Add_Pending_Access_Type): New routine.
1853         (Build_Finalization_Master): New parameter profile. Associate
1854         primitive Finalize_Address with the finalization master if the
1855         designated type has been frozen, otherwise treat the access
1856         type as pending. Simplify the insertion of the master and
1857         related initialization code.
1858         (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
1859         abstract types.
1860         (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
1861         Simplify the implementation.
1862         * exp_ch7.ads (Build_Finalization_Master): New parameter profile
1863         along with comment on usage.
1864         (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
1865         the comment on usage.
1866         * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
1867         Finalize_Address to retrieve the primitive.
1868         (Finalize_Address): New routine.
1869         (Find_Finalize_Address): Removed.
1870         * exp_util.ads (Finalize_Address): New routine.
1871         * freeze.adb (Freeze_All): Remove the generation of finalization
1872         masters.
1873         * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
1874         pending access types from the partial to the full view.
1876 2015-01-30  Robert Dewar  <dewar@adacore.com>
1878         * sem_disp.adb: Minor reformatting.
1879         * sem_disp.ads: Documentation update.
1881 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1883         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
1884         or a function call, return True if type is class-wide.
1885         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
1886         Apply RM 4.5.7 (17/3): all or none of the dependent expression
1887         of a conditional expression must be dynamically tagged.
1889 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
1891         * sem_ch6.adb (Analyze_Function_Return): In an extended return
1892         statement, apply accessibility check to result object when there
1893         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
1895 2015-01-30  Robert Dewar  <dewar@adacore.com>
1897         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
1898         Boolean for case where ELSE is omitted.
1899         * sem_res.adb: Minor reformatting.
1901 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1903         Fix build under cygwin/64.
1904         * adaint.h: Add check for __CYGWIN__.
1905         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
1907 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1909         PR ada/64640
1910         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
1911         * mingw32.h: Don't include <tchar.h> under cygwin.
1912         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
1914 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
1916         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
1917         (DEF_FUNCTION_TYPE_VAR_12): New macros.
1919 2015-01-09  Michael Collison  <michael.collison@linaro.org>
1921         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
1922         vec.h, double-int.h, input.h, alias.h, symtab.h,
1923         fold-const.h, wide-int.h, and inchash.h due to
1924         flattening of tree.h.
1925         * gcc-interface/decl.c: Ditto.
1926         * gcc-interface/misc.c: Ditto.
1927         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
1928         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
1929         fold-const.h, wide-int.h, and inchash.h due to
1930         flattening of tree.h.
1931         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
1932         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
1933         fold-const.h, wide-int.h, inchash.h due to
1934         flattening of tree.h.
1935         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
1936         vec.h, double-int.h, input.h, alias.h, symtab.h,
1937         fold-const.h, wide-int.h, and inchash.h due to
1938         flattening of tree.h.
1939         * gcc-interface/utils2.c: Ditto.
1941 2015-01-07  Robert Dewar  <dewar@adacore.com>
1943         * sem_warn.adb (Check_One_Unit): Don't give unused entities
1944         warning for a package which is used as a generic parameter.
1946 2015-01-07  Bob Duff  <duff@adacore.com>
1948         * usage.adb (Usage): Correct documentation of
1949         -gnatw.f switches.
1951 2015-01-07  Robert Dewar  <dewar@adacore.com>
1953         * s-fileio.adb: Minor reformatting.
1955 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1957         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
1958         access to subprogram, replace its formals with new entities when
1959         building the object declaration, both if actual is present and
1960         when it is defaulted.
1962 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1964         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
1965         conversion and type of expression has invariant, apply invariant
1966         check on expression.
1968 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1970         * sem_ch3.adb (Create_Constrained_Components): A call to
1971         Gather_Components may detect an error if an inherited discriminant
1972         that controls a variant is non-static.
1973         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
1974         Gather_Components may report an error if an inherited discriminant
1975         in a variant in non-static.
1976         * sem_util.adb (Gather_Components): If a non-static discriminant
1977         is inherited do not report error here, but let caller handle it.
1978         (Find_Actual): Small optimization.
1980 2015-01-07  Bob Duff  <duff@adacore.com>
1982         * usage.adb (Usage): Document -gnatw.f switch.
1984 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1986         * sem_ch12.adb: Code clean up and minor reformatting.
1988 2015-01-07  Robert Dewar  <dewar@adacore.com>
1990         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
1991         Raise_Accessibility_Error call.
1992         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
1993         on handling of invalid digits in based constants.
1994         * s-fatgen.ads: Minor reformatting.
1995         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
1996         Avoid noting bogus modification for Valid test.
1997         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
1998         * einfo.ads: Minor reformatting.
1999         * sem_warn.adb: Minor comment clarification.
2000         * sem_ch12.adb: Minor reformatting.
2002 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2004         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
2005         over static predicates when the loop parameter specification
2006         carries a Reverse indicator.
2008 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2010         * sem_ch12.adb (Instantiate_Object): If formal has a default,
2011         actual is missing and formal has an anonymous access type, copy
2012         access definition in full so that tree for instance is properly
2013         formatted for ASIS use.
2015 2015-01-07  Bob Duff  <duff@adacore.com>
2017         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
2018         for P'Access, where P is a subprogram in the same package as
2019         the P'Access, and the P'Access is evaluated at elaboration
2020         time, and occurs before the body of P. For example, "X : T :=
2021         P'Access;" would allow a subsequent call to X.all to be an
2022         access-before-elaboration error; hence the warning. This warning
2023         is enabled by the -gnatw.f switch.
2024         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
2025         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
2026         * gnat_ugn.texi: Document the new warning.
2028 2015-01-07  Johannes Kanig  <kanig@adacore.com>
2030         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
2031         cross ref files.
2033 2015-01-07  Robert Dewar  <dewar@adacore.com>
2035         * s-taprop-linux.adb, clean.adb: Minor reformatting.
2037 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
2039         * s-tassta.adb: Relax some overzealous assertions.
2041 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2043         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
2044         view of a type is legal when context is a thunk generated for
2045         operation inherited from an interface.
2046         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
2047         a thunk and return type is an incomplete type do not continue
2048         expansion; thunk will be fully elaborated when generating code.
2050 2015-01-07  Doug Rupp  <rupp@adacore.com>
2052         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
2053         (QueryPerformanceFrequency): New imported procedure.
2054         * s-taprop-mingw.adb (RT_Resolution): Call above and return
2055         resolution vice a hardcoded value.
2056         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
2057         resolution vice a hardcoded value.
2058         * s-linux-android.ads (clockid_t): New subtype.
2059         * s-osinte-aix.ads (clock_getres): New imported subprogram.
2060         * s-osinte-android.ads (clock_getres): Likewise.
2061         * s-osinte-freebsd.ads (clock_getres): Likewise.
2062         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
2063         * s-osinte-darwin.ads (clock_getres): New subprogram.
2064         * s-osinte-darwin.adb (clock_getres): New subprogram.
2065         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
2066         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
2067         calculate resolution vice hard coded value.
2069 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2071         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
2072         limited view, use non-limited view when available to create
2073         equivalent record type.
2075 2015-01-07  Vincent Celier  <celier@adacore.com>
2077         * gnatcmd.adb: Remove command Sync and any data and processing
2078         related to this command. Remove project processing for gnatstack.
2079         * prj-attr.adb: Remove package Synchonize and its attributes.
2081 2015-01-07  Vincent Celier  <celier@adacore.com>
2083         * clean.adb: Minor error message change.
2085 2015-01-07  Tristan Gingold  <gingold@adacore.com>
2087         PR ada/64349  
2088         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
2090 2015-01-07  Javier Miranda  <miranda@adacore.com>
2092         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
2093         protect the frontend against never ending recursion caused by
2094         circularities in the sources.
2096 2015-01-07  Robert Dewar  <dewar@adacore.com>
2098         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
2099         exp_ch3.adb: Minor reformatting.
2101 2015-01-07  Doug Rupp  <rupp@adacore.com>
2103         * s-linux.ads (clockid_t): New subtype.
2104         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
2105         (clockid_t): New subtype.
2106         (clock_getres): Import system call.
2107         * s-taprop-linux.adb (System.OS_Constants): With and rename.
2108         (RT_Resolution): Remove
2109         hardcoded value and call clock_getres.
2110         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
2111         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
2113 2015-01-07  Robert Dewar  <dewar@adacore.com>
2115         * sem_warn.adb (Check_One_Unit): Guard against context item
2116         with no Entity field.
2118 2015-01-07  Vincent Celier  <celier@adacore.com>
2120         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
2121         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
2123 2015-01-07  Vincent Celier  <celier@adacore.com>
2125         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
2126         errors/warnings in the first parsing of the project files,
2127         to display the warnings when there is no errors.
2129 2015-01-07  Tristan Gingold  <gingold@adacore.com>
2131         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
2133 2015-01-07  Doug Rupp  <rupp@adacore.com>
2135         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
2136         value from Int_Lock as parameter to Int_Unlock.
2137         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
2138         * s-vxwext.ads (Int_Unlock): Likewise.
2139         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
2140         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
2141         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
2142         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
2144 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
2146         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
2147         keep ___XP suffixes
2149 2015-01-07  Tristan Gingold  <gingold@adacore.com>
2151         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
2152         handle overlap.
2154 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
2156         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
2157         automatically set No_Strict_Aliasing on access types.
2158         * fe.h (No_Strict_Aliasing_CP): Declare.
2159         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
2160         No_Strict_Aliasing_CP is set.
2162 2015-01-07  Johannes Kanig  <kanig@adacore.com>
2164         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
2165         not build function wrapper in gnatprove mode when the package
2166         is externally axiomatized.
2168 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
2170         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
2171         intermediate computations when the parameters have different signs.
2173 2015-01-07  Javier Miranda  <miranda@adacore.com>
2175         * exp_ch3.adb (Build_Init_Procedure): For derived types,
2176         improve the code which takes care of identifying and moving to
2177         the beginning of the init-proc the call to the init-proc of the
2178         parent type.
2180 2015-01-07  Olivier Hainque  <hainque@adacore.com>
2182         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
2183         Elaborate the expression as part of the same stmt group as the actions.
2185 2015-01-07  Robert Dewar  <dewar@adacore.com>
2187         * sem_ch3.adb: Minor error message change.
2189 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2191         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
2192         Following AI05-028, the pragam applies legally to any composite type.
2194 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
2196         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
2197         (sigwait, sigwaitinfo): Removed, not needed after all on any
2198         VxWorks configurations.
2200 2015-01-07  Robert Dewar  <dewar@adacore.com>
2202         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
2204 2015-01-07  Javier Miranda  <miranda@adacore.com>
2206         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
2207         generation of accessibility check.
2209 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
2211         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
2212         illegal completion from a class- wide type, set etype of the
2213         derived type properly to prevent cascaded errors.
2215 2015-01-07  Robert Dewar  <dewar@adacore.com>
2217         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
2218         reformatting.
2220 2015-01-07  Robert Dewar  <dewar@adacore.com>
2222         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
2223         New procedure.
2224         (OK_No_Use_Of_Entity_Name): New function.
2225         (Set_Restriction_No_Use_Of_Entity): New procedure.
2226         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
2227         New procedure.
2228         (OK_No_Use_Of_Entity_Name): New function.
2229         (Set_Restriction_No_Use_Of_Entity): New procedure.
2230         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
2231         No_Use_Of_Entity.
2232         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2233         Add processing for new restriction No_Use_Of_Entity.
2235 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
2237         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
2238         component type as to Has_Atomic_Components type.  Remove useless
2239         test on Is_Aliased component type.
2241 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
2243         * alloc.ads Alphabetize several declarations. Add constants
2244         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
2245         * atree.adb Add with and use clauses for Opt.
2246         (Allocate_Initialize_Node): Mark a node as ignored Ghost
2247         if it is created in an ignored Ghost region.
2248         (Ekind_In): New variant.
2249         (Is_Ignored_Ghost_Node): New routine.
2250         (Set_Is_Ignored_Ghost_Node): New routine.
2251         * atree.adb Aplhabetize several subprograms declarations. Flag
2252         Spare0 is now known as Is_Ignored_Ghost_Node.
2253         (Ekind_In): New variant.
2254         (Is_Ignored_Ghost_Node): New routine.
2255         (Set_Is_Ignored_Ghost_Node): New routine.
2256         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
2257         (Contains_Ignored_Ghost_Code): New routine.
2258         (Set_Contains_Ignored_Ghost_Code): New routine.
2259         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
2260         It is now possible to set this property on an unanalyzed entity.
2261         (Write_Entity_Flags): Output the status of flag
2262         Contains_Ignored_Ghost_Code.
2263         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
2264         usage in nodes.
2265         (Contains_Ignored_Ghost_Code): New routine
2266         along with pragma Inline.
2267         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
2268         * exp_ch3.adb Add with and use clauses for Ghost.
2269         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
2270         Set the Ghost_Mode in effect.
2271         (Restore_Globals): New routine.
2272         * exp_ch7.adb (Process_Declarations): Do not process a context
2273         that invoves an ignored Ghost entity.
2274         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
2275         construct that has been rewritten as a null statement.
2276         * exp_disp.adb Add with and use clauses for Ghost.
2277         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
2278         the Ghost_Mode in effect.
2279         (Restore_Globals): New routine.
2280         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
2281         does not require any clean up. Add two missing cases that deal
2282         with block statements.
2283         * freeze.adb Add with and use clauses for Ghost.
2284         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
2285         Set the Ghost_Mode in effect.
2286         (Restore_Globals): New routine.
2287         * frontend.adb Add with and use clauses for Ghost. Remove any
2288         ignored Ghost code from all units that qualify.
2289         * ghost.adb New unit.
2290         * ghost.ads New unit.
2291         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
2292         the table in package Ghost.
2293         * lib.ads: Alphabetize several subprogram declarations.
2294         * lib-xref.adb (Output_References): Do not generate reference
2295         information for ignored Ghost entities.
2296         * opt.ads Add new type Ghost_Mode_Type and new global variable
2297         Ghost_Mode.
2298         * rtsfind.adb (Load_RTU): Provide a clean environment when
2299         loading a runtime unit.
2300         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
2301         entry/exit as the node may set a different mode.
2302         (Do_Analyze):
2303         Capture/restore the value of Ghost_Mode on entry/exit as the
2304         unit may be withed from a unit with a different Ghost mode.
2305         * sem_ch3.adb Add with and use clauses for Ghost.
2306         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
2307         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
2308         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
2309         the entity as Ghost when there is a Ghost_Mode in effect.
2310         (Array_Type_Declaration): The implicit base type inherits the
2311         "ghostness" from the array type.
2312         (Derive_Subprogram): The
2313         alias inherits the "ghostness" from the parent subprogram.
2314         (Make_Implicit_Base): The implicit base type inherits the
2315         "ghostness" from the parent type.
2316         * sem_ch5.adb Add with and use clauses for Ghost.
2317         (Analyze_Assignment): Set the Ghost_Mode in effect.
2318         * sem_ch6.adb Add with and use clauses for Ghost.
2319         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
2320         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
2321         Set the Ghost_Mode in effect. Mark the entity as Ghost when
2322         there is a Ghost_Mode in effect.
2323         * sem_ch7.adb Add with and use clauses for Ghost.
2324         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
2325         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
2326         effect. Mark the entity as Ghost when there is a Ghost_Mode
2327         in effect.
2328         * sem_ch8.adb Add with and use clauses for Ghost.
2329         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
2330         Analyze_Object_Renaming, Analyze_Package_Renaming,
2331         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
2332         the entity as Ghost when there is a Ghost_Mode in effect.
2333         (Find_Type): Check the Ghost context of a type.
2334         * sem_ch11.adb Add with and use clauses for Ghost.
2335         (Analyze_Exception_Declaration): Set the Ghost_Mode in
2336         effect. Mark the entity as Ghost when there is a Ghost_Mode
2337         in effect.
2338         * sem_ch12.adb Add with and use clauses for Ghost.
2339         (Analyze_Generic_Package_Declaration,
2340         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
2341         Mark the entity as Ghost when there is a Ghost_Mode in effect.
2342         * sem_prag.adb Add with and use clauses for Ghost.
2343         (Analyze_Pragma): Ghost-related checks are triggered when there
2344         is a Ghost mode in effect.
2345         (Create_Abstract_State): Mark the
2346         entity as Ghost when there is a Ghost_Mode in effect.
2347         * sem_res.adb Add with and use clauses for Ghost.
2348         (Check_Ghost_Context): Removed.
2349         * sem_util.adb (Check_Ghost_Completion): Removed.
2350         (Check_Ghost_Derivation): Removed.
2351         (Incomplete_Or_Partial_View):
2352         Add a guard in case the entity has not been analyzed yet
2353         and does carry a scope.
2354         (Is_Declaration): New routine.
2355         (Is_Ghost_Entity): Removed.
2356         (Is_Ghost_Statement_Or_Pragma):
2357         Removed.
2358         (Is_Subject_To_Ghost): Removed.
2359         (Set_Is_Ghost_Entity):
2360         Removed.
2361         (Within_Ghost_Scope): Removed.
2362         * sem_util.adb (Check_Ghost_Completion): Removed.
2363         (Check_Ghost_Derivation): Removed.
2364         (Is_Declaration): New routine.
2365         (Is_Ghost_Entity): Removed.
2366         (Is_Ghost_Statement_Or_Pragma): Removed.
2367         (Is_Subject_To_Ghost): Removed.
2368         (Set_Is_Ghost_Entity): Removed.
2369         (Within_Ghost_Scope): Removed.
2370         * sinfo.ads Add a section on Ghost mode.
2371         * treepr.adb (Print_Header_Flag): New routine.
2372         (Print_Node_Header): Factor out code. Output flag
2373         Is_Ignored_Ghost_Node.
2374         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
2376 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2378         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
2379         true test and unreachable 'else' arm.
2381 2015-01-06  Vincent Celier  <celier@adacore.com>
2383         * prj-conf.adb (Check_Target): Improve error message when
2384         there are mismatched targets between the on in the configuration
2385         project file and the specified one, either in the main project
2386         file or in the --target= switch.
2388 2015-01-06  Pascal Obry  <obry@adacore.com>
2390         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
2391         Install_Name attribute definitions.
2393 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2395         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
2396         generated Import pragma for the internal imported procedure does
2397         not come from an aspect, so that Is_Imported can be properly
2398         set for it.
2400 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
2402         * sem_ch12.adb (Might_Inline_Subp): Record whether
2403         any subprograms in the generic package are marked with
2404         pragma Inline_Always (setting flag Has_Inline_Always).
2405         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
2406         alongside existing test of Front_End_Inlining as alternative
2407         conditions for setting Inline_Now. Also add test of
2408         Has_Inline_Always along with Front_End_Inlining test as an
2409         alternative condition for setting Needs_Body to False.
2411 2015-01-06  Tristan Gingold  <gingold@adacore.com>
2413         * i-cpoint.adb (Copy_Array): Handle overlap.
2415 2015-01-06  Pascal Obry  <obry@adacore.com>
2417         * bindgen.adb: Minor style fix.
2419 2015-01-06  Robert Dewar  <dewar@adacore.com>
2421         * sem_util.ads, sem_util.adb: Minor reformatting.
2423 2015-01-06  Vincent Celier  <celier@adacore.com>
2425         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
2426         with flags before parsing the projects.
2427         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
2428         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
2429         to True in the flags, when Ignore_Missing_With is True and an
2430         imported project cannot be found.
2431         * prj-proc.adb (Expression): When there are incomplete withs and
2432         a variable or attribute is not found, set the variable/attribute
2433         to unknown.
2434         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
2435         defaulted to False.
2437 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
2439         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
2440         prj-err.adb: Add new switch --no-command-line.
2442 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2444         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
2446 2015-01-06  Robert Dewar  <dewar@adacore.com>
2448         * sem_ch11.adb: Minor reformatting.
2450 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2452         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
2453         Build_Array_Aggr_Code, used to initialized components covered
2454         by a box association. If the component type is scalar and has
2455         a default aspect, use it to initialize such components.
2457 2015-01-06  Pascal Obry  <obry@adacore.com>
2459         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
2460         control the setup of the exception handler.
2461         * initialize.c: Remove unused declaration.
2462         * bindgen.adb: Always call __gnat_runtime_initialize and pass
2463         whether the exeception handler must be set or not.
2465 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2467         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
2468         order to native from default, make sure to also adjust bit order.
2469         * exp_aggr.adb: Minor reformatting.
2471 2015-01-06  Robert Dewar  <dewar@adacore.com>
2473         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
2474         s-valrea.adb, s-valrea.ads: Add some additional guards for
2475         Str'Last = Positive'Last.
2477 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2479         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
2480         subprograms.
2482 2015-01-06  Javier Miranda  <miranda@adacore.com>
2484         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
2486 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2488         * sem_util.ads: Minor reformatting.
2489         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
2490         (In_RCI_Declaration) Return to old name, as proper checking of
2491         entity being in the visible part depends on entity kind and must
2492         be done by the caller.
2494 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2496         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
2497         for operators in SPARK.
2499 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2501         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
2502         expression in an others association before making copies for
2503         separate resolution and accessibility checks. This ensures that
2504         the type of the expression is available to ASIS in all cases,
2505         in particular if the expression is itself an aggregate.
2507 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2509         * einfo.ads (Has_Independent_Components): Document extended
2510         usage.
2511         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
2512         (Set_Has_Independent_Components): Adjust assertion.
2513         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
2514         for pragma Atomic_Components.  Set Has_Independent_Components
2515         on the object instead of the type for an object declaration with
2516         pragma Independent_Components.
2518 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2520         * set_targ.adb (Read_Target_Dependent_Values): Set
2521         Long_Double_Index when "long double" is read.
2522         (elaboration code): Register_Back_End_Types only when not reading from
2523         config files. Doing otherwise is pointless and error prone.
2525 2015-01-06  Robert Dewar  <dewar@adacore.com>
2527         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
2529 2015-01-06  Robert Dewar  <dewar@adacore.com>
2531         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
2532         Str'Last = Positive'Last.
2534 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2536         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
2537         where the non-limited type is a generic actual and appears as
2538         a subtype of the non-limited view of the other.
2539         * freeze.adb (Build_Renamed_Body): If the return type of the
2540         declaration that is being completed is a limited view and the
2541         non-limited view is available, use it in the specification of
2542         the generated body.
2544 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2546         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
2547         incomplete view, the type of the classwide type common to both
2548         views is the type being declared.
2550 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2552         * einfo.ads (Is_Independent): Further document extended usage.
2554 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
2556         * einfo.ads (Is_Independent): Document extended usage.
2557         * einfo.adb (Is_Independent): Remove obsolete assertion.
2558         (Set_Is_Independent): Likewise.
2559         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
2560         (Process_Atomic_Independent_Shared_Volatile): ...this.
2561         Deal with pragma Independent here.
2562         (Analyze_Pragma): Adjust
2563         to above renaming and also invoke it for pragma Independent.
2564         Adjust comment for Independent_Components.
2566 2015-01-06  Robert Dewar  <dewar@adacore.com>
2568         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
2569         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
2571 2015-01-06  Robert Dewar  <dewar@adacore.com>
2573         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
2574         = Positive'Last.
2575         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
2576         Str'Last = Positive'Last.
2578 2015-01-06  Robert Dewar  <dewar@adacore.com>
2580         * sem_prag.adb (Process_Inline): Remove redundant construct
2581         warning (-gnatw.r) for an ineffective pragma Inline.
2583 2015-01-06  Robert Dewar  <dewar@adacore.com>
2585         * s-valint.adb: Fix typo in last checkin.
2586         * s-valuns.adb (Value_Unsigned): More efficient fix for
2587         Positive'Last case.
2588         * sem_attr.adb (Analyze_Attribute): Minor reformatting
2589         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
2591 2015-01-06  Robert Dewar  <dewar@adacore.com>
2593         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
2594         Str'Last = Positive'Last
2596 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2598         * xoscons.adb: Display exception information and return non-zero
2599         exit status in top level exception handler.
2601 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2603         * sem_ch8.adb: Code clean up.
2605 2015-01-06  Tristan Gingold  <gingold@adacore.com>
2607         * targparm.ads: Remove obsolete comment.
2609 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2611         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
2612         constructing a ref to variable, update inner_const_flag from the
2613         variable TREE_READONLY attribute.
2614         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
2615         definition.
2616         (get_target_float_size): Remove.
2617         (get_target_double_size): Remove.
2618         (get_target_long_double_size): Remove.
2620 2015-01-06  Pascal Obry  <obry@adacore.com>
2622         * adaint.c (ProcListEvt): Set to NULL.
2623         * rtinit.c: New file.
2624         (__gnat_rt_init_count): New reference counter set to 0.
2625         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
2626         this code is actually needed for the runtime initialization. This
2627         routine returns immediately if the initialization has already been done.
2628         * final.c: Revert previous change.
2629         * rtfinal.c: New file.
2630         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
2631         section and event. The default version of this routine is empty (except
2632         for the reference counting code). This routine returns immediately if
2633         some others libraries are referencing the runtime.
2634         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
2635         remove circuitry to initialize the signal handler as this is
2636         now done by the runtime initialization routine.
2637         (Gen_Adafinal): Generate call to Runtime_Finalize.
2638         * gnat_ugn.texi: Update documentation about concurrency and
2639         initialization/finalization of the run-time.
2640         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
2641         references to rtfinal.o and rtinit.o
2643 2015-01-06  Robert Dewar  <dewar@adacore.com>
2645         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
2646         for Enum_Image.
2647         * sem_attr.adb: Implement Enum_Image attribute.
2648         * snames.ads-tmpl: Add entries for Enum_Image attribute.
2650 2015-01-06  Robert Dewar  <dewar@adacore.com>
2652         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
2653         * restrict.ads (No_Use_Of_Entity): New table.
2654         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2655         Ignore No_Use_Of_Entity (will be processed in parser).
2656         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
2658 2015-01-06  Vincent Celier  <celier@adacore.com>
2660         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
2661         to check for an extended project, if a project does not have
2662         yet a project declaration.
2664 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
2666         * scos.ads: Update documentation about the SCO table build
2667         process and about table records format.
2668         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
2669         (SCO_Record_Filtered): New procedure.
2670         (Set_SCO_Logical_Operator): New procedure.
2671         (dsco): Update documentation.
2672         * par_sco.adb: Update library-level comments.
2673         (SCO_Generation_State_Type): New type.
2674         (SCO_Generation_State): New variable.
2675         (SCO_Raw_Table): New package instanciation.
2676         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
2677         ("<"): New.
2678         (Tristate): New type.
2679         (Is_Logical_Operator): Return Tristate and update documentation.
2680         (Has_Decision): Update call to Is_Logical_Operator and complete
2681         documentation.
2682         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
2683         comment, add an assertion for state checking and change
2684         references to SCO_Table into SCO_Raw_Table.
2685         (dsco): Refactor to dump the raw and the filtered tables.
2686         (Process_Decisions.Output_Decision_Operand): Handle putative
2687         short-circuit operators.
2688         (Process_Decisions.Output_Element): Update references
2689         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2690         (Process_Decisions.Process_Decision_Operand): Update call
2691         to Is_Logical_Operator.
2692         (Process_Decisions.Process_Node): Handle putative short-circuit
2693         operators and change references to
2694         SCO_Table into SCO_Raw_Table.
2695         (SCO_Output): Add an assertion
2696         for state checking and remove code that used to stamp out SCO entries.
2697         (SCO_Pragma_Disabled): Change reference to SCO_Table
2698         into SCO_Raw_Table.
2699         (SCO_Record): Rename to SCO_Record_Raw,
2700         add an assertion for state checking and change references
2701         to SCO_Table into SCO_Raw_Table.
2702         (Set_SCO_Condition): Add an assertion for state checking, update
2703         references to Condition_Pragma_Hash_Table and change references to
2704         SCO_Table into SCO_Raw_Table.
2705         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
2706         change references to SCO_Table into SCO_Raw_Table.
2707         (Set_SCO_Logical_Operator): New procedure.
2708         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
2709         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
2710         (SCO_Record_Fildered): New procedure.
2711         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
2712         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
2713         output SCOs.
2714         * par-load.adb (Load): Update reference to SCO_Record.
2715         * par.adb (Par): Update reference to SCO_Record.
2716         * put_scos.adb (Put_SCOs): Add an assertion to check that no
2717         putative SCO condition reaches this end.
2718         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
2719         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
2720         when corresponding to an "and"/"or" operator affected by the
2721         Short_Circuit_And_Or pragma.
2723 2015-01-06  Robert Dewar  <dewar@adacore.com>
2725         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
2726         msg for attempted USE of generic subprogram or subprogram.
2728 2015-01-06  Robert Dewar  <dewar@adacore.com>
2730         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
2731         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
2732         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
2734 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2736         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
2737         that specify stream subprograms, if the prefix is a class-wide
2738         type then the generated attribute definition clause must apply
2739         to the same class-wide type.
2740         (Default_Iterator): An iterator defined by an aspect of some
2741         container type T must have a first parameter of type T, T'class,
2742         or an access to such (from code reading RM 5.5.1 (2/3)).
2744 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2746         * gnat1drv.adb: Minor: complete previous change.
2748 2015-01-06  Olivier Hainque  <hainque@adacore.com>
2750         * set_targ.ads (C_Type_For): New function. Return the name of
2751         a C type supported by the back-end and suitable as a basis to
2752         construct the standard Ada floating point type identified by
2753         the T parameter. This is used as a common ground to feed both
2754         ttypes values and the GNAT tree nodes for the standard floating
2755         point types.
2756         * set_targ.adb (Long_Double_Index): The index at which "long
2757         double" gets registered in the FPT_Mode_Table. This is useful to
2758         know whether we have a "long double" available at all and get at
2759         it's characteristics without having to search the FPT_Mode_Table
2760         when we need to decide which C type should be used as the
2761         basis for Long_Long_Float in Ada.
2762         (Register_Float_Type): Fill Long_Double_Index.
2763         (FPT_Mode_Index_For): New function. Return the index in
2764         FPT_Mode_Table that designates the entry corresponding to the
2765         provided C type name.
2766         (FPT_Mode_Index_For): New function. Return the index in
2767         FPT_Mode_Table that designates the entry for a back-end type
2768         suitable as a basis to construct the standard Ada floating point
2769         type identified by the input T parameter.
2770         (elaboration code): Register_Back_End_Types unconditionally,
2771         so C_Type_For can operate regardless of -gnateT. Do it
2772         early so we can query it for the floating point sizes, via
2773         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
2774         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
2775         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
2776         which C type should be used as the basis for the construction
2777         of the Standard Ada floating point types.
2778         * get_targ.ads (Get_Float_Size, Get_Double_Size,
2779         Get_Long_Double_Size): Remove.
2780         * get_targ.adb: Likewise.
2782 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2784         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
2785         parameter and rename to...
2786         (In_RCI_Visible_Declarations): Fix handling of private part of nested
2787         package.
2788         (Validate_RCI_Subprogram_Declaration): Reject illegal function
2789         returning anonymous access in RCI unit.
2791 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2793         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
2794         function wrapper may be a homonym of another local declaration.
2795         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
2796         build function and operator wrappers after the actual subprogram
2797         has been resolved, and replace the standard renaming declaration
2798         with the declaration of wrapper.
2799         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
2800         make public for use elsewhere.
2801         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
2802         rewrite, now that actual is fully resolved when wrapper is
2803         constructed.
2805 2015-01-06  Javier Miranda  <miranda@adacore.com>
2807         * exp_disp.adb: Revert previous change.
2809 2015-01-06  Robert Dewar  <dewar@adacore.com>
2811         * exp_util.adb: Change name Name_Table_Boolean to
2812         Name_Table_Boolean1.
2813         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
2814         Introduce Name_Table_Boolean2/3.
2815         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
2816         Introduce Name_Table_Boolean2/3.
2817         * par-ch13.adb: Change name Name_Table_Boolean to
2818         Name_Table_Boolean1.
2820 2015-01-06  Bob Duff  <duff@adacore.com>
2822         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
2824 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2826         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
2827         others choice that covers multiple components, analyze each
2828         copy with the type of the component even in compile-only mode,
2829         to detect potential accessibility errors.
2831 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2833         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
2834         (Resolve_Actuals): An effectively volatile out
2835         parameter cannot act as an in or in out actual in a call.
2836         (Resolve_Entity_Name): An effectively volatile out parameter
2837         cannot be read.
2839 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2841         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
2842         the expansion of an expression function it may be pre-analyzed
2843         if a 'access attribute is applied to the function, in which case
2844         last_entity may have been assigned already.
2846 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2848         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
2849         type and actual has the corresponding full view, there is no
2850         error, but a case of use of incomplete type in a predicate or
2851         invariant expression.
2853 2015-01-06  Vincent Celier  <celier@adacore.com>
2855         * makeutl.adb (Insert_No_Roots): Make sure that the same source
2856         in two different project tree is checked in both trees, if they
2857         are sources of two different projects, extended or not.
2859 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2861         * gnat1drv.adb: Minor code clean up.
2862         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
2864 2015-01-06  Bob Duff  <duff@adacore.com>
2866         * osint.adb (Read_Source_File): Don't print out
2867         file name unless T = Source.
2869 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2871         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
2872         recognize improper uses of constant_reference types as actuals
2873         for in-out parameters.
2874         (Check_Function_Call): Do not collect identifiers if function
2875         name is missing because of previous error.
2877 2015-01-06  Robert Dewar  <dewar@adacore.com>
2879         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
2880         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
2881         Minor change of name Name_Table_Info => Name_Table_Int.
2883 2015-01-06  Robert Dewar  <dewar@adacore.com>
2885         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
2886         in previous checkin.
2887         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
2888         of bounds.
2889         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
2891 2015-01-06  Vincent Celier  <celier@adacore.com>
2893         * a-strsup.adb (Times (Natural;String;Positive)): Raise
2894         Length_Error, not Index_Error, when the result is too long.
2896 2015-01-06  Thomas Quinot  <quinot@adacore.com>
2898         * a-direct.adb (Create_Path): Minor error handling and
2899         performance improvement.
2901 2015-01-06  Robert Dewar  <dewar@adacore.com>
2903         * checks.ads, sem_ch12.adb: Minor reformatting.
2904         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
2905         zero check for fixed-point case if Backend_Divide_Checks_On_Target
2906         is False.
2908 2015-01-06  Robert Dewar  <dewar@adacore.com>
2910         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2911         Do not set restriction No_Elaboration_Code unless the pragma
2912         appears in the main unit).
2914 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2916         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
2917         that with clause has already been analyzed before checking kind
2918         of with_clause.
2920 2015-01-06  Robert Dewar  <dewar@adacore.com>
2922         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
2923         (as required by RM).
2925 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2927         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
2929 2015-01-06  Robert Dewar  <dewar@adacore.com>
2931         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
2932         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
2934 2015-01-06  Javier Miranda  <miranda@adacore.com>
2936         * exp_disp.adb (Expand_Interface_Conversion): No displacement
2937         of the pointer to the object needed when the type of the operand
2938         is not an interface type and the interface is one of its parent
2939         types (since they share the primary dispatch table).
2941 2015-01-06  Vincent Celier  <celier@adacore.com>
2943         * prj-env.adb: Minor comment update.
2945 2015-01-06  Javier Miranda  <miranda@adacore.com>
2947         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
2948         access types whose target type is an interface type to operands
2949         that are access types; required to report an error when the
2950         operand is not an access type.
2952 2015-01-06  Bob Duff  <duff@adacore.com>
2954         * a-cfinve.adb (Copy): Set the discriminant to the Length when
2955         Capacity = 0.
2956         * a-cofove.ads (Capacity): Add a postcondition.
2957         * a-cfinve.ads (Capacity): Add a postcondition.
2958         (Reserve_Capacity): Correct the postcondition in the case where
2959         Capacity = 0; that means "Capacity => Length (Container)".
2960         * a-cofove.adb (Elems[c]): Add a comment
2961         explaining the dangers and how to avoid them.
2963 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
2965         * sem_ch12.adb: Code clean up.
2967 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
2969         * gnatvsn.ads: Bump copyright year.
2971 2015-01-06  Robert Dewar  <dewar@adacore.com>
2973         * s-taskin.ads, s-traces.ads: Minor reformatting.
2974         * exp_util.adb: Minor typo fix.
2976 2015-01-06  Vincent Celier  <celier@adacore.com>
2978         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
2979         with the runtime name.
2980         * prj-env.adb (Initialize_Default_Project_Path): When both
2981         Target_Name and Runtime_Name are not empty string, add to the
2982         project path the two directories .../lib/gnat and .../share/gpr
2983         related to the runtime.
2984         * prj-env.ads (Initialize_Default_Project_Path): New String
2985         parameter Runtime_Name, defaulted to the empty string.
2987 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
2989         * frontend.adb: Guard against the case where a configuration
2990         pragma may be split into multiple pragmas and the original
2991         rewritten as a null statement.
2992         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
2993         pragma using Insert_Before rather than Insert_Action. This
2994         takes care of the configuration pragma case where Insert_Action
2995         would fail.
2997 2015-01-06  Bob Duff  <duff@adacore.com>
2999         * a-coboho.ads (Element_Access): Add "pragma
3000         No_Strict_Aliasing (Element_Access);". This is needed because
3001         we are unchecked-converting from Address to Element_Access.
3002         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
3003         result to be 1.
3005 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
3007         * sem_res.adb (Resolve_Actuals): Remove the
3008         restriction which prohibits volatile actual parameters with
3009         enabled external propery Async_Writers to act appear in procedure
3010         calls where the corresponding formal is of mode OUT.
3012 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
3014         * gnat_ugn.texi: Bump @copying's copyright year.
3016 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
3018         PR ada/64492
3019         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
3021 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
3023         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
3024         of unchecked asprintf.
3027 Copyright (C) 2015 Free Software Foundation, Inc.
3029 Copying and distribution of this file, with or without modification,
3030 are permitted in any medium without royalty provided the copyright
3031 notice and this notice are preserved.