]> git.ipfire.org Git - thirdparty/gcc.git/commit
checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
authorGary Dismukes <dismukes@adacore.com>
Thu, 31 Jul 2008 12:46:23 +0000 (14:46 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 31 Jul 2008 12:46:23 +0000 (14:46 +0200)
commite84e11ba0a57e5a319504d4f0197aad385f85e80
treeb4e0ed9b5b4d45488eacbfd965b03a06d5e5e2ed
parent67d7b0ab5ffd3d67e804732cdb74299300db18b6
checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.

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

From-SVN: r138399
gcc/ada/checks.adb
gcc/ada/checks.ads
gcc/ada/exp_attr.adb
gcc/ada/exp_ch4.adb