summaryrefslogtreecommitdiffstats
path: root/gcc/ada/ioexcept.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-15 09:36:57 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-15 09:36:57 +0000
commit2e12de5fb7f7fb80195981c934bd58fdf2f3cd28 (patch)
tree9648ffa2fef61a47fdbcd90b5f5de65b15f23b2d /gcc/ada/ioexcept.ads
parent0335e9e043977a9c493cc3b5b130c0740ad3aae8 (diff)
downloadppe42-gcc-2e12de5fb7f7fb80195981c934bd58fdf2f3cd28.tar.gz
ppe42-gcc-2e12de5fb7f7fb80195981c934bd58fdf2f3cd28.zip
2006-02-13 Robert Dewar <dewar@adacore.com>
Serguei Rybin <rybin@adacore.com> * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with save/restore routines. Properly handle Ada_Version_Explicit and Ada_Version_Config, which were not always properly handled previously. Since we are changing the tree format anyway, also get rid of the junk obsolete Immediate_Errors flag. (Tree_Read): Change the way of reading Tree_Version_String - now we read the version string from the tree even if its length is not the same as the length of the version string computed from Gnatvsn. (Search_Directory_Present): New Boolean flag for the compiler. Define Tree_Version_String as a dynamic string. (Default_Stack_Size): new variable, used to handle switch -d. * par-prag.adb: For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit only for main unit. Add pragma Ada_2005 (synonym for Ada_05) Properly handle Ada_Version_Explicit and Ada_Version_Config, which were not always properly handled previously. * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change explicit Ada_95 to Ada_2005. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111054 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/ioexcept.ads')
-rw-r--r--gcc/ada/ioexcept.ads8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/ioexcept.ads b/gcc/ada/ioexcept.ads
index c34e36dc223..548fd37fd66 100644
--- a/gcc/ada/ioexcept.ads
+++ b/gcc/ada/ioexcept.ads
@@ -13,6 +13,12 @@
-- --
------------------------------------------------------------------------------
-pragma Ada_95;
+pragma Ada_2005;
+-- Explicit setting of Ada 2005 mode is required here, since we want to with a
+-- child unit (not possible in Ada 83 mode), and Text_IO is not considered to
+-- be an internal unit that is automatically compiled in Ada 2005 mode (since
+-- a user is allowed to redeclare IO_Exceptions).
+
with Ada.IO_Exceptions;
+
package IO_Exceptions renames Ada.IO_Exceptions;
OpenPOWER on IntegriCloud