r125410 - in /trunk/gcc/ada: exp_util.adb exp_u...
charlet@gcc.gnu.org
charlet@gcc.gnu.org
Wed Jun 6 10:28:00 GMT 2007
Author: charlet
Date: Wed Jun 6 10:28:07 2007
New Revision: 125410
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125410
Log:
2007-04-20 Ed Schonberg <schonberg@adacore.com>
* exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
object of a limited type can be initialized with a call to a function
that returns in place. If the limited type has unknown discriminants,
and the underlying type is a constrained composite type, build an actual
subtype from the function call, as is done for private types.
(Side_Effect_Free): An expression that is the renaming of an object or
whose prefix is the renaming of a object, is not side-effect free
because it may be assigned through the renaming and its value must be
captured in a temporary.
(Has_Controlled_Coextensions): New routine.
(Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
as is done for other limited types.
(Non_Limited_Designated_Type): new predicate.
(Make_CW_Equivalent_Type): Modified to handle class-wide interface
objects.
Remove all handling of with_type clauses.
* par-ch10.adb: Remove all handling of with_type clauses.
* lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
checksum if the main source could not be parsed.
(Loat_Unit): When processing a child unit, determine properly whether
the parent unit is a renaming when the parent is itself a child unit.
Remove handling of with_type clauses.
* sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
(Set_Is_Static_Coextension): New procedure.
(Has_Local_Raise): New function
(Set_Has_Local_Raise): New procedure
(Renaming_Exception): New field
(Has_Init_Expression): New flag
(Delay_Finalize_Attach): Remove because flag is obsolete.
(Set_Delay_Finalize_Attach): Remove because flag is obsolete.
Remove all handling of with_type clauses.
(Exception_Junk): Can now be set in N_Block_Statement
Modified:
trunk/gcc/ada/exp_util.adb
trunk/gcc/ada/exp_util.ads
trunk/gcc/ada/lib-load.adb
trunk/gcc/ada/lib-load.ads
trunk/gcc/ada/par-ch10.adb
trunk/gcc/ada/sinfo.adb
trunk/gcc/ada/sinfo.ads
More information about the Gcc-cvs
mailing list