2025-11-21  Eric Botcazou  <ebotcazou@adacore.com>

	* repinfo.adb (List_Location): Do not output the final comma.
	(List_Common_Type_Info): Adjust to above change.  Do not output
	"??" for an unknown alignment.
	(List_Entities): Do not output generic types.
	(List_Object_Info): Adjust to above change.
	(List_Subprogram_Info): Likewise.

2025-11-21  Eric Botcazou  <ebotcazou@adacore.com>

	* sem_type.adb (Last_Overloaded): Fix typo.

2025-11-21  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/111433
	* sem_util.ads (Incomplete_Or_Partial_View): Add Partial_Only formal
	parameter.
	* sem_util.adb (Incomplete_Or_Partial_View): Likewise.  Do not look
	for an incomplete view if it is set to True.
	* sem_ch6.adb (Check_Conformance.Null_Exclusions_Match): Pass True
	for Partial_Only in the call to Incomplete_Or_Partial_View.

2025-11-12  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/122640
	* sem_ch3.adb (Analyze_Object_Declaration): Set Is_True_Constant
	on entry for constants and Never_Set_In_Source in all cases.
	If an initialization expression is present, set Has_Initial_Value
	and Is_True_Constant on variables.

2025-11-12  Ronan Desplanques  <desplanques@adacore.com>

	* sem_ch3.adb (Analyze_Object_Declaration): Call Mutate_Ekind earlier.

2025-11-04  Bob Duff  <duff@adacore.com>

	PR ada/118208
	* exp_ch5.adb
	(Expand_Assign_With_Target_Names.Replace_Target):
	Remove code setting Entity to Empty.
	* sinfo.ads (Has_Target_Names):
	Improve comment: add "@" to clarify what "target name"
	means, and remove the content-free phrase "and must
	be expanded accordingly."

2025-10-24  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/118782
	* styleg.adb (Is_Box_Comment): Also stop the loop at EOF.

2025-10-24  Nicolas Boulenguez  <nicolas@debian.org>

	PR ada/81087
	* gnatlink.adb (Is_Prefix): Move around, streamline and return false
	when the prefix is not strict.
	(Gnatlink): Fix other instances of incorrect lower bound assumption.

2025-10-20  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/107536
	* exp_ch2.adb (Expand_Renaming): Mark the entity as referenced.

2025-10-05  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/118343
	* Makefile.rtl (LLVM_BUILD): Delete.

2025-09-30  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/117517
	* sem_attr.adb (Resolve_Attribute) <Attribute_Reduce>: Try to
	resolve the reducer first.  Fix casing of error message.

2025-09-22  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/121968
	* sem_ch12.adb (Associations.Find_Assoc): Add guard for clauses.
	* sem_dim.adb (Analyze_Dimension_Array_Aggregate): Add test for
	N_Iterated_Component_Association nodes.

2025-09-15  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/trans.cc (gnat_to_gnu)
	<N_Object_Renaming_Declaration>: Deal with objects whose elaboration
	is deferred.
	(process_freeze_entity): Deal with renamed objects whose elaboration
	is deferred.

2025-09-15  Eric Botcazou  <ebotcazou@adacore.com>

	* checks.adb (Apply_Discriminant_Check): Remove undocumented test
	on Is_Aliased_View applied to the left-hand side to skip the check
	in the case where the subtypes are the same, and replace it with a
	test that the subtypes are constrained.

2025-09-15  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_util.adb (Finalize_Address): In an untagged derivation, call
	Root_Type on the full view of the base type if the partial view is
	itself not a derived type.
	(Is_Untagged_Derivation): Minor formatting tweak.

2025-09-11  Gary Dismukes  <dismukes@adacore.com>

	* exp_aggr.adb (Build_Container_Aggr_Code.Build_Size_Expr): In the case
	of an association with a single choice, only call Update_Choices when
	the choice expression is nonstatic.

2025-09-11  Javier Miranda  <miranda@adacore.com>

	* sem_util.adb (Needs_One_Actual): Add support for untagged record
	types when the sources are compiled with Core Extensions allowed.

2025-09-11  Viljar Indus  <indus@adacore.com>

	* sem_ch13.adb (Analyze_Aspect_Definitions): Create a temporary
	pragma for the non-task and access type cases.

2025-09-11  Marc Poulhiès  <poulhies@adacore.com>

	* s-pack.adb.tmpl: Typo fix in comment.

2025-09-11  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Refine test for
	protected procedures; fix typo in comment.

2025-09-11  Denis Mazzucato  <mazzucato@adacore.com>

	* exp_ch3.adb (Init_Formals): Remove the check on Global_No_Tasking.
	* sem.adb: Fix typo.

2025-09-11  Gary Dismukes  <dismukes@adacore.com>

	* exp_aggr.adb (Build_Container_Aggr_Code.To_Int): Replace existing
	conditional expression with call to Expr_Value.

2025-09-11  Steve Baird  <baird@adacore.com>

	* freeze.adb (Freeze_Profile): Do not emit a warning stating that
	a formal parameter's size is 8 if the parameter's size is not 8.

2025-09-11  Marc Poulhiès  <poulhies@adacore.com>

	* gcc-interface/trans.cc (gnat_to_gnu): Fix typo in comment.

2025-08-08  Release Manager

	* GCC 15.2.0 released.

2025-07-31  Eric Botcazou  <ebotcazou@gcc.gnu.org>

	PR ada/120440
	* gcc-interface/Makefile.in (GNATLINK_OBJS): Add s-excmac.o.
	(GNATMAKE_OBJS): Likewise.

2025-07-25  Bob Duff  <duff@adacore.com>

	* sem_ch12.adb (Check_Formal_Package_Instance):
	Do nothing in case of E_Subprogram_Body.

2025-07-25  Ronan Desplanques  <desplanques@adacore.com>

	* sem_ch3.adb (Build_Derived_Record_Type): Set flag appropriately.

2025-07-22  Ronan Desplanques  <desplanques@adacore.com>

	* gen_il-fields.ads (Is_Implicit_Full_View): New field.
	* gen_il-gen-gen_entities.adb (Type_Kind): Use new field.
	* einfo.ads (Is_Implicit_Full_View): Document new field.
	* exp_ch7.adb (Make_Adjust_Call, Make_Init_Call, Make_Final_Call): Use
	new field.
	* exp_util.adb (Finalize_Address): Likewise.
	* sem_ch3.adb (Copy_And_Build): Set new field.

2025-07-22  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_util.ads (May_Generate_Large_Temp): Delete.
	* exp_util.adb (May_Generate_Large_Temp): Likewise.
	(Safe_Unchecked_Type_Conversion): Do not take stack checking into
	account to compute the result.

2025-07-22  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_util.adb (Safe_Unchecked_Type_Conversion): Always return True
	if the expression is the prefix of an N_Selected_Component.

2025-07-22  Piotr Trojanek  <trojanek@adacore.com>

	* sem_util.adb (Get_Actual_Subtype): Do the same for GCC and GNATprove
	backends.

2025-07-22  Eric Botcazou  <ebotcazou@adacore.com>

	* sem_util.adb (Get_Actual_Subtype): Only create a new subtype when
	the expander is active.  Remove a useless test of type inequality,
	as well as a useless call to Set_Has_Delayed_Freeze on the subtype.

2025-07-22  Ghjuvan Lacambre  <lacambre@adacore.com>

	* exp_util.adb (Finalize_Address): Prevent infinite loop

2025-07-21  Eric Botcazou  <ebotcazou@gcc.gnu.org>

	PR ada/121184
	* styleg.adb (Check_Comment): Use consistent warning message.

2025-07-14  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/121056
	* sem_ch4.adb (Try_Object_Operation.Try_Primitive_Operation): Add
	test on Is_Record_Type before accessing Underlying_Record_View.

2025-07-04  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/utils.cc (make_packable_type): Clear the TYPE_PACKED
	flag in the case where the alignment is bumped.

2025-07-04  Ronan Desplanques  <desplanques@adacore.com>

	* exp_ch7.adb (Make_Final_Call): Tweak search of Finalize primitive.
	* exp_util.adb (Finalize_Address): Likewise.

2025-07-04  Eric Botcazou  <ebotcazou@adacore.com>

	* freeze.adb (Check_Compile_Time_Size): Try harder to see whether
	the bounds of array types are known at compile time.

2025-07-04  Steve Baird  <baird@adacore.com>

	* mutably_tagged.adb (Make_CW_Size_Compile_Check): Include the
	value of the Size'Class limit in the message generated via a
	Compile_Time_Error pragma.

2025-07-04  Ronan Desplanques  <desplanques@adacore.com>

	* sem_ch13.adb (Analyze_Aspect_Specifications): Fix error emission.

2025-07-03  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/Makefile.in (gnatlib-sjlj): Delete.
	(gnatlib-zcx): Do not modify Frontend_Exceptions constant.
	* libgnat/system-linux-loongarch.ads (Frontend_Exceptions): Delete.

2025-07-03  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/trans.cc (addressable_p): Add COMPG third parameter.
	<COMPONENT_REF>: Do not return true out of alignment considerations
	for non-strict-alignment targets if COMPG is set.
	(Call_to_gnu): Pass true as COMPG in the call to the addressable_p
	predicate if the called subprogram is an initialization procedure.

2025-07-03  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/trans.cc (gnat_to_gnu) <N_Allocator>: Allocate the
	bounds alongside the data if the Is_Constr_Array_Subt_With_Bounds
	flag is set on the designated type.
	<N_Free_Statement>: Take into account the allocated bounds if the
	Is_Constr_Array_Subt_With_Bounds flag is set on the designated type.

2025-07-03  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.cc (gnat_to_gnu_component_type): Validate the
	Component_Size like the size of a type only if the component type
	is actually packed.

2025-07-03  Ronan Desplanques  <desplanques@adacore.com>

	* exp_util.adb (Insert_Actions): Fix check.

2025-07-03  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch6.adb (Expand_Ctrl_Function_Call): Do not bail out for the
	declarations of return objects.

2025-07-03  Ronan Desplanques  <desplanques@adacore.com>

	* exp_ch7.adb (Make_Deep_Record_Body): Fix case of absent Initialize
	primitive.

2025-07-03  Ronan Desplanques  <desplanques@adacore.com>

	* exp_aggr.adb (Generate_Finalization_Actions): Stop assuming that
	initialize primitive exists.

2025-07-03  Ronan Desplanques  <desplanques@adacore.com>

	* exp_ch7.adb (Insert_Actions_In_Scope_Around): Fix condition.

