]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ada/checks.adb
2008-07-31 Gary Dismukes <dismukes@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jul 2008 12:46:23 +0000 (12:46 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jul 2008 12:46:23 +0000 (12:46 +0000)
commit55dc6dc20118ef1944b0c983d30ed44a13637003
treeb4e0ed9b5b4d45488eacbfd965b03a06d5e5e2ed
parentce1f4ffdd0593530622e56cb89efe12f28b8c1bd
2008-07-31  Gary Dismukes  <dismukes@adacore.com>

* checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.

* checks.adb (Apply_Accessibility_Check): Insert the check on
Insert_Node.

* exp_attr.adb:
(Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
to new parameter Insert_Node on call to Apply_Accessibility_Check.
Necessary to distinguish the insertion node because the dereferenced
formal may come from a rename, but the check must be inserted in
front of the attribute.

* exp_ch4.adb:
(Expand_N_Allocator): Pass actual for new Insert_Node parameter on
call to Apply_Accessibility_Check.
(Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
on call to Apply_Accessibility_Check.
Minor reformatting

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138399 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/checks.adb
gcc/ada/checks.ads
gcc/ada/exp_attr.adb
gcc/ada/exp_ch4.adb