]> git.ipfire.org Git - thirdparty/gcc.git/commit
gimplify.c (prepare_gimple_addressable): New static function.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 25 Aug 2009 15:02:19 +0000 (15:02 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 25 Aug 2009 15:02:19 +0000 (15:02 +0000)
commitf76d6e6f37b2411477583ecf6f878241883ef7d0
treef7857a6dd43c7cecbaa9c1e23de6832efeed3ba3
parent23878536a6b359865599d300c214bbb8fef83a43
gimplify.c (prepare_gimple_addressable): New static function.

* gimplify.c (prepare_gimple_addressable): New static function.
(gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
it addressable.
(gimplify_addr_expr): Invoke it similarly on the operand instead of
manually fiddling with it.
ada/
* gcc-interface/trans.c (call_to_gnu): Tidy.
(gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
non-constant size but the array itself has constant size.
* gcc-interface/utils.c (convert_vms_descriptor64): Fix type
consistency error.
(convert_vms_descriptor32): Likewise.

From-SVN: r151082
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/slice7.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/slice7_pkg.ads [new file with mode: 0644]