2025-07-03  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch4.adb (Handle_Changed_Representation): Alphabetize local
	variables.  Set the No_Finalize_Actions flag on the assignment.

2025-07-01  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/120705
	* exp_ch6.adb (Needs_BIP_Collection): Always return False if the
	type has relaxed finalization.

2025-07-01  Gary Dismukes  <dismukes@adacore.com>

	* exp_ch3.adb (Build_Heap_Or_Pool_Allocator): Test not Has_Relaxed_Finalization
	as a guard against retrieving BIP_Collection formal (and related code).

2025-07-01  Gary Dismukes  <dismukes@adacore.com>

	* sem_ch3.adb (Constrain_Corresponding_Record): Inherit Class_Wide_Type on the
	created constrained subtype.

2025-07-01  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch7.adb (Shift_Address_For_Descriptor): Add dummy variable
	to make sure that System_Storage_Elements is loaded.

2025-07-01  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch7.adb (Shift_Address_For_Descriptor): New function.
	(Make_Address_For_Finalize): Call above function.
	(Make_Finalize_Address_Stmts): Likewise.
	* exp_util.ads (Is_Constr_Array_Subt_Of_Unc_With_Controlled): New
	predicate.
	* exp_util.adb (Is_Constr_Array_Subt_Of_Unc_With_Controlled): Ditto.
	(Remove_Side_Effects): Call above predicate.
	* sem_ch3.adb (Analyze_Object_Declaration): Likewise.
	* sem_ch4.adb (Analyze_Allocator): Allocate the bounds by setting
	Is_Constr_Array_Subt_With_Bounds when appropriate.

2025-07-01  Javier Miranda  <miranda@adacore.com>

	* sem_ch4.adb (Try_Object_Operation): Handle mutably tagged
	class-wide type prefix.

2025-07-01  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_util.adb (Finalize_Address): Do not go to the root type for
	array types.

2025-07-01  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_util.ads (Is_Finalizable_Access): New predicate.
	(Is_Non_BIP_Func_Call): Delete.
	(Is_Secondary_Stack_BIP_Func_Call): Likewise.
	* exp_util.adb (Is_Finalizable_Access): New predicate.
	(Initialized_By_Aliased_BIP_Func_Call): Delete.
	(Initialized_By_Reference): Likewise.
	(Is_Aliased): Only consider the nontransient object serviced by
	the transient scope.
	(Is_Part_Of_BIP_Return_Statement): Minor tweak.
	(Is_Finalizable_Transient): Remove calls to Initialized_By_Reference
	and Initialized_By_Aliased_BIP_Func_Call.
	Call Is_Finalizable_Access for access objects.
	(Is_Non_BIP_Func_Call): Delete.
	(Is_Secondary_Stack_BIP_Func_Call): Likewise.
	(Requires_Cleanup_Actions): Call Is_Finalizable_Access for access
	objects.
	(Side_Effect_Free): Return True for N_Reference.
	* exp_ch7.adb (Build_Finalizer.Process_Declarations): Call
	Is_Finalizable_Access for access objects.

2025-07-01  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_util.adb (Is_Expression_Of_Func_Return): New predicate.
	(Is_Related_To_Func_Return): Call Is_Expression_Of_Func_Return.
	(Remove_Side_Effects): Generate a temporary for a function call
	that returns a constrained array type with controlled component
	and an unconstrained first subtype.

2025-06-30  Bob Duff  <duff@adacore.com>

	* exp_attr.adb (Attribute_Max_Size_In_Storage_Elements):
	Return Storage_Count'Last converted to universal_integer.

2025-06-30  Eric Botcazou  <ebotcazou@adacore.com>

	* sem_prag.adb (Analyze_Pragma) <Pragma_No_Component_Reordering>:
	Call Find_Type on the first argument of the pragma.

2025-06-30  Steve Baird  <baird@adacore.com>

	* exp_put_image.adb (Build_Record_Put_Image_Procedure): If
	Discriminant_Specifications takes us from the full view of a type
	to an (intentionally) unanalyzed subtree, then instead find
	discriminant entities by calling Discriminant_Specifications on
	the partial view of the type.

2025-06-30  Ronan Desplanques  <desplanques@adacore.com>

	* sem_ch6.adb (Check_Delayed_Subprogram, Possible_Freeze): Restrict
	cases where freezing is delayed.
	* sem_ch6.ads (Check_Delayed_Subprogram): Improve documentation
	comment.
	* sprint.adb (Write_Itype): Improve output.

2025-06-30  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch7.adb (Process_Transient_In_Scope): Bail out if the object
	is an ignored ghost entity.

2025-06-30  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_util.adb (Insert_Actions): Extend special treatment applied
	to freeze nodes to the case of blocks generated for aggregates.

2025-06-28  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/120854
	* sem_eval.adb (Get_String_Val): Be prepared for an integer literal
	after a serious error is detected, and raise PE on other nodes.

2025-06-28  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/120665
	* sem_aggr.adb (Resolve_Container_Aggregate): Use robust guards.

2025-06-12  Eric Botcazou  <ebotcazou@adacore.com>

	* doc/gnat_rm/gnat_language_extensions.rst
	(Generalized Finalization): Document the actual implementation.
	(No_Raise): Move to separate section.
	* gnat_rm.texi: Regenerate.

2025-06-12  Ronan Desplanques  <desplanques@adacore.com>

	* sem_ch3.adb (Build_Derived_Private_Type): Fix test.
	(Build_Derived_Record_Type): Adjust error recovery paths.

2025-06-12  Ronan Desplanques  <desplanques@adacore.com>

	* exp_util.adb (Insert_Actions): Refine test.

2025-06-12  Eric Botcazou  <ebotcazou@adacore.com>

	* doc/gnat_ugn/building_executable_programs_with_gnat.rst (Compiler
	switches) <-O>: Fix long line.
	* gnat_ugn.texi: Regenerate.

2025-06-12  Eric Botcazou  <ebotcazou@adacore.com>

	* usage.adb (Usage): Justify the documentation of common switches
	like that of other switches.  Rework that of the -O switch.
	* doc/gnat_ugn/building_executable_programs_with_gnat.rst (Compiler
	switches) <-O>: Rework and document 'z' and 'g' operands.
	* doc/gnat_ugn/gnat_and_program_execution.rst (Optimization Levels):
	Rework and document -Oz and -Og switches.
	* gnat_ugn.texi: Regenerate.

2025-06-10  Gary Dismukes  <dismukes@adacore.com>

	* einfo.ads: Revise comment about Dynamic_Predicate flag to make it
	more accurate.
	* sem_case.adb (Check_Choices): Test "not Has_Static_Predicate_Aspect"
	as additional guard for error about use of subtype with nonstatic
	predicate as a case choice. Improve related error message.

2025-06-10  Eric Botcazou  <ebotcazou@adacore.com>

	* freeze.adb (Freeze_Static_Object): Do not issue any error message
	for compiler-generated entities.

2025-06-10  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch4.adb (Insert_Conditional_Object_Declaration): Deal with a
	transient scope being created around the declaration.
	* freeze.adb (Freeze_Entity): Do not call Freeze_Static_Object for
	a renaming declaration.

2025-06-10  Gary Dismukes  <dismukes@adacore.com>

	* exp_aggr.adb (Build_Container_Aggr_Code.To_Int): Apply Enumeration_Pos
	to Entity (Expr) rather than Expr.

2025-06-10  Eric Botcazou  <ebotcazou@adacore.com>

	* sem_ch12.adb (Copy_Generic_Node): Do not call Root_Type to find
	the root type of an aggregate of a derived tagged type.

2025-06-10  Ronan Desplanques  <desplanques@adacore.com>

	* libgnarl/s-stusta.adb (Compute_All_Tasks): Skip terminated tasks.

2025-06-09  Gary Dismukes  <dismukes@adacore.com>

	* sem_ch3.adb (Constrain_Index): In the case of a fixed-lower-bound index,
	set Etype of the newly created itype's Scalar_Range from the index's Etype.
	* sem_ch12.adb (Validate_Array_Type_Instance): If the actual subtype is
	a fixed-lower-bound type, then check again the Etype of its Scalar_Range.

2025-06-09  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Analyze_Pragma): Fix conditions for legality checks on
	formal type declarations.

2025-06-09  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Analyze_Pragma): If pragmas apply to a formal array
	type, then set the flags on the base type.

2025-06-09  Gary Dismukes  <dismukes@adacore.com>

	* exp_aggr.adb (Expand_Container_Aggregate): Use the Base_Type of the
	subtype provided by the context as the subtype of the temporary object
	initialized by the aggregate.

2025-06-09  Piotr Trojanek  <trojanek@adacore.com>

	* exp_attr.adb (Expand_N_Attribute_Reference): When expanding attribute
	Valid, use signedness from the validated view, not from its base type.

2025-06-09  Gary Dismukes  <dismukes@adacore.com>

	* contracts.adb (Inherit_Condition): Remove Assoc_List and its uses
	along with function Check_Condition, since mapping of formals will
	effectively be done in Build_Class_Wide_Expression (by Replace_Entity).
	* exp_util.adb (Replace_Entity): Only rewrite entity references in
	function calls that qualify according to the result of calling the
	new function Call_To_Parent_Dispatching_Op_Must_Be_Mapped.
	(Call_To_Parent_Dispatching_Op_Must_Be_Mapped): New function that
	determines whether a function call to a primitive of Par_Subp
	associated tagged type needs to be mapped (according to whether
	it has any actuals that reference controlling formals of the
	primitive).

2025-06-09  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch4.adb (Insert_Conditional_Object_Declaration): Remove Decl
	formal parameter, add Typ and Const formal parameters.
	(Expand_N_Case_Expression): Fix pasto in comment.  Adjust call to
	Insert_Conditional_Object_Declaration and tidy up surrounding code.
	(Expand_N_If_Expression): Adjust couple of calls to
	Insert_Conditional_Object_Declaration.

2025-06-06  Javier Miranda  <miranda@adacore.com>

	* sem_ch4.adb (Constant_Indexing_OK): Add missing support for
	RM 4.1.6(13/3), and improve performance to avoid climbing more
	than needed. Add documentation.
	(Try_Indexing_Function): New subprogram.
	(Expr_Matches_In_Formal): Added new formals.
	(Handle_Selected_Component): New subprogram.
	(Has_IN_Mode): New subprogram.
	(Try_Container_Indexing): Add documentation, code reorganization
	and extend its functionality to improve its support for prefixed
	notation calls.

