diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-19 10:37:59 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-19 10:37:59 +0000 |
commit | 698d81ad3d737d882aab66d64cf53bf741d09546 (patch) | |
tree | 94817510a2b1922a0d21ee9356fdcf6573a68339 /gcc/ada/memtrack.adb | |
parent | df9e12ce41ffa6240d58c4abe427381c989c81f0 (diff) | |
download | gcc-698d81ad3d737d882aab66d64cf53bf741d09546.tar.gz |
2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
* utils.c: Update copyright notice, missed in previous change.
2004-01-19 Vincent Celier <celier@gnat.com>
* mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
args if Bind is True. Set First_ALI, if not already done.
(Build_Library): For Stand Alone Libraries, extract from one ALI file
an eventual --RTS switch, for gnatbind, and all backend switches +
--RTS, for linking.
2004-01-19 Robert Dewar <dewar@gnat.com>
* sem_attr.adb, memtrack.adb: Minor reformatting
2004-01-19 Ed Schonberg <schonberg@gnat.com>
* exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
that rename enumeration literals. This is properly done in sem_eval.
* sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
to functions that rename enumeration literals.
* sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
functions that rename enumeration literals.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76146 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/memtrack.adb')
-rw-r--r-- | gcc/ada/memtrack.adb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ada/memtrack.adb b/gcc/ada/memtrack.adb index 75000b0421e..2531702cb7b 100644 --- a/gcc/ada/memtrack.adb +++ b/gcc/ada/memtrack.adb @@ -235,6 +235,7 @@ package body System.Memory is procedure Free (Ptr : System.Address) is Addr : aliased constant System.Address := Ptr; + begin Lock_Task.all; @@ -265,7 +266,6 @@ package body System.Memory is c_free (Ptr); First_Call := True; - end if; Unlock_Task.all; @@ -280,10 +280,12 @@ package body System.Memory is if Needs_Init then Needs_Init := False; Gmemfile := fopen (Gmemfname, "wb" & ASCII.NUL); + if Gmemfile = System.Null_Address then Put_Line ("Couldn't open gnatmem log file for writing"); OS_Exit (255); end if; + fwrite ("GMEM DUMP" & ASCII.LF, 10, 1, Gmemfile); end if; end Gmem_Initialize; @@ -296,6 +298,7 @@ package body System.Memory is (Ptr : System.Address; Size : size_t) return System.Address is Result : System.Address; + begin if Size = size_t'Last then Raise_Exception (Storage_Error'Identity, "object too large"); |