summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/slice7_pkg.ads
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2009-08-25 15:02:19 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2009-08-25 15:02:19 +0000
commitf76d6e6f37b2411477583ecf6f878241883ef7d0 (patch)
treef7857a6dd43c7cecbaa9c1e23de6832efeed3ba3 /gcc/testsuite/gnat.dg/slice7_pkg.ads
parent23878536a6b359865599d300c214bbb8fef83a43 (diff)
downloadgcc-f76d6e6f37b2411477583ecf6f878241883ef7d0.tar.gz
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
Diffstat (limited to 'gcc/testsuite/gnat.dg/slice7_pkg.ads')
-rw-r--r--gcc/testsuite/gnat.dg/slice7_pkg.ads7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/slice7_pkg.ads b/gcc/testsuite/gnat.dg/slice7_pkg.ads
new file mode 100644
index 00000000000..3c2f4a177c7
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/slice7_pkg.ads
@@ -0,0 +1,7 @@
+with System.Storage_Elements; use System.Storage_Elements;
+
+package Slice7_Pkg is
+
+ procedure Put (The_Object : in Storage_Array);
+
+end Slice7_Pkg;