2008-05-20 Kevin Pouget <pouget@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2008 12:46:42 +0000 (12:46 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2008 12:46:42 +0000 (12:46 +0000)
commiteb10ea32dcbb75bcfc7882b645a64aab17720476
tree71c7f44038b908a0d6c4e52f839a9fa3e3c2ed25
parentd54f6ec5353a384118649f31d83ece8aa1085d54
2008-05-20  Kevin Pouget  <pouget@adacore.com>

* exp_smem.ads, exp_smem.adb: Construction of access and assign
routines has been replaced by an instantiation of
System.Shared_Storage.Shared_Var_Procs generic package, while expanding
shared variable declaration.
Calls to access and assign routines have been replaced by calls to
Read/Write routines of System.Shared_Storage.Shared_Var_Procs
instantiated package.

* rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
It identifies the new generic package added in s-shasto.

* s-shasto.adb, s-shasto.ads: A new generic package has been added, it
is instantiated for each shared passive variable. It provides
supporting procedures called upon each read or write access by the
expanded code.

* sem_attr.adb:
For this runtime unit (always compiled in GNAT mode), we allow
stream attributes references for limited types for the case where
shared passive objects are implemented using stream attributes,
which is the default in GNAT's persistent storage implementation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135627 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/exp_smem.adb
gcc/ada/exp_smem.ads
gcc/ada/rtsfind.ads
gcc/ada/s-shasto.adb
gcc/ada/s-shasto.ads
gcc/ada/sem_attr.adb