2025-06-06  Eric Botcazou  <ebotcazou@adacore.com>

	* sem_ch10.adb (Install_Siblings.In_Context): Add missing guard.

2025-06-06  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch4.adb (Insert_Conditional_Object_Declaration): Make sure the
	object is allocated properly by the code generator at library level.

2025-06-06  Steve Baird  <baird@adacore.com>

	* sem_ch4.adb
	(Find_Unary_Types): Because we reanalyze names in an instance,
	we sometimes have to take steps to filter out extraneous name
	resolution candidates that happen to be visible at the point of the
	instance declaration. Remove some code that appears to have been
	written with this in mind. This is done for two reasons. First, the
	code sometimes doesn't work (possibly because the In_Instance test
	is not specific enough - it probably should be testing to see whether
	we are in an instance of the particular generic in which the result
	of calling Corresponding_Generic_Type was declared) and causes correct
	code to be rejected. Second, the code seems to no longer be necessary
	(possibly because of subsequent fixes in this area which are not
	specific to unary operators).

2025-06-06  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_aggr.adb (Expand_Record_Aggregate): Use the named form for the
	second actual parameter in the call to Duplicate_Subexpr.
	* exp_attr.adb (Expand_Size_Attribute): Likewise.
	* exp_ch5.adb (Expand_Assign_Array): Likewise.
	(Expand_Assign_Array_Bitfield): Likewise.
	(Expand_Assign_Array_Bitfield_Fast): Likewise.
	* exp_util.ads (Duplicate_Subexpr): Add New_Scope formal parameter.
	(Duplicate_Subexpr_No_Checks): Likewise.
	(Duplicate_Subexpr_Move_Checks): Likewise.
	* exp_util.adb (Build_Allocate_Deallocate_Proc): Pass Proc_Id as the
	actual for New_Scope in the calls to Duplicate_Subexpr_No_Checks.
	(Duplicate_Subexpr): Add New_Scope formal parameter and forward it
	in the call to New_Copy_Tree.
	(Duplicate_Subexpr_No_Checks): Likewise.
	(Duplicate_Subexpr_Move_Checks): Likewise.

2025-06-06  Piotr Trojanek  <trojanek@adacore.com>

	* checks.adb (Insert_Valid_Check): Set flag Assignment_OK in the object
	declaration inserted for the validity checks.

2025-06-05  Javier Miranda  <miranda@adacore.com>

	* exp_ch7.adb (Process_Object_Declaration): Avoid generating
	duplicate names for master nodes.

2025-06-05  Steve Baird  <baird@adacore.com>

	* sem_util.adb
	(Side_Effect_Free_Statements): Return False if the statement list
	includes an explicit (i.e. Comes_From_Source) raise statement.

2025-06-05  Ronan Desplanques  <desplanques@adacore.com>

	* exp_ch4.adb (Tagged_Membership): Fix for protected types.

2025-06-05  Ronan Desplanques  <desplanques@adacore.com>

	* exp_attr.adb (Interunit_Ref_OK): Tweak categorization of compilation
	units.

2025-06-05  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_aggr.adb (Build_Two_Pass_Aggr_Code): New function containing
	most of the code initially present in Two_Pass_Aggregate_Expansion.
	(Two_Pass_Aggregate_Expansion): Remove redundant N parameter.
	Implement built-in-place expansion for (static) object declarations
	and allocators, using Build_Two_Pass_Aggr_Code for the main work.
	(Expand_Array_Aggregate): Adjust Two_Pass_Aggregate_Expansion call.
	Replace Etype (N) by Typ in a couple of places.
	* exp_ch3.adb (Expand_Freeze_Array_Type): Remove special case for
	two-pass array aggregates.
	(Expand_N_Object_Declaration): Do not adjust the object when it is
	initialized by a two-pass array aggregate.
	* exp_ch4.adb (Expand_Allocator_Expression): Apply the processing
	used for container aggregates to two-pass array aggregates.
	* exp_ch6.adb (Validate_Subprogram_Calls): Skip calls present in
	initialization expressions of N_Object_Declaration nodes that have
	No_Initialization set.
	* sem_ch3.adb (Analyze_Object_Declaration): Detect the cases of an
	array originally initialized by an aggregate consistently.

2025-06-05  Viljar Indus  <indus@adacore.com>

	* doc/gnat_rm/implementation_defined_attributes.rst: Update the
	documentation for Valid_Value.
	* sem_attr.adb (Analyze_Attribute): Reject types where
	the root type originates from Standard.
	* gnat_rm.texi: Regenerate.

2025-06-05  Gary Dismukes  <dismukes@adacore.com>

	* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Change call to Make_Assignment
	for the indexed aggregate object to call Change_Make_OK_Assignment instead.

2025-06-05  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch6.adb (Expand_Actuals): Remove obsolete comment.
	(Make_Build_In_Place_Call_In_Anonymous_Context): Always use a proper
	object declaration initialized with the function call in the cases
	where a temporary is needed, with Assignment_OK set on it.
	* sem_util.adb (Entity_Of): Deal with rewritten function call first.

2025-06-05  Steve Baird  <baird@adacore.com>

	* exp_attr.adb (Expand_N_Attribute_Reference): When accessing the
	maps declared in package Cached_Attribute_Ops, the key value
	passed to Get or to Set should never be the entity node for a
	subtype. Use the entity of the corresponding type declaration
	instead.

2025-06-05  Steve Baird  <baird@adacore.com>

	* sem_res.adb
	(Set_Mixed_Mode_Operand): If we are about to call Resolve
	passing in Any_Fixed as the expected type, then instead pass in
	the fixed point type of the other operand (i.e., B_Typ).

2025-06-05  Gary Dismukes  <dismukes@adacore.com>

	* sem_util.adb (Check_Function_Writable_Actuals): Add handling for
	N_Iterated_Component_Association and N_Iterated_Element_Association.
	Fix a typo in an RM reference (6.4.1(20/3) => 6.4.1(6.20/3)).
	(Collect_Expression_Ids): New procedure factoring code for collecting
	identifiers from expressions of aggregate associations.
	(Handle_Association_Choices): New procedure factoring code for handling
	id collection for expressions of aggregate associations with multiple
	choices. Removed redundant test of Box_Present from original code.

2025-05-05  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/120104
	* exp_ch3.adb (Expand_Freeze_Record_Type): For a controlled tagged
	type, freeze only the controlled primitives that are present.

2025-04-30  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/112958
	* Makefile.rtl (LIBGNAT_TARGET_PAIRS) [x86 FreeBSD]: Add specific
	version of s-dorepr.adb.
	* libgnat/s-dorepr__freebsd.adb: New file.

2025-04-30  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/112958
	* init.c (__gnat_error_handler) [__FreeBSD__]: Fix typo.

2025-04-25  Release Manager

	* GCC 15.1.0 released.

2025-04-12  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/119643
	* sem_ch8.adb (Inherit_Renamed_Profile): Add guard against the
	peculiarities of Natural and Positive.

2025-04-07  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/utils.cc (convert) <POINTER_TYPE>: Use fold_convert
	to convert between thin pointers.  If the source is a thin pointer
	with zero offset from the base and the target is a pointer to its
	array, displace the pointer after converting it.
	* gcc-interface/utils2.cc (build_unary_op) <ATTR_ADDR_EXPR>: Use
	fold_convert to convert the address before displacing it.

2025-04-04  Eric Botcazou  <ebotcazou@adacore.com>

	* libgnat/a-ngcoar.adb (Eigensystem): Adjust notation and fix the
	layout of the real symmetric matrix in the main comment.  Adjust
	the layout of the associated code accordingly and correctly turn
	the 2Nx1 real vectors into Nx1 complex ones.
	(Eigenvalues): Minor similar tweaks.
	* libgnat/a-ngrear.adb (Jacobi): Minor tweaks in the main comment.
	Adjust notation and corresponding parameter names of functions.
	Fix call to Unit_Matrix routine.  Adjust the comment describing
	the various kinds of iterations to match the implementation.

2025-03-27  Eric Botcazou  <ebotcazou@adacore.com>

	* libgnarl/s-tasini.adb (Tasking_Runtime_Initialize): Add pragma
	Linker_Constructor for the procedure.

2025-03-25  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/119440
	* gcc-interface/Make-lang.in (GCC_LINK): Filter out -pie in stage 1
	(GCC_LLINK): Likewise.
	* gcc-interface/Makefile.in (COMPILER): Delete and replace by CC.
	(COMPILER_FLAGS): Delete.
	(ALL_COMPILERFLAGS): Delete and replace by ALL_CFLAGS.
	(ALL_ADAFLAGS): Move around.
	(enable_host_pie): New substituted variable.
	(LD_PICFLAG): Likewise.  Do not add it to TOOLS_LIBS.
	(LIBIBERTY): Test enable_host_pie.
	(LIBGNAT): Likewise and use libgnat_pic.a if yes.
	(TOOLS_FLAGS_TO_PASS): Pass $(PICFLAG) under CFLAGS & $(LD_PICFLAG)
	under LDFLAGS.  Also pass through ADA_CFLAGS.
	(common-tools): Add $(ALL_CFLAGS) $(ADA_CFLAGS) to the --GCC string
	of $(GNATLINK) commands.
	(../../gnatdll$(exeext)): Likewise.
	(gnatmake-re): Likewise.
	(gnatlink-re): Likewise.
	(gnatlib-shared-dual): Remove all the object files at the end.

2025-03-19  Eric Botcazou  <ebotcazou@adacore.com>

	* gnatvsn.adb (Gnat_Free_Software): Fix message formatting.

2025-03-19  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Record_Subtype>: Set
	the may_alias attribute if a specific GCC type is built.

2025-03-19  Eric Botcazou  <ebotcazou@adacore.com>

	* gen_il-gen-gen_nodes.adb (N_Formal_Package_Declaration): Use
	N_Declaration instead of Node_Kind as ancestor.
	* sem_ch12.adb (Get_Formal_Entity): Remove obsolete alternative.
	(Instantiate_Formal_Package): Take into account the abbreviated
	instances in the main loop running over the actuals of the local
	package created for the formal package.

2025-02-04  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/118731
	* sem_aggr.adb (Resolve_Iterated_Association): Add missing guard.

2025-02-01  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/118712
	* sem_warn.adb (Check_References): Deal with small adjustments of
	references.

2025-01-31  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/utils.cc (gnat_pushdecl): Clear TREE_PUBLIC on
	functions really nested in another function.

