OSDN Git Service

2004-10-26 Ed Schonberg <schonberg@gnat.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Oct 2004 13:01:55 +0000 (13:01 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Oct 2004 13:01:55 +0000 (13:01 +0000)
commit877a38b65a885598f38c861d5b036590d6b3f5cc
tree97532d0450cf7bf431269a4f4a0b9d1c84f351b8
parentf84d3d59599cf29d3dc61dc5d56cd17e3e658ad1
2004-10-26  Ed Schonberg  <schonberg@gnat.com>
    Eric Botcazou  <ebotcazou@act-europe.fr>

* exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
is aliased and is a by_reference type, do not pass by copy.
(Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
detect whether the call is in the right side of an assignment or
the expression of an object declaration.  Recurse on component
association within aggregates.
Call it in the condition that determines whether the temporary is
necessary for correct stack-checking.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89651 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/exp_ch6.adb