From: ebotcazou Date: Sun, 11 Apr 2010 11:49:22 +0000 (+0000) Subject: * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a6330f8bf57677f7cff9a47ad2032c84122fb2ea;p=pf3gnuchains%2Fgcc-fork.git * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static function. (lvalue_required_p) : Call it. (gnat_to_gnu) : 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 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 626eb4f8b27..55898e3e4a5 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,18 @@ 2010-04-11 Eric Botcazou + * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static + function. + (lvalue_required_p) : Call it. + (gnat_to_gnu) : 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. + +2010-04-11 Eric Botcazou + * gcc-interface/utils2.c (build_cond_expr): Take the address and dereference if the result type is passed by reference. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fcc082aee49..503a0d81e85 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-04-11 Eric Botcazou + + * gnat.dg/pack9.adb: Remove -cargs option. + * gnat.dg/aggr12.ad[sb]: New test. + 2010-04-10 Jie Zhang PR target/43417