diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2003-12-15 12:51:01 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2003-12-15 12:51:01 +0100 |
commit | 209db2bf05a5830792bc1a2f06c8fedf21285304 (patch) | |
tree | 1a02b34983bc3ac002967364fb841e53d5f9fc47 /gcc/ada/a-ststio.adb | |
parent | c1d5acdb6eb4fa31e092602cb9d116c79f52e07d (diff) | |
download | gcc-209db2bf05a5830792bc1a2f06c8fedf21285304.zip gcc-209db2bf05a5830792bc1a2f06c8fedf21285304.tar.gz gcc-209db2bf05a5830792bc1a2f06c8fedf21285304.tar.bz2 |
[multiple changes]
2003-12-15 Robert Dewar <dewar@gnat.com>
* exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
sec stack size.
2003-12-15 Vincent Celier <celier@gnat.com>
* gnatchop.adb: (Error_Msg): Do not exit on error for a warning
(Gnatchop): Do not set failure status when reporting the number of
warnings.
2003-12-15 Doug Rupp <rupp@gnat.com>
* s-ctrl.ads: New file.
* Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
* Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
(GNATBIND_OBJS): Add ada/s-crtl.o.
* Makefile.in [VMS]: Clean up ifeq rules.
* gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
s-tasdeb.adb: Update copyright.
Import System.CRTL.
Make minor modifications to use System.CRTL declared functions instead
of importing locally.
2003-12-15 GNAT Script <nobody@gnat.com>
* Make-lang.in: Makefile automatically updated
From-SVN: r74627
Diffstat (limited to 'gcc/ada/a-ststio.adb')
-rw-r--r-- | gcc/ada/a-ststio.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/a-ststio.adb b/gcc/ada/a-ststio.adb index 8df6a37..2d5db61 100644 --- a/gcc/ada/a-ststio.adb +++ b/gcc/ada/a-ststio.adb @@ -35,6 +35,7 @@ with Interfaces.C_Streams; use Interfaces.C_Streams; with System; use System; with System.File_IO; with System.Soft_Links; +with System.CRTL; with Unchecked_Conversion; with Unchecked_Deallocation; @@ -382,8 +383,11 @@ package body Ada.Streams.Stream_IO is ------------------ procedure Set_Position (File : in File_Type) is + use type System.CRTL.long; begin - if fseek (File.Stream, long (File.Index) - 1, SEEK_SET) /= 0 then + if fseek (File.Stream, + System.CRTL.long (File.Index) - 1, SEEK_SET) /= 0 + then raise Use_Error; end if; end Set_Position; |