2025-01-22  Arsen Arsenović  <arsen@aarsen.me>

	* gcc-interface/lang-specs.h: Replace %{nostdinc*} %{nostdlib*}
	with %{nostdinc} %{nostdlib}.

2025-01-14  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/118459
	* libgnat/s-objrea.ads (Object_Arch): Add S390 and RISCV.
	* libgnat/s-objrea.adb (EM_S390): New named number.
	(EM_RISCV): Likewise.
	(ELF_Ops.Initialize): Deal with EM_S390 and EM_RISCV.
	(Read_Address): Deal with S390 and RISCV.

2025-01-13  Pascal Obry  <obry@adacore.com>

	* doc/gnat_ugn/platform_specific_information.rst: Update.
	* gnat_ugn.texi: Regenerate.

2025-01-13  Javier Miranda  <miranda@adacore.com>

	* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Restore calls
	to Preanalyze_Spec_Expression that were replaced by calls to
	Preanalyze_And_Resolve. Add documentation.
	(Check_Aspect_At_Freeze_Point): Ditto.

2025-01-13  Pascal Obry  <obry@adacore.com>

	* mdll.adb: For the created DLL to be relocatable we do not want to use
	the base file name when calling gnatdll.
	* gnatdll.adb: Removes option -d which is not working anymore. And
	when using a truly relocatable DLL the base-address has no real
	meaning. Also reword the usage string for -d as we do not want to
	specify relocatable as gnatdll can be used to create both
	relocatable and non relocatable DLL.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* libgnat/a-strunb.ads: Remove redundant parentheses inside NOT
	operators.

2025-01-13  Javier Miranda  <miranda@adacore.com>

	* sem_util.adb (Build_Actual_Subtype_Of_Component): No action
	under preanalysis.
	* sem_ch5.adb (Set_Assignment_Type): If the right-hand side contains
	target names, expansion has been disabled to prevent expansion that
	might move target names out of the context of the assignment statement.
	Restore temporarily the current compilation mode so that the actual
	subtype can be built.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* par-ch4.adb (P_Factor): Warn when the operand of a unary operator
	doesn't require parentheses.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* libgnat/s-genbig.adb: Remove redundant parentheses in comments.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* checks.adb, exp_dist.adb, exp_imgv.adb, exp_util.adb,
	libgnarl/a-reatim.adb, libgnat/a-coinve.adb, libgnat/a-nbnbre.adb,
	libgnat/a-ngcoty.adb, libgnat/a-ngelfu.adb, libgnat/a-ngrear.adb,
	libgnat/a-strbou.ads, libgnat/a-strfix.ads, libgnat/a-strsea.adb,
	libgnat/a-strsea.ads, libgnat/a-strsup.ads,
	libgnat/a-strunb__shared.ads, libgnat/g-alleve.adb,
	libgnat/g-spitbo.adb, libgnat/s-aridou.adb, libgnat/s-arit32.adb,
	libgnat/s-dourea.ads, libgnat/s-genbig.adb, libgnat/s-imager.adb,
	libgnat/s-statxd.adb, libgnat/s-widthi.adb, sem_attr.adb, sem_ch10.adb,
	sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_prag.adb,
	sem_res.adb, uintp.adb: Remove redundant parentheses inside NOT and ABS
	operators.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* par-ch3.adb (P_Discrete_Range): Detect redundant parentheses in the
	lower bound like in the upper bound.

2025-01-13  Gary Dismukes  <dismukes@adacore.com>

	* sem_aggr.adb (Resolve_Aggregate): Add another condition to prevent rewriting
	an aggregate whose type is an array of characters, testing for the presence of
	predicates on the component type.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* exp_ch4.adb: (Expand_N_Not_In): Preserve Alternatives in expanded
	membership operator just like preserving Right_Opnd (though only
	one of these fields is present at a time).
	* par-ch4.adb (P_Membership_Test): Remove redundant setting of fields
	to their default values.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* par-ch3.adb (P_Discrete_Range): Replace N_Subexpr, which was catching
	all subexpressions, with kinds that catch nodes that require
	parentheses to become "simple expressions".

2025-01-13  Eric Botcazou  <ebotcazou@adacore.com>

	* libgnat/s-valrea.adb (Large_Powfive) [2 parameters]: Add a couple
	of additional comments.

2025-01-13  Piotr Trojanek  <trojanek@adacore.com>

	* par-ch4.adb (P_Relation): Prevent Expr_Form to be overwritten when
	parsing the raise expression itself.
	(P_Simple_Expression): Fix manipulation of Expr_Form.

2025-01-10  squirek  <squirek@adacore.com>

	* accessibility.adb:
	(Innermost_master_Scope_Depth): Add special case for expressions
	within library level subprograms.

2025-01-10  Marc Poulhiès  <poulhies@adacore.com>

	* env.h: Remove last empty line.

2025-01-10  Piotr Trojanek  <trojanek@adacore.com>

	* contracts.adb (Build_Call_Helper_Decl): Tune whitespace.
	* exp_attr.adb (Analyze_Attribute): Set Of_Present while
	creating the node; reorder setting Subtype_Indication to match the
	syntax order.
	* exp_ch3.adb (Build_Equivalent_Aggregate): Likewise for Box_Present
	and Expression properties.
	* sem_ch12.adb (Analyze_Formal_Derived_Type): Set type properties
	when creating the nodes.
	* sem_ch3.adb (Check_Anonymous_Access_Component): Likewise.

2025-01-10  Piotr Trojanek  <trojanek@adacore.com>

	* gen_il-gen-gen_nodes.adb (Gen_Nodes): Change Is_Effective_Use_Clause
	from syntactic to semantic property.

2025-01-10  Piotr Trojanek  <trojanek@adacore.com>

	* exp_ch3.adb (Predef_Spec_Or_Body): Add explicit parameter
	associations, because now the Empty_List actual parameter would be
	confused as being for the Aspect_Specifications formal parameter.
	* gen_il-gen-gen_nodes.adb (Gen_Nodes): Reorder syntactic fields.
	* sem_util.adb (Declare_Indirect_Temp): Add explicit parameter
	association, because now the parameter will be interpreted as a
	subpool handle name.

2025-01-09  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/18765
	* debug.adb (d_q): Document new usage.
	* sem_ch6.adb (New_Overloaded_Entity): Apply the special processing
	to all equality operators whose base result type is Boolean, but do
	not enforce the new Ada 2012 freezing rule if the result type is a
	proper subtype of it and the -gnatd_q switch is specified.

2025-01-09  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/118274
	* sem_ch4.adb (Check_Arithmetic_Pair.Has_Fixed_Op): Use the original
	node of the operator to identify the case of an expanded name whose
	prefix is the package Standard.

2025-01-09  squirek  <squirek@adacore.com>

	* libgnat/a-comutr.adb, libgnat/a-comutr.ads:
	Move the declarations of iterator types into the specification and
	add additional comments.

2025-01-09  Javier Miranda  <miranda@adacore.com>

	* freeze.adb (Freeze_Expr_Types): Reverse patch; that is, restore
	calls to Preanalyze_Spec_Expression instead of Preanalyze_And_Resolve
	for the sake of consistency with Analyze_Expression_Function. Patch
	suggested by Eric Botcazou.
	* exp_put_image.adb (Image_Should_Call_Put_Image): Ensure that
	function Defining_Identifier is called with a proper node to
	avoid internal assertion failure.

2025-01-07  Marc Poulhiès  <poulhies@adacore.com>

	* libgnat/a-calcon.ads: Adjust.
	* libgnat/a-calend.ads: Adjust.

2025-01-07  Alexandre Oliva  <oliva@adacore.com>

	* gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS):
	Drop g-cpp, g-cppexc and g-cppstd.

2025-01-07  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/trans.cc (Call_to_gnu): Always use the return slot
	optimization if the parent node is an initialization statement.
	(gnat_to_gnu) <N_Assignment_Statement>: Build an INIT_EXPR instead
	of a MODIFY_EXPR if this is an initialization statement.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* gen_il-fields.ads (Opt_Field_Enum): Remove flag.
	* gen_il-gen-gen_nodes.adb (N_Attribute_Definition_Clause): Remove
	field.
	* sem_ch13.adb (Validate_Address_Clauses): Remove read of the flag.
	* sinfo.ads (Address_Warning_Posted): Remove flag description.

2025-01-07  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_aggr.adb (Packed_Array_Aggregate_Handled): Remove declaration
	and handler for Not_Handled local exception. Check the return value
	of Get_Component_Val instead.
	(Get_Component_Val): Return No_Uint instead of raising Not_Handled.

2025-01-07  Javier Miranda  <miranda@adacore.com>

	* exp_util.adb (Insert_Actions): Document behavior under strict
	preanalysis.
	* sem.ads (In_Strict_Preanalysis): New subprogram.
	(Preanalysis_Active): Replace 'and' operator by 'and then'.
	* sem.adb (In_Strict_Preanalysis): Ditto.
	* sem_attr.adb (Check_Dereference): Replace In_Spec_Expression
	occurrence by call to Preanalysis_Active, and document it.
	(Resolve_Attribute [Atribute_Access]): Ditto.
	(Eval_Attribute): No evaluation under strict preanalysis.
	(Validate_Static_Object_Name): No action under strict preanalysis.
	* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Replace
	calls to Preanalyze_Spec_Expression by calls to Preanalyze_And_Resolve.
	(Check_Aspect_At_Freeze_Point): Ditto.
	(Resolve_Aspect_Expressions [Dynamic/Static/Predicate aspects]): Code
	cleanup adjusting the code to emulate Preanalyze_And_Resolve, instead
	of Preanalyze_Spec_Expression.
	(Resolve_Aspect_Expressions [CPU/Interrupt_Priority/Priority/
	Storage_Size aspects]): Replace calls to Preanalyze_Spec_Expression
	by call to Preanalyze_And _Resolve.
	* sem_ch3.adb (Analyze_Object_Declaration): Replace In_Spec_Expression
	occurrence by call to Preanalysis_Active.
	(Find_Type_Of_Object): Add documentation.
	* sem_ch4.adb (Analyze_Case_Expression): Replace In_Spec_Expression
	occurrence by call to Preanalysis_Active.
	* sem_ch6.adb (Analyze_Expression_Function): Minor code reorganization
	moving the code preanalyzing the expression after the new body has
	been inserted in the tree to ensure that its Parent attribute is
	available for preanalysis.
	* sem_cat.adb (Validate_Static_Object_Name): No action under strict
	preanalysis.
	* sem_elab.adb (Check_For_Eliminated_Subprogram): Replace In_Spec_Expression
	occurrence by call to Preanalysis_Active.
	* sem_eval.adb (Eval_Intrinsic_Call [Name_Enclosing_Entity]): Ditto.
	* sem_elim.adb (Check_For_Eliminated_Subprogram): Ditto.
	* sem_res.adb (Resolve_Entity_Name): Ditto.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* repinfo-input.adb (Decode_Name, Read_Name_With_Prefix): Use constant
	overlay with pragma Import.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* exp_disp.adb (Write_DT): Add guards that prevent crashes on illegal
	node numbers.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* diagnostics-pretty_emitter.adb (Get_Last_Line_Char): Fix whitespace.
	* sem_aggr.adb (Resolve_Array_Aggregate): Fix style.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* sem_util.adb (Is_Null_Record_Definition): Remove check for
	Component_List being present after using it; replace check for
	component item being a component declaration with an assertion;
	fix style in comment.

