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)
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

index 626eb4f..55898e3 100644 (file)
@@ -1,5 +1,18 @@
 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
 
+       * 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.
+
+2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
+
        * gcc-interface/utils2.c (build_cond_expr): Take the address and
        dereference if the result type is passed by reference.
 
index fcc082a..503a0d8 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gnat.dg/pack9.adb: Remove -cargs option.
+       * gnat.dg/aggr12.ad[sb]: New test.
+
 2010-04-10  Jie Zhang  <jie@codesourcery.com>
 
        PR target/43417