diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-04 15:44:22 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-04 15:44:22 +0000 |
commit | 99f85277b1dcab90426b14f39a0b9a8c24f1bbe2 (patch) | |
tree | 537a6ead5cdb714a61faecd070db42dccac0e0d7 /gcc/ada/exp_strm.adb | |
parent | 0e05fc43c31f4cceebae03e8a2bf80abe6655ff1 (diff) | |
download | gcc-99f85277b1dcab90426b14f39a0b9a8c24f1bbe2.tar.gz |
2011-08-04 Ed Schonberg <schonberg@adacore.com>
* sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine
whether a type lacks user-defined Read or Write operations, or has a
component that lacks them.
* sem_attr.adb (Check_Stream_Attribute): if restriction
No_Default_Stream_Attributes is active, verify that all subcomponent
types of the target have user-defined stream operations, and report
error otherwise.
* exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation.
* exp_strm.adb: Build_Elementary_Input_Call,
Build_Elementary_Write_Call): remove checks for restriction
No_Default_Stream_Attributes, now checked in semantics.
2011-08-04 Vincent Celier <celier@adacore.com>
* prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS
switches on the command line, look for all valid --RTS switches in the
Builder switches and for each language use the first runtime name found
to invoke gprconfig.
(Get_Or_Create_Configuration_File): Warn if --RTS is specified on the
command line and there is no auto-configuration.
(Runtime_Name_Set_For): New function.
2011-08-04 Hristian Kirtchev <kirtchev@adacore.com>
* exp_ch7.adb (Build_Object_Declarations): Do not generate the
elaborate initialization expression for variable Abort when processing
a package body or a declaration.
(Create_Finalizer): Propagate the package context when creating the
exception-related variables.
* exp_ch7.ads (Build_Object_Declarations): New formal parameter
For_Package along with usage comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177407 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/exp_strm.adb')
-rw-r--r-- | gcc/ada/exp_strm.adb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/ada/exp_strm.adb b/gcc/ada/exp_strm.adb index cc697bf8270..35fcb640529 100644 --- a/gcc/ada/exp_strm.adb +++ b/gcc/ada/exp_strm.adb @@ -25,14 +25,11 @@ with Atree; use Atree; with Einfo; use Einfo; -with Errout; use Errout; with Exp_Util; use Exp_Util; with Namet; use Namet; with Nlists; use Nlists; with Nmake; use Nmake; with Opt; use Opt; -with Restrict; use Restrict; -with Rident; use Rident; with Rtsfind; use Rtsfind; with Sem_Aux; use Sem_Aux; with Sem_Util; use Sem_Util; @@ -475,18 +472,6 @@ package body Exp_Strm is Lib_RE : RE_Id; begin - Check_Restriction (No_Default_Stream_Attributes, N); - - -- Are we sure following messages are issued in -gnatc mode ??? - - if Restriction_Active (No_Default_Stream_Attributes) then - Error_Msg_NE - ("missing user-defined Input for type&", N, Etype (Targ)); - if Nkind (Targ) = N_Selected_Component then - Error_Msg_NE - ("\which is a component of type&", N, Etype (Prefix (Targ))); - end if; - end if; -- Check first for Boolean and Character. These are enumeration types, -- but we treat them specially, since they may require special handling @@ -696,16 +681,6 @@ package body Exp_Strm is Libent : Entity_Id; begin - Check_Restriction (No_Default_Stream_Attributes, N); - - if Restriction_Active (No_Default_Stream_Attributes) then - Error_Msg_NE - ("missing user-defined Write for type&", N, Etype (Item)); - if Nkind (Item) = N_Selected_Component then - Error_Msg_NE - ("\which is a component of type&", N, Etype (Prefix (Item))); - end if; - end if; -- Compute the size of the stream element. This is either the size of -- the first subtype or if given the size of the Stream_Size attribute. |