2025-01-07  Ronan Desplanques  <desplanques@adacore.com>

	* exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Fix abort
	deferral.

2025-01-07  Steve Baird  <baird@adacore.com>

	* gen_il-fields.ads: add new Renames_Limited_View field.
	* gen_il-gen-gen_entities.adb: add Renames_Limited_View flag for
	packages.
	* einfo.ads: add comment documenting Renames_Limited_View flag.
	* sem_ch8.adb (Analyze_Package_Renaming): Set new Renames_Limited_View
	flag. Test new Renames_Limited_View flag instead of calling
	Has_Limited_With. If Has_Limited_With is True, that just means
	that somebody, sometime during this compilation needed to
	reference the limited view of the package; so that function
	returns True too often to be used here.
	(Find_Expanded_Name): Test new Renames_Limited_View flag instead of
	calling Has_Limited_With.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* contracts.adb (Inherit_Pragma): Don't set flag Is_Inherited_Pragma.
	* gen_il-fields.ads (Opt_Field_Enum): Remove field identifier.
	* gen_il-gen-gen_nodes.adb (N_Pragma): Remove field from node.
	* sinfo.ads (Is_Inherited_Pragma): Remove field description.
	(N_Pragma): Remove field reference.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Analyze_Attribute): Replace runtime conversion
	with existing constant.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* sem_attr.adb (Analyze_Attribute): Simplify logic.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* exp_attr.adb (Expand_N_Attribute_Reference): Remove explicit
	handling of attributes related to Ada 2012 iterators.
	* sem_attr.adb (Analyze_Attribute, Eval_Attribute): Likewise;
	move attribute Reduce according to alphabetic order.
	* snames.adb-tmpl (Get_Attribute_Id): Add support for new internal
	attributes.
	* snames.ads-tmpl: Recognize names of new internal attributes.
	(Attribute_Id): Recognize new internal attributes.
	(Internal_Attribute_Id): Likewise.
	(Is_Internal_Attribute_Name): Avoid duplication in comment.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* accessibility.adb (First_Selector): Remove redundant and locally
	inconsistent parenthesis.
	(Check_Return_Construct_Accessibility): Remove qualifier from list
	operation.
	* sem_util.adb (Is_Prim_Of_Abst_Type_With_Nonstatic_CW_Pre_Post):
	Likewise.

2025-01-07  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch7.ads (Store_After_Actions_In_Scope_Without_Analysis): New
	procedure declaration.
	* exp_ch7.adb (Store_New_Actions_In_Scope): New procedure.
	(Store_Actions_In_Scope): Call Store_New_Actions_In_Scope when the
	target list is empty.
	(Store_After_Actions_In_Scope_Without_Analysis): New procedure body.
	* exp_aggr.adb (Expand_Container_Aggregate): For a declaration that
	is wrapped in a transient scope, also defer the analysis of the new
	code until after the declaration is analyzed.

2025-01-07  Eric Botcazou  <ebotcazou@adacore.com>

	* libgnat/s-powflt.ads (Maxpow_Exact): Minor comment fix.
	* libgnat/s-powlfl.ads (Maxpow_Exact): Likewise.
	* libgnat/s-powllf.ads (Maxpow_Exact): Likewise.
	* libgnat/s-valrea.adb (Large_Powfive) [1 parameter]: Exit the loop
	as soon as the result saturates to +Inf.
	(Large_Powfive) [2 parameters]: Likewise.

2025-01-07  Alexandre Oliva  <oliva@adacore.com>

	* libgnat/system-vxworks-ppc-rtp-smp.ads: Drop
	--specs=vxworks-ppc-link.spec from Linker_Options.
	* vxworks-smp-ppc-link.spec: Delete.

2025-01-07  Ronan Desplanques  <desplanques@adacore.com>

	* atree.adb (Parent_Or_List_Containing): New function.
	* atree.ads (Parent_Or_List_Containing): Likewise.
	* gen_il-fields.ads: Add new field.
	* gen_il-gen-gen_nodes.adb (Gen_Nodes): Extend handled sequence of
	statements node.
	* par-ch11.adb (P_Handled_Sequence_Of_Statements, P_Exception_Handler):
	Add new syntactic construct.
	* par-ch5.adb (P_Sequence_Of_Statements): Likewise.
	* par.adb: Likewise.
	* par-util.adb (Check_Future_Keyword): Warn that "finally" becomes a
	reserved word with extensions.
	* scans.adb (Initialize_Ada_Keywords): Add new reserved word.
	* snames.adb-tmpl: Likewise.
	* snames.ads-tmpl: Likewise.
	* scans.ads: Likewise.
	* sem_ch11.adb (Analyze_Handled_Statements): Adapt to new node field.
	* sem_ch5.adb (Analyze_Exit_Statement): Add legality check.
	(Analyze_Goto_Statement): Likewise.
	* sem_ch6.adb (Analyze_Return_Statement): Likewise.
	* sinfo-utils.adb (Lowest_Common_Ancestor, Destroy_Element): New
	subprograms.
	* sinfo-utils.ads (Lowest_Common_Ancestor): New function.
	* sinfo.ads: Add documentation for new field.
	* xsnamest.adb: Fix typo in comment.
	* doc/gnat_rm/gnat_language_extensions.rst: Document new extension.
	* warnsw.adb: Add new option.
	* warnsw.ads: Likewise.
	* exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Add abort
	deferral to finally part.
	* gnat_rm.texi: Regenerate.
	* gnat_ugn.texi: Regenerate.
	* gcc-interface/trans.cc (Handled_Sequence_Of_Statements_to_gnu):
	Handle finally statements.

2025-01-07  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_aggr.adb (Expand_Array_Aggregate): Do not exclude aggregates
	of bit-packed array types in assignments from in-place expansion.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Analyze_Exceptional_Cases_In_Decl_Part): Reject
	references to attribute Result.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Analyze_Exceptional_Cases_In_Decl_Part): Move check
	from GNATprove backend to GNAT frontend.

2025-01-07  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Analyze_Exceptional_Contract, Analyze_Variant): Fix
	comments.

2025-01-07  Steve Baird  <baird@adacore.com>

	* exp_put_image.adb (Image_Should_Call_Put_Image): Cope with the case
	where the attribute prefix for an Image attribute reference
	denotes an Itype constructed for a fixed point type. Calling
	Has_Aspect with such an Itype misses applicable aspect
	specifications; we need to look on the right list. This comes up
	if the prefix of the attribute reference is
	Some_Fixed_Point_Type'Base.

