1. 11 Jan, 2018 1 commit
  2. 02 May, 2017 1 commit
    • [multiple changes] · 2d249f52
      2017-05-02  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_case.adb: Remove extra spaces in parameter declarations.
      
      2017-05-02  Justin Squirek  <squirek@adacore.com>
      
      	* usage.adb: Replace space with hyphen ("run time" -> "run-time")
      	in usage line for new -gnatwE switch.
      
      2017-05-02  Claire Dross  <dross@adacore.com>
      
      	* a-cofuve.ads (Remove): Remove unnecessary
      	conditions in precondition.
      
      2017-05-02  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* a-stream.ads, exp_imgv.adb, sem_ch10.adb,
      	sem_attr.adb, s-finmas.ads, osint.adb: Minor typo fix.
      
      From-SVN: r247479
      Arnaud Charlet committed
  3. 28 Apr, 2017 1 commit
    • [multiple changes] · 85be939e
      2017-04-28  Bob Duff  <duff@adacore.com>
      
      	* sem_util.ads, sem_util.adb (Might_Raise): New function
      	that replaces Is_Exception_Safe, but has the opposite
      	sense. Is_Exception_Safe was missing various cases -- calls inside
      	a pragma Debug, calls inside an 'if' or assignment statement,
      	etc. Might_Raise now walks the entire subtree looking for things
      	that can raise.
      	* exp_ch9.adb (Is_Exception_Safe): Remove.
      	(Build_Protected_Subprogram_Body): Replace call to
      	Is_Exception_Safe with "not Might_Raise". Misc cleanup (use
      	constants where possible).
      	* exp_ch7.adb: Rename Is_Protected_Body -->
      	Is_Protected_Subp_Body. A protected_body is something different
      	in the grammar.
      
      2017-04-28  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* inline.adb (Expand_Inlined_Call): Initialize Targ1 variable.
      	* par-ch3.adb (P_Component_Items): Initialize Decl_Node variable.
      	(P_Discrete_Choice_List): Initialize Expr_Node variable.
      	* par-ch9.adb (P_Task): Initialize Aspect_Sloc variable.
      	(P_Protected): Likewise.
      	* sem_case.adb (Check_Duplicates):
      	Add pragma Warnings on variable.
      	* sem_ch12.adb (Preanalyze_Actuals): Initialize Vis variable.
      	* sem_ch4.adb (List_Operand_Interps):  Add pragma Warnings on variable.
      	* sem_ch5.adb (Analyze_Assignment): Initialize Save_Full_Analysis.
      	(Analyze_Exit_Statement): Initialize Scope_Id variable.
      	(Analyze_Iterator_Specification): Initialize Bas variable.
      	* sem_ch9.adb (Allows_Lock_Free_Implementation): Initialize
      	Error_Count (Satisfies_Lock_Free_Requirements): Likewise.
      	(Analyze_Accept_Statement): Initialize Task_Nam.
      
      2017-04-28  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* checks.adb (Install_Primitive_Elaboration_Check):
      	Do not generate an elaboration check if all checks have been
      	suppressed.
      
      2017-04-28  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch13.adb (Analyze_Aspect_Specifications, case
      	Interrupt_Handler and Attach_Handler): Generate reference
      	to protected operation to prevent spurious warnings about
      	unreferenced entities. Previous scheme failed with style checks
      	enabled.
      
      2017-04-28  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_prag.adb (Relocate_Pragmas_To_Body): A pragma Warnings
      	that follows an expression function must not be relocated to
      	the generated body, because it applies to the code that follows.
      
      From-SVN: r247387
      Arnaud Charlet committed
  4. 06 Jan, 2017 2 commits
    • [multiple changes] · 442d1abb
      2017-01-06  Tristan Gingold  <gingold@adacore.com>
      
      	* ada.ads, a-unccon.ads: Add pragma No_Elaboration_Code_All.
      
      2017-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_case.adb: Minor reformatting.
      
      2017-01-06  Thomas Quinot  <quinot@adacore.com>
      
      	* g-socthi-mingw.adb: Remove now extraneous USE TYPE clause
      
      2017-01-06  Justin Squirek  <squirek@adacore.com>
      
      	* aspects.adb: Register aspect in Canonical_Aspect.
      	* aspects.ads: Associate qualities of Aspect_Max_Queue_Length
      	into respective tables.
      	* einfo.ads, einfo.adb: Add a new attribute for
      	handling the parameters for Pragma_Max_Entry_Queue
      	(Entry_Max_Queue_Lengths_Array) in E_Protected_Type. Subprograms
      	for accessing and setting were added as well.
      	* par-prag.adb (Prag): Register Pramga_Max_Entry_Queue.
      	* exp_ch9.adb (Expand_N_Protected_Type_Declaration): Emit
      	declaration for pramga arguments and store them in the protected
      	type node.
      	(Make_Initialize_Protection): Pass a reference to
      	the Entry_Max_Queue_Lengths_Array in the protected type node to
      	the runtime.
      	* rtsfind.adb: Minor grammar fix.
      	* rtsfind.ads: Register new types taken from the
      	runtime libraries RE_Protected_Entry_Queue_Max and
      	RE_Protected_Entry_Queue_Max_Array
      	* s-tposen.adb, s-tpoben.adb
      	(Initialize_Protection_Entry/Initialize_Protection_Entries):
      	Add extra parameter and add assignment to local object.
      	* s-tposen.ads, s-tpoben.ads: Add new types to
      	store entry queue maximums and a field to the entry object record.
      	* sem_ch13.adb (Analyze_Aspect_Specifications): Add case statement
      	for Aspect_Max_Queue_Length.
      	(Check_Aspect_At_Freeze_Point):
      	Add aspect to list of aspects that don't require delayed analysis.
      	* sem_prag.adb (Analyze_Pragma): Add case statement for
      	Pragma_Max_Queue_Length, check semantics, and register arugments
      	in the respective entry nodes.
      	* sem_util.adb, sem_util.ads Add functions Get_Max_Queue_Length
      	and Has_Max_Queue_Length
      	* snames.ads-tmpl: Add constant for the new aspect-name
      	Name_Max_Queue_Length and corrasponding pragma.
      
      2017-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_util.adb (Is_Controlled_Function_Call):
      	Reimplemented. Consider any node which has an entity as the
      	function call may appear in various ways.
      
      From-SVN: r244126
      Arnaud Charlet committed
    • [multiple changes] · ed3fe8cc
      2017-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_attr.adb (Rewrite_Stream_Proc_Call): Use
      	an unchecked type conversion when performing a view conversion
      	to/from a private type. In all other cases use a regular type
      	conversion to ensure that any relevant checks are properly
      	installed.
      
      2017-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_prag.adb, sem_ch8.adb: Minor reformatting.
      
      2017-01-06  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb (Explain_Non_Static_Bound): Suppress cascaded
      	error on case expression that is an entity, when coverage is
      	incomplete and entity has a static value obtained by local
      	propagation.
      	(Handle_Static_Predicate): New procedure, subsidiary of
      	Check_Choices, to handle case alternatives that are either
      	subtype names or subtype indications involving subtypes that
      	have static predicates.
      
      2017-01-06  Thomas Quinot  <quinot@adacore.com>
      
      	* s-oscons-tmplt.c, g-socket.adb, g-socket.ads, g-sothco.ads:
      	(GNAT.Socket): Add support for Busy_Polling and Generic_Option
      
      2017-01-06  Bob Duff  <duff@adacore.com>
      
      	* sem_elab.adb (Activate_Elaborate_All_Desirable): Don't add
      	Elaborate_All(P) to P itself. That could happen in obscure cases,
      	and always introduced a cycle (P body must be elaborated before
      	P body).
      	* lib-writ.ads: Comment clarification.
      	* ali-util.ads: Minor comment fix.
      	* ali.adb: Minor reformatting.
      
      2017-01-06  Tristan Gingold  <gingold@adacore.com>
      
      	* a-exexpr-gcc.adb: Improve comment.
      
      From-SVN: r244125
      Arnaud Charlet committed
  5. 13 Oct, 2016 1 commit
  6. 12 Oct, 2016 2 commits
    • exp_ch5.adb, [...]: Minor reformatting. · f31dcd99
      2016-10-12  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch5.adb, sem_ch3.adb, exp_ch9.adb, a-tags.adb, sem_prag.adb,
      	sem_ch12.adb, xref_lib.adb, a-strunb-shared.adb, rtsfind.adb,
      	freeze.adb, sem_attr.adb, sem_case.adb, exp_ch4.adb, ghost.adb,
      	exp_ch6.adb, sem_ch4.adb, restrict.adb, s-os_lib.adb: Minor
      	reformatting.
      
      From-SVN: r241041
      Hristian Kirtchev committed
    • [multiple changes] · 84a62ce8
      2016-10-12  Bob Duff  <duff@adacore.com>
      
      	* xref_lib.adb: Use renamings-of-slices to ensure
      	that all references to Tables are properly bounds checked (when
      	checks are turned on).
      	* g-dyntab.ads, g-dyntab.adb: Default-initialize the array
      	components, so we don't get uninitialized pointers in case
      	of Tables containing access types.  Misc cleanup of the code
      	and comments.
      
      2016-10-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_attr.adb (Analyze_Attribute, case 'Type_Key): Implement
      	functionality of attribute, to provide a reasonably unique key
      	for a given type and detect any changes in the semantics of the
      	type or any of its subcomponents from version to version.
      
      2016-10-12  Bob Duff  <duff@adacore.com>
      
      	* sem_case.adb (Check_Choice_Set): Separate
      	checking for duplicates out into a separate pass from checking
      	full coverage, because the check for duplicates does not depend
      	on predicates. Therefore, we shouldn't do it separately for the
      	predicate vs. no-predicate case; we should share code. The code
      	for the predicate case was wrong.
      
      From-SVN: r241039
      Arnaud Charlet committed
  7. 27 Apr, 2016 2 commits
    • [multiple changes] · 57323d5b
      2016-04-27  Arnaud Charlet  <charlet@adacore.com>
      
      	* sem_ch10.adb, sem_case.adb: Mark messages udner -gnatwr when needed.
      
      2016-04-27  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* errout.adb, errutil.adb: Minor reformatting.
      
      2016-04-27  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch13.adb (Analyze_Aspect_Specifications, case Pre/Post):
      	Check that the classwide version is illegal when the prefix is
      	an operation of an untagged synchronized type.
      
      From-SVN: r235504
      Arnaud Charlet committed
    • [multiple changes] · ac566cbe
      2016-04-27  Arnaud Charlet  <charleT@adacore.com>
      
      	* sinput-l.ads, sem_ch13.adb: Minor editing.
      
      2016-04-27  Doug Rupp  <rupp@adacore.com>
      
      	* init.c (__gnat_adjust_context_for_raise) [arm-linux thumb]:
      	Bump the pc so the lower order bit is set.
      
      2016-04-27  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb, sem_case.ads (NO_Op): If appropriate warning is
      	enabled, report an empty range in a case construct.
      
      From-SVN: r235503
      Arnaud Charlet committed
  8. 26 Oct, 2015 1 commit
  9. 04 Aug, 2014 3 commits
    • [multiple changes] · 3ccedacc
      2014-08-04  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb: Minor reformatting.
      
      2014-08-04  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
      	Before normalizing these pragmas into a pragma Check, preanalyze
      	the optional Message argument, (which is subsequently copied)
      	so that it has the proper semantic information for ASIS use.
      	* sem_case.adb: Initialize flag earlier.
      	* osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
      	the full source path of a configuration file is requested.
      	(Read_Source_File): Use Full_Name parameter..
      
      From-SVN: r213571
      Arnaud Charlet committed
    • [multiple changes] · 536a2daf
      2014-08-04  Robert Dewar  <dewar@adacore.com>
      
      	* sem_util.adb, sem_case.adb: Minor reformatting.
      
      2014-08-04  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch9.adb (Extract_Entry): If the synchronized object is a
      	limited view, replace with non-limited view, which is available
      	at the point of an entry call.
      
      2014-08-04  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch6.adb (Expand_Call): If the call is to a function in
      	a run-time unit that is marked Inline_Always, we must suppress
      	debugging information on it, so that the code that is eventually
      	inlined will not affect debugging of the user program.
      
      From-SVN: r213567
      Arnaud Charlet committed
    • [multiple changes] · 2e1295ad
      2014-08-04  Robert Dewar  <dewar@adacore.com>
      
      	* inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
      	fixes.
      
      2014-08-04  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_prag.adb (Process_Import_Or_Interface): Handle properly
      	an aspect Import that specifies a False value.
      
      2014-08-04  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_rm.texi: Add section on aspect Invariant'Class.
      
      2014-08-04  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
      	for better control of cascaded error messages when some choice
      	in a case statement over a predicated type violates the given
      	static predicate.
      
      2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_ch3.adb (Build_Derived_Type): Modify the
      	inheritance of the rep chain to ensure that a non-tagged type's
      	items are not clobbered during the inheritance.
      
      From-SVN: r213566
      Arnaud Charlet committed
  10. 01 Aug, 2014 1 commit
    • [multiple changes] · 2b9fbec9
      2014-08-01  Robert Dewar  <dewar@adacore.com>
      
      	* sem_case.adb (Dup_Choice): Improve message for integer constants.
      
      2014-08-01  Arnaud Charlet  <charlet@adacore.com>
      
      	* gnatlink.adb: Remove special handling of VMS, RTX and JVM.
      
      2014-08-01  Pascal Obry  <obry@adacore.com>
      
      	* adaint.h (GNAT_OPEN): Defines as open64 where supported.
      	* adaint.c (GNAT_OPEN): Uses new macro where needed.
      
      From-SVN: r213410
      Arnaud Charlet committed
  11. 31 Jul, 2014 1 commit
    • [multiple changes] · fd7215d7
      2014-07-31  Robert Dewar  <dewar@adacore.com>
      
      	* exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
      	reformatting.
      
      2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
      	which demonstrates the expansion of while loops subject to
      	attribute 'Loop_Entry. The condition of a while loop along with
      	related condition actions is now wrapped in a function.  Instead
      	of repeating the condition, the expansion now calls the function.
      
      2014-07-31  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb (Check_Against_Predicate): Correct off-by-one
      	error when reporting of missing values in a case statement for
      	a type with a static predicate.
      	(Check_Choices): Reject a choice given by a subtype to which a
      	Dynamic_Predicate applies.
      	* sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
      	Has_Dynamic_Predicate_Aspect flag from parent.
      
      2014-07-31  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
      	cannot apply to a subtype of an incomplete type.
      	(Is_Static_Choice): Treat an Others_Clause as static. The
      	staticness of the expression and of the range are checked
      	elsewhere.
      
      2014-07-31  Pascal Obry  <obry@adacore.com>
      
      	* adaint.h (__gnat_ftell64): Added.
      	(__gnat_fseek64): Added.
      	(__int64): Added.
      	* cstreams.c (__int64): Removed.
      
      From-SVN: r213366
      Arnaud Charlet committed
  12. 29 Jul, 2014 2 commits
    • sem_aggr.adb, [...]: General cleanup of static predicate handling. · 60f908dd
      2014-07-29  Robert Dewar  <dewar@adacore.com>
      
      	* sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
      	einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
      	sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
      	handling. Change name of Discrete_Predicate to
      	Discrete_Static_Predicate, and replace testing of the presence of this
      	field by testing the flag Has_Static_Expression.
      
      From-SVN: r213161
      Robert Dewar committed
    • [multiple changes] · 0382062b
      2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
      	formal parameter Obj_Id and update the comment on usage. Renamed
      	Obj_Typ to Func_Typ and update all occurrences.
      	(Find_Last_Init): Remove formal parameter Decl and update the comment
      	on usage.
      	Remove local constants Obj_Id and Obj_Typ. Remove local variables
      	Init_Typ and Is_Conc. Remove the extraction of the initialization type.
      	(Find_Last_Init_In_Block): Remove formal parameter
      	Init_Typ and update the comment on usage.
      	(Is_Init_Call): Remove formal parameter Init_Typ and update the comment
      	on usage. Check whether the procedure call is an initialization
      	procedure of either the object type or the initialization type.
      	(Is_Init_Proc_Of): New routine.
      	(Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
      	routine. Add new variable Init_Typ. Add circuitry to extract the object
      	type as well as the initialization type.
      
      2014-07-29  Robert Dewar  <dewar@adacore.com>
      
      	* sem_case.adb: Minor reformatting.
      	* sem_aux.ads: Minor reformatting.
      
      2014-07-29  Ed Schonberg  <schonberg@adacore.com>
      
      	* sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
      	pointer on these fields, even though they are semantic, because
      	subsequent analysis and expansion of action nades may require
      	exploring the tree, for example to locate a node to be wrapped
      	when a function with controlled result is called.
      
      2014-07-29  Claire Dross  <dross@adacore.com>
      
      	* sem_aux.adb (Get_Binary_Nkind): Use case on
      	Name_Id instead of an intermediate string.
      	(Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
      	string.
      
      2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
      
      	* gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
      	about processing sources with preprocessor directives.
      
      From-SVN: r213155
      Arnaud Charlet committed
  13. 17 Jul, 2014 1 commit
    • [multiple changes] · d2d8b2a7
      2014-07-17  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
      
      2014-07-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb (Check_Choice_Set): If the case expression is the
      	expression in a predicate, do not recheck coverage against itself,
      	to prevent spurious errors.
      	* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
      	expression comes from an aspect specification, to prevent spurious
      	errors when expression is a case expression in a predicate.
      
      2014-07-17  Pascal Obry  <obry@adacore.com>
      
      	* adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
      	* s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
      
      2014-07-17  Vincent Celier  <celier@adacore.com>
      
      	* gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
      	gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
      	the usage for an erroneous invocation of a gnat tool.
      
      From-SVN: r212716
      Arnaud Charlet committed
  14. 16 Jul, 2014 2 commits
    • [multiple changes] · 76241f8f
      2014-07-16  Gary Dismukes  <dismukes@adacore.com>
      
      	* g-rewdat.adb, g-rewdat.ads: Minor reformatting.
      
      2014-07-16  Doug Rupp  <rupp@adacore.com>
      
      	* s-interr-hwint.adb: Casing error on parameter.
      
      2014-07-16  Pascal Obry  <obry@adacore.com>
      
      	* Makefile.rtl: Add g-rewdat.o dependencies in
      	GNATRTL_NONTASKING_OBJS.
      
      2014-07-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb: Code clean up.
      
      From-SVN: r212660
      Arnaud Charlet committed
    • [multiple changes] · c624a26b
      2014-07-16  Vincent Celier  <celier@adacore.com>
      
      	* gnatls.adb (Normalize): New function.
      	(Gnatls): Get the target parameters. On targets other than VMS,
      	normalize the path names in the source search path, the object search
      	path and the project search path.
      
      2014-07-16  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb: Avoid self-checking of case expressions in
      	dynamic predicates.
      
      2014-07-16  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_rm.texi: Document effect of Suppress_Initialization on tags and
      	discriminants.
      
      From-SVN: r212658
      Arnaud Charlet committed
  15. 14 Oct, 2013 2 commits
    • sem_ch3.adb: Minor fix to error message. · 808876a9
      2013-10-14  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch3.adb: Minor fix to error message.
      	* a-exexpr-gcc.adb, sem_util.adb, sem_case.adb, exp_ch11.adb: Minor
      	reformatting.
      
      From-SVN: r203554
      Robert Dewar committed
    • [multiple changes] · 1e7bc065
      2013-10-14  Robert Dewar  <dewar@adacore.com>
      
      	* exp_prag.adb: Minor reformatting.
      
      2013-10-14  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb (Check_Against_Predicate): Handle properly an
      	others clause in various cases.
      
      2013-10-14  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_prag.adb (Check_Matching_Constituent): Do
      	not inspect the hidden states if there are no hidden states. This
      	case arises when the constituents are states coming from a
      	private child.
      
      2013-10-14  Doug Rupp  <rupp@adacore.com>
      
      	* init.c [ARMEL and VxWorks] (__gnat_map_signal): Re-arm guard
      	page by clearing VALID bit vice setting page protection.
      
      2013-10-14  Arnaud Charlet  <charlet@adacore.com>
      
      	* gnat_rm.texi, adaint.c: Fix typo.
      
      2013-10-14  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Is_Variable, In_Protected_Function):  In the
      	body of a protected function, the protected object itself is a
      	constant (not just its components).
      
      From-SVN: r203550
      Arnaud Charlet committed
  16. 10 Oct, 2013 4 commits
    • sem_aggr.adb (Resolve_Array_Aggregate): Identify duplicated cases. · 882eadaf
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* sem_aggr.adb (Resolve_Array_Aggregate): Identify duplicated
      	cases.
      
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch9.adb (Analyze_Task_Body): Aspects are illegal
      	(Analyze_Protected_Body): Aspects are illegal.
      
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb, sem_ch13.adb: Minor reformatting.
      	* sem_case.adb (Check_Choices): Fix bad listing of missing
      	values from predicated subtype case (Check_Choices): List
      	duplicated values.
      	* errout.adb (Set_Msg_Text): Process warning tags in VMS mode
      	* erroutc.adb (Output_Msg_Text): Handle VMS warning tags
      	* gnat_ugn.texi: Document /WARNINGS=TAG_WARNINGS for VMS
      	* ug_words: Add entries for -gnatw.d and -gnatw.D
      	* vms_data.ads: Add [NO]TAG_WARNINGS for -gnatw.D/-gnatw.d
      	* lib-writ.ads: Documentation fixes
      
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads
      	(Is_Other_Format): New name for Is_Other.
      	(Is_Punctuation_Connector): New name for Is_Punctuation
      
      From-SVN: r203366
      Robert Dewar committed
    • [multiple changes] · c76bf0bf
      2013-10-10  Thomas Quinot  <quinot@adacore.com>
      
      	* s-taprop-posix.adb: Add missing comment.
      
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* freeze.adb (Freeze_Record_Type): Move choice checking to
      	Analyze_Freeze_Entity (Freeze_Record_Type): Make sure all choices
      	are properly frozen
      	* sem_case.adb (Check_Choices): Remove misguided attempt to
      	freeze choices (this is now done in Freeze_Record_Type where
      	it belongs).
      	(Check_Choices): Remove some analyze/resolve calls
      	that are redundant since they are done in Analyze_Choices.
      	* sem_ch13.adb (Analyze_Freeze_Entity): Do the error
      	checking for choices in variant records here (moved here from
      	Freeze.Freeze_Record_Type)
      
      From-SVN: r203364
      Arnaud Charlet committed
    • [multiple changes] · 15918371
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* lib-xref-spark_specific.adb, par-ch13.adb, sem_prag.adb, sem_prag.ads,
      	sem_ch12.adb, sem_attr.adb, sem_ch6.adb, sem_ch13.adb, a-sequio.adb,
      	s-atocou-builtin.adb: Minor reformatting.
      
      2013-10-10  Thomas Quinot  <quinot@adacore.com>
      
      	* s-oscons-tmplt.c (NEED_PTHREAD_CONDATTR_SETCLOCK): This
      	constant needs to be output to s-oscons.h, as it is tested
      	by init.c.
      
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch3.adb (Expand_N_Variant_Part): Don't expand choices, too early
      	* exp_ch5.adb (Expand_N_Case_Statement): Use new Has_SP_Choice
      	flag to avoid expanding choices when not necessary.
      	* exp_util.adb: Minor reformatting
      	* freeze.adb (Freeze_Record_Type): Redo expansion of variants
      	* sem_aggr.adb: Minor reformatting
      	* sem_case.ads, sem_case.adb: Major rewrite, separating Analysis and
      	Checking of choices.
      	* sem_ch3.adb (Analyze_Variant_Part): Rewrite to call new
      	Analyze_Choices.
      	* sem_ch4.adb (Analyze_Case_Expression): Call Analyze_Choices
      	and Check_Choices
      	* sem_ch5.adb (Analyze_Case_Statement): Call Analyze_Choices
      	and Check_Choices
      	* sem_util.adb: Minor reformatting
      	* sinfo.ads, sinfo.adb (Has_SP_Choice): New flag.
      
      2013-10-10  Vincent Celier  <celier@adacore.com>
      
      	* mlib-prj.adb (Build_Library): Do not issue link dynamic
      	libraries with an Rpath, if switch -R was used.
      
      2013-10-10  Tristan Gingold  <gingold@adacore.com>
      
      	* s-stalib.ads (Image_Index_Table_8, Image_Index_Table_16,
      	Image_Index_Table_32): Remove as not used.
      	* s-imgint.adb (Image_Integer): Call Set_Image_Integer and
      	remove duplicated code.
      
      From-SVN: r203358
      Arnaud Charlet committed
    • [multiple changes] · 9e92ad49
      2013-10-10  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch3.adb (Expand_N_Variant_Part): Expand statically
      	predicated subtype which appears in Discrete_Choices list.
      	* exp_ch5.adb (Expand_N_Case_Statement): Expand statically
      	predicated subtype which appears in Discrete_Choices list of
      	case statement alternative.
      	* exp_util.ads, exp_util.adb (Expand_Static_Predicates_In_Choices): New
      	procedure.
      	* sem_case.adb: Minor reformatting (Analyze_Choices): Don't
      	expand out Discrete_Choices that are names of subtypes with
      	static predicates. This is now done in the analyzer so that the
      	-gnatct tree is properly formed for ASIS.
      	* sem_case.ads (Generic_Choices_Processing): Does not apply
      	to aggregates any more, so change doc accordingly, and remove
      	unneeded Get_Choices argument.
      	* sem_ch3.adb (Analyze_Variant_Part): Remove no
      	longer used Get_Choices argument in instantiation of
      	Generic_Choices_Processing.
      	* sem_ch4.adb (Analyze_Case_Expression): Remove no
      	longer used Get_Choices argument in instantiation of
      	Generic_Choices_Processing.
      	* sem_ch5.adb (Analyze_Case_Statement): Remove no
      	longer used Get_Choices argument in instantiation of
      	Generic_Choices_Processing.
      	* sinfo.ads: For N_Variant_Part, and N_Case_Statement_Alternative,
      	document that choices that are names of statically predicated
      	subtypes are expanded in the code generation tree passed to the
      	back end, but not in the ASIS tree generated for -gnatct.
      
      2013-10-10  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch7.adb: Revert previous change.
      
      2013-10-10  Gary Dismukes  <dismukes@adacore.com>
      
      	* sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the case where
      	the Storage_Pool aspect is specified by an aspect clause and a
      	renaming is used to capture the evaluation of the pool name,
      	insert the renaming in front of the aspect's associated entity
      	declaration rather than in front of the corresponding attribute
      	definition (which hasn't been appended to the declaration
      	list yet).
      
      2013-10-10  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Is_Interface_Conformant): The controlling type
      	of the interface operation is obtained from the ultimate alias
      	of the interface primitive parameter, because that may be in
      	fact an implicit inherited operation whose signature involves
      	the type extension and not the desired interface.
      
      2013-10-10  Ed Schonberg  <schonberg@adacore.com>
      
      	* par-ch13.adb (Aspect_Specifications_Present): In Ada 2012,
      	recognize an aspect specification with a misspelled name if it
      	is followed by a a comma or semicolon.
      
      2013-10-10  Vadim Godunko  <godunko@adacore.com>
      
      	* s-atocou.adb, s-atocou.ads, s-atocou-x86.adb, s-atocou-builtin.adb:
      	Fix copyright notice.
      
      2013-10-10  Yannick Moy  <moy@adacore.com>
      
      	* lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package): Get
      	enclosing subprogram for precondition/postcondition/contract cases.
      
      From-SVN: r203350
      Arnaud Charlet committed
  17. 25 Apr, 2013 1 commit
    • [multiple changes] · 57081559
      2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_ch4.adb (Analyze_Quantified_Expression):
      	Add local variable Loop_Id. Verify that the loop variable
      	is used within the condition of the quantified expression.
      	(Referenced): New routine.
      
      2013-04-25  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_case.adb (Analyze_Choices): Enhance the error message
      	given on a bad use of subtype predicate.
      	* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Enhance
      	the error message given on a bad use of subtype predicate.
      	* sem_util.adb (Bad_Predicated_Subtype_Use): Add formal parameter
      	Suggest_Static. Emit an extra error message advising how to
      	remedy the bad use of the predicate if the context warrants it.
      	* sem_util.ads (Bad_Predicated_Subtype_Use): Add formal parameter
      	Suggest_Static along with a comment explaining its usage.
      
      2013-04-25  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_disp.adb (Check_Dispatching_Operation): Further refinement
      	to checks for AI05-0125: the check for a hidden primitive that
      	may be overridden by the new declaration only applies if the
      	hidden operation is never declared. This is not the case if the
      	operation is declared in a parent unit.
      
      From-SVN: r198288
      Arnaud Charlet committed
  18. 11 Apr, 2013 1 commit
    • [multiple changes] · 752b81d9
      2013-04-11  Arnaud Charlet  <charlet@adacore.com>
      
      	* xgnatugn.adb: Remove obsolete comments.
      
      2013-04-11  Robert Dewar  <dewar@adacore.com>
      
      	* back_end.ads, back_end.adb: Minor reformatting.
      	* set_targ.ads, set_targ.adb: New files.
      
      2013-04-11  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_case.adb (Check_Against_Predicate): New routine.
      	(Check_Choices): When the type covered by the list of choices
      	is a static subtype with a static predicate, check all choices
      	agains the predicate.
      	(Issue_Msg): All versions removed.
      	(Missing_Choice): New routines.
      	* sem_ch4.adb: Code and comment reformatting.
      	(Analyze_Case_Expression): Do not check the choices when the case
      	expression is being preanalyzed and the type of the expression
      	is a subtype with a static predicate.
      	(Has_Static_Predicate): New routine.
      	* sem_ch13.adb: Code and comment reformatting.	(Build_Range):
      	Always build a range even if the low and hi bounds denote the
      	same value. This is needed by the machinery in Check_Choices.
      	(Build_Static_Predicate): Always build a range even if the low and
      	hi bounds denote the same value. This is needed by the machinery
      	in Check_Choices.
      
      From-SVN: r197789
      Arnaud Charlet committed
  19. 02 Jan, 2013 1 commit
    • [multiple changes] · 324ac540
      2013-01-02  Robert Dewar  <dewar@adacore.com>
      
      	* errout.ads: Minor comment fixes.
      	* opt.ads: Minor comment additions.
      	* exp_aggr.adb: Add tags to warning messages
      	* exp_ch11.adb, exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_aggr.adb,
      	sem_attr.adb, sem_case.adb, sem_cat.adb, sem_ch3.adb, sem_ch4.adb,
      	sem_ch5.adb, sem_disp.adb, sem_dist.adb, sem_elab.adb, sem_eval.adb,
      	sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb, sem_util.adb,
      	sem_warn.adb: Add tags to warning messages
      
      2013-01-02  Doug Rupp  <rupp@adacore.com>
      
      	* init.c [VMS] Remove subtest on reason mask for ACCVIO that is a C_E.
      
      2013-01-02  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb: Recover source name for renamed packagea.
      
      From-SVN: r194786
      Arnaud Charlet committed
  20. 09 Jul, 2012 1 commit
    • [multiple changes] · 21791d97
      2012-07-09  Vincent Celier  <celier@adacore.com>
      
      	* lib-writ.ads: Add documentation for the Z lines (implicitly
      	withed units) and Y lines (limited withed units).
      
      2012-07-09  Robert Dewar  <dewar@adacore.com>
      
      	* lib.ads, exp_attr.adb, exp_ch9.adb, sem_dim.adb, sem_ch9.adb,
      	sem_prag.adb, sem_ch12.adb, mlib-utl.adb, freeze.adb, sem_res.adb,
      	sem_attr.adb, sem_case.adb, gnatlink.adb, exp_ch4.adb, sem_ch6.adb,
      	sem_elim.adb, s-dimmks.ads, sem_ch13.adb: Minor code clean ups.
      
      2012-07-09  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* gnat_ugn.texi (Switches for gcc): Document -gnatn[12] only
      	lightly in the summary and more thoroughly in inlining section.
      	(Performance Considerations): Document -gnatn[12] in inlining
      	section.
      
      2012-07-09  Tristan Gingold  <gingold@adacore.com>
      
      	* a-exexpr-gcc.adb (Unhandled_Except_Handler): New procedure.
      	(Unhandled_Others_Value): New const.
      	* raise-gcc.c (GNAT_UNHANDLED_OTHERS): Define.
      	(action_descriptor): Remove ttype_entry.
      	(get_action_description_for): Do not assign ttype_entry.
      	(is_handled_by): Consider GNAT_UNHANDLED_OTHERS.
      
      From-SVN: r189367
      Arnaud Charlet committed
  21. 14 Jun, 2012 1 commit
    • [multiple changes] · df378148
      2012-06-14  Vincent Pucci  <pucci@adacore.com>
      
      	* exp_ch6.adb (Expand_Call): Expand_Put_Call_With_Dimension_Symbol
      	call replaced by Expand_Put_Call_With_Symbol call.
      	* sem_dim.adb: New fields Unit_Names, Unit_Symbols
      	and Dim_Symbols for record type System_Type.
      	(From_Dimension_To_String_Of_Symbols): Removed.
      	(From_Dim_To_Str_Of_Dim_Symbols): Renames previous
      	routine From_Dimension_To_String_Of_Symbols.
      	(From_Dim_To_Str_Of_Unit_Symbols): New routine.
      	(Analyze_Aspect_Dimension): argument Symbol in aspect
      	Dimension aggregate is optional. Named association implemented.
      	(Has_Compile_Time_Known_Expressions): Removed.
      	(Analyze_Aspect_Dimension_System): New
      	component Dim_Symbol in each Dimension aggregate in
      	aspect Dimension_System. Named associations implemented.
      	(Add_Dimension_Vector_To_Buffer): Removed.
      	(Add_Whole_To_Buffer): Removed.
      	(Expand_Put_Call_With_Dimension_Symbol.): Removed.
      	(Expand_Put_Call_With_Symbol): Renames previous routine
      	Expand_Put_Call_With_Dimension_Symbol.
      	(Has_Dimension_Symbols): Removed.
      	(Has_Symbols): Renames previous routine
      	Has_Dimension_Symbols.	(Store_String_Oexpon): New routine.
      	* sem_dim.ads (Expand_Put_Call_With_Dimension_Symbol.): Removed.
      	(Expand_Put_Call_With_Symbol): Renames previous routine
      	Expand_Put_Call_With_Dimension_Symbol.
      	* s-diflio.adb, s-diinio.adb (Put): Symbol renames Symbols.
      	(Put_Dim_Of): New routines.
      	* s-diflio.ads, s-diinio.ads: documentation updated.
      	(Put): Symbol renames Symbols.
      	(Put_Dim_Of): New routines.
      	* s-dim.ads: documentation updated.
      	* s-dimmks.ads: dimensioned type and subtypes updated.
      	* snames.ads-tmpl: Name_Dim_Symbol, Name_Put_Dim_Of, Name_Symbol,
      	and Name_Unit_Symbol added. Name_Symbols removed.
      
      2012-06-14  Vincent Pucci  <pucci@adacore.com>
      
      	* freeze.adb (In_Exp_Body): Expression function case added.
      	(Freeze_Expression): Insert the Freeze_Nodes
      	list before the correct current scope in case of a quantified
      	expression.
      
      2012-06-14  Pascal Obry  <obry@adacore.com>
      
      	* projects.texi: Document the Install package for gprinstall.
      2012-06-14  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_elim.adb (Check_For_Eliminated_Subprogram): Do not check within
      	a default expression.
      	* sem_res.adb (Resolve_Call): simplify code.
      
      2012-06-14  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb (Check, Issue_Msg): within an instance, non-other
      	values in a variant part or a case expression do not have to
      	belong to the actual subtype.
      
      2012-06-14  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Validate_Derived_Type_Instance): If parent is
      	an interface type, check whether it is itself a previous formal
      	already instantiated in the current list of actuals.
      
      2012-06-14  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): The
      	expression for a stream attribute is a name that may be overloaded
      	with other declarations. To determine whether it matches the
      	aspect at the freeze point, it is necessary to verify that one
      	of its interpretations matches.
      
      From-SVN: r188610
      Arnaud Charlet committed
  22. 15 May, 2012 1 commit
    • [multiple changes] · bb9c600b
      2012-05-15  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_eval.adb (Subtypes_Statically_Match): In Ada 2012, static
      	matching requires matching of static subtype predicates as well.
      
      2012-05-15  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_case.adb (Analyze_Choices): If the subtype of the
      	expression has a non-static predicate, the case alternatives
      	must cover the base type.
      
      2012-05-15  Tristan Gingold  <gingold@adacore.com>
      
      	* a-calend-vms.ads: Add pragma export to Split and Time_Of.
      	Merge comments from a-calend.ads to minimize differences.
      
      2012-05-15  Sergey Rybin  <rybin@adacore.com frybin>
      
      	* gnat_ugn.texi: gnatmetric: add a small example that demonstrates
      	the difference between control coupling and unit coupling.
      
      2012-05-15  Tristan Gingold  <gingold@adacore.com>
      
      	* bindgen.adb (Gen_Header): Remove code to emit LE_Set.
      	(Gen_Finalize_Library): Replace test with
      	a call to __gnat_reraise_library_exception_if_any.
      	* s-soflin.ads (Library_Exception): Do not export.
      	(Library_Exception_Set): Likewise.
      	* a-except-2005.ads, a-except-2005.adb
      	(Reraise_Library_Exception_If_Any): New procedure.
      
      From-SVN: r187509
      Arnaud Charlet committed
  23. 15 Mar, 2012 1 commit
    • [multiple changes] · 011f9d5d
      2012-03-15  Robert Dewar  <dewar@adacore.com>
      
      	* par-ch6.adb, einfo.ads, sem_eval.adb, sem_eval.ads,
      	sem_case.adb: Minor reformatting.
      
      2012-03-15  Robert Dewar  <dewar@adacore.com>
      
      	* exp_attr.adb (Expand_N_Attribute_Reference): Add handling
      	of First_Valid/Last_Valid.
      	* sem_attr.adb (Check_First_Last_Valid): New procedure
      	(Analyze_Attribute): Add handling of First_Valid and Last_Valid
      	(Eval_Attribute): ditto.
      	* snames.ads-tmpl: Add entries for First_Valid and Last_Valid.
      
      2012-03-15  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_ch5.adb (Expand_Predicated_Loop): Suppress warnings on
      	loop variable, for the unusual case where the range has a single
      	element and the loop variable has no visible assignment to it.
      
      2012-03-15  Vincent Pucci  <pucci@adacore.com>
      
      	* exp_ch4.adb (Expand_N_Quantified_Expression): Expand the
      	original quantified expression node.
      	* sem_ch4.adb (Analyze_Quantified_Expression): Properly analyze
      	the quantified expression and preserve the original non-analyzed
      	quantified expression when an expansion is needed.
      	* sem_ch5.adb (Analyze_Iteration_Scheme): Special treatment
      	for quantified expressions.
      	(Analyze_Iterator_Specification): Special treatment for quantified
      	expressions.
      
      2012-03-15  Ed Falis  <falis@adacore.com>
      
      	* s-vxwork-ppc.ads: Update FP_CONTEXT so name of former pad
      	field matches VxWorks headers.
      
      From-SVN: r185409
      Arnaud Charlet committed
  24. 26 Oct, 2010 2 commits
    • [multiple changes] · 3e5daac4
      2010-10-26  Vincent Celier  <celier@adacore.com>
      
      	* prj.ads (Source_Data): New Boolean component Initialized, defaulted
      	to False, set to True when Source_Data is completely initialized.
      	* prj-env.adb: Minor comment fix.
      
      2010-10-26  Robert Dewar  <dewar@adacore.com>
      
      	* sem_case.adb, sem_ch6.adb, sem_util.adb: Minor reformatting.
      
      From-SVN: r165943
      Arnaud Charlet committed
    • [multiple changes] · 23b86353
      2010-10-26  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Analyze_Iteration_Scheme): Diagnose attempt to use thew
      	form "for X in A" when A is an array object. This form is only intended
      	for containers.
      	* sem_eval.adb: Fix reference to non-existing field of type conversion
      	node.
      	* sem_case.adb (Check_Choices): Improve error reporting for overlapping
      	choices in case statements.
      
      2010-10-26  Gary Dismukes  <dismukes@adacore.com>
      
      	* exp_disp.adb (Expand_Interface_Actuals): When expanding an actual for
      	a class-wide interface formal that involves applying a displacement
      	conversion to the actual, check for the case of calling a build-in-place
      	function and handle generation of the implicit BIP parameters (call
      	Make_Build_In_Place_Call_In_Anonymous_Context).
      	Add with and use of Exp_Ch6.
      
      2010-10-26  Robert Dewar  <dewar@adacore.com>
      
      	* sem_prag.adb, sem_cat.ads: Minor reformatting.
      
      2010-10-26  Sergey Rybin  <rybin@adacore.com>
      
      	* vms_data.ads: Define VMS qualifier for gnatelim '--ignore' option
      
      2010-10-26  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_util.adb (Has_Preelaborable_Initialization.Check_Components):
      	For a discriminant, use Discriminant_Default_Value rather than
      	Expression (Declaration_Node (D)).
      
      2010-10-26  Geert Bosch  <bosch@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Parameterized
      	expressions don't need a spec, even when style checks require
      	subprograms to have one.
      
      From-SVN: r165941
      Arnaud Charlet committed
  25. 25 Oct, 2010 1 commit
    • [multiple changes] · 66150d01
      2010-10-25  Robert Dewar  <dewar@adacore.com>
      
      	* sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
      	* sem_case.adb: Comment clarification for loops through false
      	predicates.
      	* sem_util.adb: Minor reformatting
      	(Check_Order_Dependence): Fix bad double blank in error message
      
      2010-10-25  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
      	operation can have a single alternative that is a value of the type.
      	Rewrite operation as an equality test.
      
      From-SVN: r165918
      Arnaud Charlet committed
  26. 22 Oct, 2010 3 commits
    • [multiple changes] · c7532b2d
      2010-10-22  Ben Brosgol  <brosgol@adacore.com>
      
      	* gnat_rm.texi: Add chapter on Ada 2012 support.
      
      2010-10-22  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch12.adb: Minor reformatting.
      
      2010-10-22  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_dist.adb: Mark missing case of nested package when expanding
      	stubs.
      
      2010-10-22  Ed Schonberg  <schonberg@adacore.com>
      
      	* par-ch10.adb: Discard incomplete with_clause.
      
      2010-10-22  Robert Dewar  <dewar@adacore.com>
      
      	* checks.adb (Enable_Range_Check): Remove code suppressing range check
      	if static predicate present, not needed.
      	* exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
      	* exp_ch3.adb (Expand_N_Object_Declaration): Check
      	Suppress_Assignment_Checks flag.
      	* exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
      	of ranges when predicates are present.
      	* exp_ch5.adb (Expand_Predicated_Loop): New procedure
      	(Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
      	(Expand_N_Loop_Statement): Handle loops over predicated types
      	* sem_case.adb (Analyze_Choices): Remove extra blank in error message.
      	* sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
      	message for inheritance if within a generic instance, not useful there!
      	(Build_Static_Predicate): Optimize test in predicate function
      	based on static ranges determined.
      	* sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
      	subtype with non-static predicate.
      	* sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
      
      From-SVN: r165834
      Arnaud Charlet committed
    • sem_case.adb, [...] (Bad_Predicated_Subtype_Use): Change order of parameters. · ed00f472
      2010-10-22  Robert Dewar  <dewar@adacore.com>
      
      	* sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
      	of parameters.
      	* sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
      	messages for generic actual subtypes.
      	* sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
      	(Bad_Predicated_Subtype_Use): Use this procedure.
      
      2010-10-22  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch5.adb: Minor reformatting.
      
      From-SVN: r165829
      Robert Dewar committed
    • a-except-2005.adb (Rmsg_18): New message text. · 86200f66
      2010-10-22  Robert Dewar  <dewar@adacore.com>
      
      	* a-except-2005.adb (Rmsg_18): New message text.
      	* a-except.adb (Rmsg_18): New message text.
      	* atree.adb (List25): New function
      	(Set_List25): New procedure
      	* atree.ads (List25): New function
      	(Set_List25): New procedure
      	* einfo.adb (Static_Predicate): Is now a list
      	(OK_To_Reference): Present in all entities
      	* einfo.ads (Static_Predicate): Is now a list
      	(OK_To_Reference): Applies to all entities
      	* exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
      	* sem_attr.adb (Bad_Attribute_For_Predicate): Call
      	Bad_Predicated_Subtype_Use.
      	* sem_case.ads, sem_case.adb: Major surgery to deal with predicated
      	subtype case.
      	* sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
      	Sem_Ch13.
      	(Build_Static_Predicate): New procedure handles static predicates.
      	* sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
      	with no constraint if ancestor subtype has predicates.
      	(Analyze_Variant_Part): New calling sequence for Analyze_Choices
      	* sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
      	entity.
      	(Analyze_Case_Expression): New calling sequence for Analyze_Choices
      	* sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
      	Analyze_Choices.
      	* sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
      	* types.ads (PE_Bad_Predicated_Generic_Type): Replaces
      	PE_Bad_Attribute_For_Predicate.
      	* atree.h: Add definition of List25.
      
      From-SVN: r165828
      Robert Dewar committed