OSDN Git Service

* gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 11 Apr 2010 11:49:22 +0000 (11:49 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:31:27 +0000 (14:31 +0900)
commita6330f8bf57677f7cff9a47ad2032c84122fb2ea
treeb5a20005d5e6d652fca9fdabd0d0ef2167bafe24
parent0324d07f8415ac5a8c052044d379dfbd76d3d933
* gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
function.
(lvalue_required_p) <N_Attribute_Reference>: Call it.
(gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
folding the result only if lvalue_required_for_attribute_p is true.
* gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
typed constant to build_component_ref.
(unchecked_convert): Likewise.
* gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
(build_allocator): Likewise.

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