2025-01-07  Gary Dismukes  <dismukes@adacore.com>

	* sem_ch12.adb (Analyze_One_Association): In the case of a formal type
	that has a Default_Subtype_Mark that does not have its Entity field set,
	this means the default refers to another formal type of the same generic
	formal part, so locate the matching subtype in the Result_Renamings and
	set Match's Entity to that subtype prior to the call to Instantiate_Type.
	(Validate_Formal_TypeDefault.Reference_Formal): Add test of Entity being
	Present, to prevent blowups on End_Label ids (which don't have Entity set).
	(Validate_Formal_Type_Default.Validate_Derived_Type_Default): Apply
	Base_Type to Formal.
	(Validate_Formal_Type_Default): Guard interface-related semantic checks
	with a test of Is_Tagged_Type.

2025-01-07  Eric Botcazou  <ebotcazou@adacore.com>

	* repinfo.adb (List_GCC_Expression.Print_Expr) <Cond_Expr>: Do not
	output the final "end".

2025-01-07  Johannes Kanig  <kanig@adacore.com>

	* gnat1drv.adb: (SPARK_Library_Warning): preserve Warning_Doc_Switch

2025-01-07  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch4.adb (Expand_Allocator_Expression): Do not build a cleanup
	if restriction No_Exception_Propagation is active.
	* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Likewise.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/118247
	* gcc-interface/Make-lang.in (GNATTOOLS_CROSS_MV): Copy gnatbind
	instead of moving it.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Use the base type of
	the index type to find the type used to compute the length.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	* libgnat/s-finpri.ads: Remove clause for Ada.Finalization.
	(Finalization_Collection): Change to limited private type with the
	Finalizable aspect.
	(Initialize): Remove "overriding" keyword.
	(Finalize): Likewise.
	* libgnat/s-finpri.adb (Initialize): Likewise.
	(Finalize): Likewise.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/117569
	* sem_ch4.adb (Analyze_Indexed_Component_Form): Do not rewrite the
	node as a type conversion if it is the current instance of a type
	in a generic unit.
	* sem_ch8.adb (Find_Selected_Component): Restrict the special case
	of the current instance of a type to a generic unit.

2025-01-06  Bob Duff  <duff@adacore.com>

	* libgnat/s-imagef.adb (Set_Image_Integer):
	Change "RM A.3.10" to be "RM A.10.9".

2025-01-06  Alexandre Oliva  <oliva@adacore.com>

	* libgnat/g-cppexc.adb (Convert_Caught_Object): Move...
	* libgnat/g-cstyin.adb (Convert_Caught_Object):  ... here.
	Use object call notation.
	(strcmp): New.
	(Char_Arr, CharPtr, Char_Pointer, To_chars_ptr): Drop.  Do not
	import Interfaces.C.Pointers.
	(To_Pointer): Convert from System.Address.
	(Name_Starts_With_Asterisk): Rename local variable.
	(Name_Past_Asterisk): Rewrite with System.Address and strcmp.
	Import System.Storage_Elements.
	(Equals): Use strcmp.
	(Before): Fix logic error.  Use strcmp.
	(Name): Move conversion to String...
	* libgnat/g-cppstd.adb (Name): ... here.  Import
	Interfaces.C.Strings.
	* libgnat/g-cppstd.ads (Type_Info_Ptr): Disable heap
	finalization.
	* libgnat/g-cstyin.ads (Name): Change return type.

2025-01-06  Claire Dross  <dross@adacore.com>

	* aspects.ads: Add aspect Aspect_Exit_Cases.
	* contracts.adb (Analyze_Entry_Or_Subprogram_Contract): Handle Exit_Cases.
	(Expand_Subprogram_Contract): Idem.
	* einfo-utils.adb (Get_Pragma): Allow Pragma_Exit_Cases.
	* einfo-utils.ads (Get_Pragma): Idem.
	* exp_prag.adb (Expand_Pragma_Exit_Cases): Ignore the pragma, currently we don't expand it.
	* exp_prag.ads (Expand_Pragma_Exit_Cases): Idem.
	* inline.adb (Remove_Aspects_And_Pragmas): Add Exit_Cases to the list.
	(Remove_Items): Idem.
	* par-prag.adb (Last_Arg_Is_Reason): Idem.
	* sem_ch12.adb: Idem.
	* sem_ch13.adb: Idem.
	* sem_util.adb: Idem.
	* sem_util.ads: Idem.
	* sinfo.ads: Idem.
	* snames.ads-tmpl: Add names Name_Exit_Cases, Name_Exception_Raised, and Name_Normal_Return
	as well as pragma Pragma_Exit_Cases.
	* sem_prag.adb (Analyze_Exit_Cases_In_Decl_Part): Make sure that a
	pragma or aspect Exit_Cases is well formed.
	(Analyze_Pragma): Make sure that a pragma or aspect Exit_Cases is at the right place.
	* sem_prag.ads (Analyze_Exit_Cases_In_Decl_Part): Declaration.
	* doc/gnat_rm/implementation_defined_pragmas.rst: Document the Exit_Cases pragma.
	* doc/gnat_rm/implementation_defined_aspects.rst: Document the Exit_Cases aspect.
	* gnat_rm.texi: Regenerate.

2025-01-06  Bob Duff  <duff@adacore.com>

	* sem_util.adb (Copy_Subprogram_Spec): When copying
	an N_Defining_Operator_Symbol, create an
	N_Defining_Operator_Symbol rather than an N_Defining_Identifier.
	This will cause Lib.Xref to "skip the initial quote for
	navigation purposes" (as per comments in Lib.Xref body).

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_aggr.adb (Case_Table_Type): Fix reference in comment.
	(In_Place_Assign_OK): Move declaration around.
	(Is_Build_In_Place_Aggregate_Return): Likewise and adjust.
	(Expand_Array_Aggregate): Streamline for the sake of consistency.
	(Aggr_Assignment_OK_For_Backend): Remove reference to Gigi/gcc.
	(Backend_Processing_Possible): Likewise.
	(Expand_Array_Aggregate): Add comment.

2025-01-06  Bob Duff  <duff@adacore.com>

	* sinfo.ads (Shift_Count_OK): Update comments.
	(Is_Power_Of_2_For_Shift): Likewise.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	* debug.adb (dQ): Document usage.
	* exp_ch4.ads (Build_Cleanup_For_Allocator): New declaration.
	* exp_ch4.adb (Build_Cleanup_For_Allocator): New procedure.
	(Expand_Allocator_Expression): Build a cleanup to deallocate the
	memory when the evaluation of the expression raises an exception.
	* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Likewise.
	* exp_util.adb (Build_Allocate_Deallocate_Proc): Do not generate the
	detachment if the deallocation is for the cleanup of an allocator.
	* gen_il-fields.ads (Opt_Field_Enum): Add For_Allocator.
	* gen_il-gen-gen_nodes.adb (N_Free_Statement): Likewise.
	* sinfo.ads (For_Allocator): Document usage on N_Free_Statement.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/117956
	* sem_util.adb (Is_Known_On_Entry): Be prepared for constants coming
	from a renaming declaration.

2025-01-06  Tonu Naks  <naks@adacore.com>

	* adaint.c (__gnat_locate_exec_on_path): modify function signature

2025-01-06  Piotr Trojanek  <trojanek@adacore.com>

	* sem_prag.adb (Resolve_State): Continue ordinary processing.

2025-01-06  Javier Miranda  <miranda@adacore.com>

	* sem_ch4.adb (Try_Object_Operation): if no candidate interpretation
	matches the context, redo the same analysis with Report_Error True
	to report the error.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch5.adb (Expand_Assign_Array): Bail out for controlled
	components if the RHS is a function call and the assignment has
	the No_Ctrl_Actions flag set.

2025-01-06  Viljar Indus  <indus@adacore.com>

	* diagnostics-json_utils.adb: Add new method
	Write_Boolean_Attribute.
	* diagnostics-json_utils.ads: Likewise.
	* diagnostics-sarif_emitter.adb (Print_Invocations): print
	the executionSuccesful property value without extra quotes.

2025-01-06  Viljar Indus  <indus@adacore.com>

	* diagnostics-sarif_emitter.adb (Print_Rule): Remove printing
	of the level attribute since it does not match the SARIF schema.

2025-01-06  Piotr Trojanek  <trojanek@adacore.com>

	* gen_il-gen.adb (Put_Tables): Add "not null" to the generated code.
	* rtsfind.adb (Cstring_Ptr): Same for table with predefined RE_Id
	error messages.
	* impunit.adb (Aunit_Record): Same for array of alternative unit names.

2025-01-06  Piotr Trojanek  <trojanek@adacore.com>

	* opt.ads (Ada_Version_Runtime): Now a constant, since it cannot
	and should never be modified.

2025-01-06  Bob Duff  <duff@adacore.com>

	* par-ch10.adb (P_Compilation_Unit): Give an error for "is null".
	* sem_ch10.adb (Analyze_Subunit): Remove check for "is null"
	as a subunit.
	* sem_ch6.adb (Analyze_Subprogram_Declaration):
	Remove check for "is null" as a library unit.

2025-01-06  Javier Miranda  <miranda@adacore.com>

	* sem_ch6.adb (Analyze_Expression_Function): Set the parent of
	the new node to be the parent of the original to get the proper
	context, which is needed for complete error reporting and for
	semantic analysis. Patch suggested by Eric Botcazou.

2025-01-06  Alexandre Oliva  <oliva@adacore.com>
	    Olivier Hainque  <hainque@adacore.com>

	* Makefile.rtl (LLVM_BUILD): Define based on LLVM_CONFIG.
	(GNATRTL_NONTASKING_OBJS): Make g-cpp, g-cppstd, and g-cstyin
	conditional on -gcc or -arm EH, and on no LLVM_BUILD.
	* raise-gcc.c (GXX_EH_INTEROP): Define as 0 on gnat-llvm or
	CERT, and 1 otherwise.
	(__gnat_get_cxx_dependent_exception) Omit on !GXX_EH_INTEROP.
	(__gnat_maybe_get_cxx_dependent_exception): Likewise.
	(__gnat_get_cxx_exception_type_info): Likewise.
	(__gnat_obtain_caught_object): Likewise.
	(is_handled_by): Omit eid parameter and G++ interop on
	!GXX_EH_INTEROP.  Adjust callers.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	* einfo.ads (Returns_By_Ref): Fix description.
	* exp_ch3.adb (Build_Record_Init_Proc.Build_Assignment): Do not
	adjust the component manually (if need be), set No_Finalize_Actions
	instead of No_Ctrl_Actions for this purpose.  Do not adjust when
	the expression is a naked function call.
	* exp_ch5.adb (Make_Tag_Ctrl_Assignment): Document the quirks of
	the function.  Assert that the LHS of the assignment does not have
	side effects and replace calls to Duplicate_Subexpr_No_Checks with
	calls to New_Copy_Tree.  Rename local variable Asn to New_N.
	(Expand_N_Assignment_Statement): In the tagged or controlled record
	case, do remove side effects from both operands on entry.  Remove
	them in the controlled record case, except if the RHS is a function
	call and the assignment has the No_Ctrl_Actions flag set.
	* exp_ch6.adb (Expand_Ctrl_Function_Call): Bail out when the parent
	node is an assignment statement with the No_Ctrl_Actions flag set.
	* sem_util.adb (Statically_Different): Return True for a function
	call that does not return its result by reference.
	* sinfo.ads (No_Ctrl_Actions): Adjust description and add a note for
	the code generator.
	(No_Finalize_Actions): Likewise.

2025-01-06  Bob Duff  <duff@adacore.com>

	* gen_il-gen.adb: Fix too-long line.

2025-01-06  Tonu Naks  <naks@adacore.com>

	* adaint.c: void parameter on non-windows platforms

2025-01-06  Bob Duff  <duff@adacore.com>

	* gen_il-internals.ads: Split Fields field into two fields
	Imm_Fields and Fields.
	* gen_il-gen.adb: Modify the field-inheritance
	algorithm to inherit at each level of the type hierarchy,
	rather than just inheriting into concrete types.
	For example, if C is a concrete type derived from B,
	which is in turn derived from A, we now set the Fields
	of B to include those of A. (We had always set the Fields
	of C to include those of A and B, and we still do that.)
	(Compute_Fields_For_One_Type): Detect cases where a given
	field is declared for all descendants of a given abstract
	type, in which case we should consider declaring it in
	the abstract type, and inheriting it in those descendants.
	(Exception_To_Inheritance_Rule): These are the cases where
	we could inherit, but we don't want to.
	* gen_il-gen-gen_nodes.adb: Move fields up the type hierarchy,
	so they are inherited instead of being defined separately.
	* gen_il-gen-gen_entities.adb: Likewise.

2025-01-06  Viljar Indus  <indus@adacore.com>

	* sem_ch6.adb (Analyze_Subprogram_Body_Helper):
	Exchange_Limited_Views also in Ada 2005.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch6.adb (Expand_Call_Helper): Call Ultimate_Alias for the
	detection of calls to subprograms specified for Constant_Indexing.
	* exp_util.adb (Is_Indexed_Container): Likewise.
	(Is_Iterated_Container): Likewise for Default_Iterator.

2025-01-06  Ronan Desplanques  <desplanques@adacore.com>

	* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix markup.
	* gnat_ugn.texi: Regenerate.

2025-01-06  Piotr Trojanek  <trojanek@adacore.com>

	* sem_ch13.adb (Validate_Unchecked_Conversions): Remove detection of
	null arrays; remove tests for sizes being present, which are redundant
	after calling Known_Static_RM_Size.

2025-01-06  Eric Botcazou  <ebotcazou@adacore.com>

	PR ada/117936
	* doc/gnat_rm/implementation_defined_pragmas.rst
	(Unimplemented_Unit): Adjust the description of the error message.
	* gnat_rm.texi: Regenerate.

2025-01-05  Estevan Castilho (Tevo)  <estevan.cps@gmail.com>

	* libgnarl/s-taprop__dummy.adb: Remove use clause for
	System.Parameters.
	(Unlock): Remove Global_Lock formal parameter.
	(Write_Lock): Likewise.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* exp_ch3.adb, exp_ch4.adb, exp_disp.adb, inline.adb: Remove explicit
	actual parameter Null_Exclusion_Present equal False.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* exp_ch3.adb, exp_disp.adb: Remove explicit actual parameter
	Constant_Present equal False; tune comments.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* exp_ch3.adb, exp_ch9.adb, exp_dist.adb, exp_imgv.adb, exp_util.adb,
	sem_dist.adb: Remove explicit actual parameter Aliased_Present equal
	False; tune comments and whitespace.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* sem_ch5.adb (Check_Call): Reuse Get_Called_Entity.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* sem_attr.adb (Check_Array_Type): Remove extra call.
	* sem_util.adb (Static_Boolean): Likewise.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* exp_aggr.adb (Others_Check): Reuse List_Length; tune whitespace.
	* exp_ch3.adb (Constrain_Array): Remove counting of constraints.
	* exp_disp.adb (Make_DT): Use Elist utility routines; tune whitespace.
	* sem_ch12.adb (Formal_Dimensions): Reuse List_Length.
	(Valid_Default_Attribute): Reuse Number_Formals.
	* sem_prag.adb (Process_Convention): Likewise.
	* sem_util.adb (Normalize_Actuals): Likewise.
	(Check_Function_Writable_Actuals): Reuse List_Length.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* contracts.adb (Create_Generic_Contract): Remove calls to Present.
	* sem_util.adb (Normalize_Actuals): Likewise.

2025-01-03  Bob Duff  <duff@adacore.com>

	* sem_util.adb (Append_Entity_Name): Do not skip the
	simple name for a compilation unit (which includes
	the case of specless subprogram bodies).

2025-01-03  Tucker Taft  <taft@adacore.com>

	* pprint.adb (Expression_Image): Adjust and improve comments
	to match style recommendations, and change name of subtype
	from Not_Associative to Non_Associative, in response to
	code review.

2025-01-03  Tucker Taft  <taft@adacore.com>

	* pprint.adb (Expression_Image): In local function Expr_Name
	add a No_Parens flag and define a subtype Not_Associative
	to represent the short-circuit operations and And/Or/Xor.
	Insert parentheses to separate the subexpressions when
	different "Not_Associative" operations occur in a
	sequence.

2025-01-03  Eric Botcazou  <ebotcazou@adacore.com>

	* einfo.ads (BIP_Initialization_Call): Adjust description.
	* exp_ch4.adb (Expand_N_Case_Expression): Adjust commentary.
	(Expand_N_If_Expression): Likewise.
	* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
	Set BIP_Initialization_Call unconditionally in the definite case.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* uintp.adb (N_Digits): Refine return subtype, since this routine
	always returns a positive number of digits.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* checks.adb (Generate_Index_Checks): Reuse existing utility routine.
	* sem_ch4.adb (Analyze_Indexed_Component_Form): Likewise.
	* sem_prag.adb (Analyze_Pragma): Likewise.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* exp_dist.adb (Assign_Subprogram_Identifier,
	Reserve_NamingContext_Methods): Simplify.
	* osint.adb (Append_Suffix_To_File_Name, Find_File, Get_Directory,
	Object_File_Name, Strip_Directory): Likewise.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* sem_res.adb (Resolve_Alocator): Move unrelated code out of a declare
	block.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* exp_ch3.adb (Search_Access_Discriminant, Search_Current_Instance,
	Search_Internal_Call): Use traversal function instead of traversal
	procedure and remove associated global variables.
	* exp_util.adb (Search_Calls): Likewise.
	* sem_prag.adb (Contains_Loop_Entry): Likewise.
	* sem_util.adb (Mentions_Post_State): Likewise.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* sem_attr.adb (Eval_Attribute): Fix comment for attribute Image.
	* tbuild.adb (Make_SC): Remove extra whitespace.

2025-01-03  Alexandre Oliva  <oliva@adacore.com>

	* Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add g-cpp, g-cppstd,
	and g-cstyin.
	* doc/gnat_rm/interfacing_to_other_languages.rst (Interfacing to C++):
	Document class-wide matching and new interfaces.
	* exp_prag.adb (Expand_Pragma_Import_Or_Interface): Add class-wide
	exception matching support with 'B' as language identifier.
	* libgnat/a-exexpr.adb (Setup_Current_Excep): Add Id formal.
	(Set_Foreign_Occurrence): Likewise.
	(Propagate_GCC_Exception): Adjust.
	(Set_Exception_Parameter): Likewise.
	(Unhandled_Except_Handler): Likewise.
	* libgnat/g-cpp.ads: New.
	* libgnat/g-cppexc.adb (Raise_Cpp_Exception): Match 'B' lang id.
	(Get_Object_Address): New.
	(Get_Object): Rewrite.
	(Get_Access_To_Object): New.
	(Get_Access_To_Tagged_Object): New.
	(Get_Type_Info): New.
	(Convert_Caught_Object): New.
	* libgnat/g-cppexc.ads (Get_Object_Address): New.
	(Get_Object): Note the Cpp Convention requirement.
	(Get_Access_To_Object): New.
	(Get_Access_To_Tagged_Object): New.
	(Get_Type_Info): New.
	* libgnat/g-cppstd.adb: New.
	* libgnat/g-cppstd.ads: New.
	* libgnat/g-csclex.ads: New, unused.
	* libgnat/g-cstyin.adb: New.
	* libgnat/g-cstyin.ads: New.
	* libgnat/g-excact.adb (Exception_Language): New.
	(Is_Foreign_Exception): Rewrite.
	* libgnat/g-excact.ads (Exception_Languages): New.
	(Exception_Language): New.
	* libgnat/s-stalib.ads (Lang): Document 'B'.
	* raise-gcc.c (__gnat_setup_current_excep): Add Exception_Id formal.
	(CXX_DEPENDENT_EXCEPTION_CLASS): New.
	(cxx_type_info): New.
	(__cxa_exception): Rename exceptionType to encompass PrimaryException.
	(_GNAT_Exception): Drop wrapper.
	(EID_For): Adjust.
	(exception_class_eq): Likewise.
	(__gnat_exception_language_is_cplusplus): New.
	(__gnat_exception_language_is_ada): New.
	(__gnat_convert_caught_object): Declare.
	(__gnat_get_cxx_dependent_exception): New.
	(__gnat_maybe_get_cxx_dependent_exception): New.
	(__gnat_get_cxx_exception_type_info): New.
	(__gnat_obtain_caught_object): New.
	(is_handled_by): Adjust.   [!CERT] Add eid formal, handle dependent
	exceptions and base-type matches.
	(get_action_description_for) [!CERT]: Add eid formal.  Adjust.
	(personality_body): Adjust.
	* gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS) [!STAGE1]:
	Add new g-cpp, g-cppstd, g-cstyin + preexisting g-cppexc
	and i-cstrin.
	* gnat-style.texi: Regenerate.
	* gnat_rm.texi: Regenerate.

