]> git.ipfire.org Git - thirdparty/gcc.git/commit
2015-01-06 Pascal Obry <obry@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jan 2015 09:47:48 +0000 (09:47 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jan 2015 09:47:48 +0000 (09:47 +0000)
commit35bd138fda3452b82b17ab4f54ec87242311f959
tree49e5167fbe92e8c71bbc6d289a4ae8a5c223d70b
parentc050b7e5f0a13ae1f4ec089703ab0adb741723b3
2015-01-06  Pascal Obry  <obry@adacore.com>

* adaint.c (ProcListEvt): Set to NULL.
* rtinit.c: New file.
(__gnat_rt_init_count): New reference counter set to 0.
(__gnat_runtime_initialize): Move code here from __gnat_initialize when
this code is actually needed for the runtime initialization. This
routine returns immediately if the initialization has already been done.
* final.c: Revert previous change.
* rtfinal.c: New file.
(__gnat_runtime_finalize)[Win32]: Add finalization of the critical
section and event. The default version of this routine is empty (except
for the reference counting code). This routine returns immediately if
some others libraries are referencing the runtime.
* bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
remove circuitry to initialize the signal handler as this is
now done by the runtime initialization routine.
(Gen_Adafinal): Generate call to Runtime_Finalize.
* gnat_ugn.texi: Update documentation about concurrency and
initialization/finalization of the run-time.
* gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
references to rtfinal.o and rtinit.o

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219238 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/adaint.c
gcc/ada/bindgen.adb
gcc/ada/final.c
gcc/ada/gcc-interface/Make-lang.in
gcc/ada/gcc-interface/Makefile.in
gcc/ada/gnat_ugn.texi
gcc/ada/initialize.c
gcc/ada/rtfinal.c [new file with mode: 0644]
gcc/ada/rtinit.c [new file with mode: 0644]