2025-01-03  Gary Dismukes  <dismukes@adacore.com>

	* diagnostics-constructors.adb (Make_Default_Iterator_Not_Primitive_Error):
	Revise message to match message change made in sem_ch13.adb.
	* freeze.adb (Freeze_Record_Type): Output appropriate aspect name in
	error message, using Get_Name_String.
	(Freeze_Entity): For derived types, call Analyze_Aspects_At_Freeze_Point
	on the parent type, and call Inherit_Nonoverridable_Aspects on the type
	(for both parent type and any progenitor types). Add with_clause for
	System.Case_Util.
	* gen_il-fields.ads: Add Aspect_Subprograms to type Opt_Field_Enum.
	* gen_il-gen-gen_nodes.adb: Add field Aspect_Subprograms to
	N_Aspect_Specification nodes.
	* sem_ch4.adb (Try_Container_Indexing): Remove Find_Indexing_Operations
	and the code calling it. Add new function Indexing_Interpretations for
	retrieving the eligible indexing functions from the appropriate aspect's
	Aspect_Subprograms list and call that instead of Find_Value_Of_Aspect.
	* sem_ch7.adb (Analyze_Package_Specification): In loop over entities,
	call Analyze_Aspects_At_Freeze_Point for types that have delayed
	aspects.
	* sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): Add Nonoverridable_Only
	formal to restrict processing to nonoverridable aspects.
	(Check_Function_For_Indexing_Aspect): New exported procedure renamed
	from Check_One_Function and moved to library level.
	* sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): Test new formal
	Nonoverridable_Only formal to skip processing of aspects that are not
	nonoverridable when the formal is True. Skip the processing for
	Aspect_Full_Access_Only when Nonoverridable_Only is True. Call
	Check_Indexing_Functions in the case of indexing aspects (procedure
	moved from Analyze_Attribute_Definition_Clause to top level).
	(Analyze_Aspect_Specifications): Locate closest ancestor type with an
	explicit matching aspect to determine the aspect spec to reference in
	the error about a nonoverridable aspect not confirming an inherited
	aspect (skipping intermediate derived parents). Ensures that we retain
	existing errors flagged on explicit ancestor aspects rather than
	implicit inherited ones. Change names of variables Parent_Type and
	Inherited_Aspect to Ancestor_Type and Ancestor_Aspect respectively
	for clarity.
	(Analyze_Attribute_Definition_Clause): Move nested subprograms
	Check_Iterator_Functions and Check_Primitive_Function to top level
	of package. Move Check_Indexing_Functions (and its nested subprograms)
	from here to within Analyze_Aspects_At_Freeze_Point (adding some
	formal parameters and adjusting the code appropriately, and no longer
	call it from this procedure).
	(Is_CW_Or_Access_To_CW): Add test for the parent type having the
	indexing aspect for proper setting of Aspect_Specification_Is_Inherited.
	Delete "???" comment.
	(Look_Through_Anon_Access): Remove unneeded tests of Is_Access_Constant
	and Name_Constant_Indexing, which lead to wrong messages in some cases.
	(Check_Function_For_Indexing_Aspect): Procedure renamed from
	Check_One_Function and moved to library level (was nested within
	Check_Indexing_Functions), plus added formals (including Valid, to
	check result). Move scope test to beginning, to immediately exclude
	subprograms not declared immediately within the same scope as the type.
	Improve several error messages. Add error checking for Constant_Indexing
	functions. Append the function entity to the Aspect_Subprograms list of
	the aspect specification. Move code for checking for nonconfirming
	index aspects and for checking for illegal indexing aspects on full
	views to Check_Indexing_Functions.
	(Check_Indexing_Functions): Move procedure Illegal_Indexing from
	here to within Check_Function_For_Indexing_Aspect. Add a comment
	to the loop over interpretations about the checking being done as
	legality rules rather than resolution rules, plus a note referencing
	AI22-0084. Check for nonconfirming indexing aspects and illegal
	indexing aspects on full views here rather than in Check_One_Function
	(now named Check_Function_For_Indexing_Aspect). Remove function
	Check_One_Function (moved to library level and renamed), and call
	Check_Function_For_Indexing_Aspect instead.
	(Check_Inherited_Indexing): Improve spec comment. Remove nested function
	Same_Chars, and replace call Same_Chars with call to Sem_Util.Same_Name.
	Replace call to Illegal_Indexing with call to Error_Msg_NE.
	(Check_One_Function): Unnested from Check_Indexing_Functions, rename
	to Check_Function_For_Indexing_Aspect, move body to library level,
	and move declaration to Sem_Ch13 spec.
	(Analyze_Attribute_Definition_Clause, case Attribute_Default_Iterator):
	Improve error message related to tagged-type requirement. Suppress call
	to Check_Iterator_Functions for attribute definition clauses associated
	with inherited aspects. Remove error checking that is redundant with
	checking done in Check_Iterator_Functions.
	(Check_Aspect_At_Freeze_Point, case Attribute_Default_Iterator): Call
	Check_Iterator_Functions (only if the aspect is not Comes_From_Source).
	(Check_Iterator_Functions): Procedure unnested from
	Analyze_Attribute_Definition_Clause. Add formals Typ and Expr.
	Error messages corrected to say "aspect Default_Iterator" instead of
	"aspect Iterator".
	(Valid_Default_Iterator): Improve error message to say "must be
	a local primitive or class-wide function" instead of "must be
	a primitive function".
	(Check_Primitive_Function): Unnested from Analyze_Attribute_Definition_Clause.
	Add formal Ent.
	(Rep_Item_Too_Late): Return False when an attribute_definition_clause
	is not Comes_From_Source, since it was generated by the compiler (such
	as for an inherited aspect).
	(Resolve_Aspect_Aggregate): Capture implementation base type.
	(Valid_Empty): Use implementation base types for result type comparison.
	(Valid_Add_Named): Use impl base types for comparison of formal's type.
	(Valid_Add_Unnamed): Use impl base types for comparison of formal's type.
	(Valid_New_Indexed): Use impl base types for result type comparison.
	(Validate_Literal_Aspect): Return immediately when aspect does not have
	Comes_From_Source True (no point in validating inherited aspects).
	* sem_res.adb (Has_Applicable_User_Defined_Literal): Remove Base_Type
	comparison and always call Corresponding_Op_Of_Derived_Type for derived
	types. Add "???" comment about issue with wrapper functions (and
	indicate that it would be nice to eliminate the call to
	Corresponding_Primitive_Op).
	* sem_util.ads (Inherit_Nonoverridable_Aspects): New procedure.
	(Corresponding_Op_Of_Derived_Type): Update spec comment to indicate
	return of Ancestor_Op and name changed from Corresponding_Primitive_Op.
	* sem_util.adb (Check_Inherited_Nonoverridable_Aspects): Fix name in
	header comment.
	(Corresponding_Op_Of_Derived_Type): Move declaration of Typ down with
	other local variables. Remove Assert that doesn't apply in some cases.
	Simply return Ancestor_Op when it isn't a primitive (it can be a
	class-wide op). Function name changed from Corresponding_Primitive_Op.
	(Find_Untagged_Type_Of): Add test of Is_Type (E) as a guard for checking
	Direct_Primitive_Operations. Remove Assert (False), and return Empty
	when the primitive is not found.
	(Profile_Matches_Ancestor): Change comparisons to use implementation
	base types of the operations' formal and result types. Add tests for
	interface ancestors. Revise "???" comment.
	(Is_Confirming): Simplify name-matching test to use the names associated
	with the aspects rather than going to the N_Attribute_Definition_Clause
	nodes (may facilitate elimination of those clauses at some point).
	(Inherit_Nonoverridable_Aspects): New procedure to traverse the
	aspects of a derived type's parent type and create inherited versions
	of the parent type's nonoverridable aspects, identifying the appropriate
	subprograms for each such inherited aspect.
	(Inherit_Nonoverridable_Aspect): New procedure nested in
	Inherit_Nonoverridable_Aspects to inherit individual nonoverridable
	aspects. Identifies the corresponding subprogram(s) associated with
	an inherited nonoverridable aspect. In the case of indexing aspects,
	new eligible indexing functions of the type are also identified here,
	and the entities of all of the identified subprograms are appended to
	the aspect's Aspect_Subprograms Elist. Add a "???" comment about this.
	* sinfo.ads: Add documentation for the new Aspect_Subprograms field.

2025-01-03  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch4.adb (Insert_Conditional_Object_Declaration): Create the
	Master_Node even if the declaration is turned into a renaming.

2025-01-03  Piotr Trojanek  <trojanek@adacore.com>

	* sem_ch3.adb (Array_Type_Declaration): Don't copy parent for an itype
	created by an array component declaration.

2025-01-03  Douglas B Rupp  <rupp@adacore.com>

	* socket.c [__vxworks]: Change vxw_h_addr type to long from
	int, and cast the conversion of char* to vxw_h_addr to avoid
	warning/error.

2025-01-03  Tonu Naks  <naks@adacore.com>

	* adaint.c: change default behaviour of __gnat_locate_exec_on_path
	* adaint.h: change prototype of __gnat_locate_exec_on_path
	* libgnat/s-os_lib.adb: pass optional argument in Locate_Exec_On_Path
	* libgnat/s-os_lib.ads: change spec of Locate_Exec_On_Path
	* libgnat/s-trasym__dwarf.adb: update import of __gnat_locate_exec_on_path

2025-01-03  Eric Botcazou  <ebotcazou@adacore.com>

	* exp_ch4.adb (Expand_Allocator_Expression): Put back the call to
	Remove_Side_Effects in the case of a function call, a class-wide
	designated type and a regular storage pool.

2025-01-03  Bob Duff  <duff@adacore.com>

	* sem_ch6.adb (Analyze_Expression_Function): Mark the implicit
	spec for an expression function as Comes_From_Source.
	(Analyze_Null_Procedure): Minor cleanup.
	* sem_warn.adb (Source_E1): New function to compute whether
	to give warnings. In particular, return True for [in] out
	parameters of expression functions.

2025-01-03  Steve Baird  <baird@adacore.com>

	* exp_aggr.adb (Check_Bounds): Remove calls that were setting the
	Analyzed flag to False for two aggregate bound expressions.

2025-01-03  Eric Botcazou  <ebotcazou@adacore.com>

	* einfo.ads (Is_Independent): Document usage on Master_Node objects.
	* exp_aggr.adb (In_Place_Assign_OK): Remove Parent_Kind variable.
	(Convert_To_Assignments): Call Unconditional_Parent and remove the
	restriction on the known size for the in-place expansion of the
	aggregate in the context of an object declaration.
	(Expand_Array_Aggregate): Remove Parent_Kind variable and call
	Unconditional_Parent and Delay_Conditional_Expressions_Between
	* exp_ch3.adb: Remove clauses for Exp_Dbug.
	(Expand_N_Object_Declaration): Factor out the code rewriting the
	declaration as a renaming in Rewrite_Object_Declaration_As_Renaming
	and call the procedure.
	* exp_ch4.adb (Insert_Conditional_Object_Declaration): Declare.
	(Expand_N_Case_Expression): Delay expanding the expression if it is
	in the context of an optimizable object declaration.  If the parent
	node is this object declaration, then replace it with a renaming of
	the dereference of an access value designating an object initialized
	with the dependent expression chosen by the condition.
	(Expand_N_If_Expression): Likewise.
	(Insert_Conditional_Object_Declaration): New procedure.
	* exp_ch6.adb (Expand_Ctrl_Function_Call): Test the unconditional
	parent in the case of an object declaration too.
	* exp_ch7.adb (Build_Finalizer.Process_Declarations): Pass Strict to
	Processing_Actions from the Is_Independent flag on a Master_Node.
	* exp_util.ads (Rewrite_Object_Declaration_As_Renaming): Declare.
	* exp_util.adb: Add clauses for Exp_Dbug.
	(Rewrite_Object_Declaration_As_Renaming): New procedure extracted
	from Expand_N_Object_Declaration.
	* sem_ch3.adb (Analyze_Object_Declaration): Also leave the analysis
	if the declaration has been replaced with a renaming in the case of
	an initialization expression that is a conditional expression.

2025-01-03  Eric Botcazou  <ebotcazou@adacore.com>

	* checks.adb (Apply_Predicate_Check): Preserve Comes_From_Source.
	* exp_ch4.adb (Expand_Allocator_Expression): Factor out common code
	for the various cases.  Also delay applying the 2nd predicate check.
	In the default case, defer to Make_Build_In_Place_Call_In_Allocator
	entirely in the build-in-place case.
	* sem_ch4.adb (Analyze_Allocator): Do not give the warning or error
	for a default-initialized allocator with No_Initialization.

2025-01-03  Ronan Desplanques  <desplanques@adacore.com>

	* lib-writ.adb (Write_ALI): Remove useless space.

2025-01-03  Ronan Desplanques  <desplanques@adacore.com>

	* lib-writ.adb (Write_ALI): Remove condition for writing P line
	parameters.
	* lib-writ.ads: Fix typos. Clarify comment.

2025-01-02  Jakub Jelinek  <jakub@redhat.com>

	* gnat_ugn.texi: Bump @copying's copyright year.
	* gnat_rm.texi: Likewise.


Copyright (C) 2025 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
