aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2006-06-23 16:18:49 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2006-06-23 16:18:49 +0000
commita441447f7f6495bb8a8e6d160d7c095da787e708 (patch)
tree21e2dd58058f99241fdf55ad680c1c3ebc3dd2e5 /gcc/tree.h
parenta3d536f1c1c0aa3d414c17c4acc44c900b1f1e38 (diff)
downloadgcc-a441447f7f6495bb8a8e6d160d7c095da787e708.zip
gcc-a441447f7f6495bb8a8e6d160d7c095da787e708.tar.gz
gcc-a441447f7f6495bb8a8e6d160d7c095da787e708.tar.bz2
tree.c (max_int_size_in_bytes): New function, inspired from code in function.c:assign_temp.
* tree.c (max_int_size_in_bytes): New function, inspired from code in function.c:assign_temp. * tree.h (max_int_size_in_bytes): Declare. * function.c (assign_temp): Use it. * gimplify.c (create_tmp_var): Relax the assertions on the type properties, not mandating constant size any more. (force_constant_size): New static function. (gimple_add_tmp_var): Use it, forcing variable size to a constant upper bound if it is not constant on entry. * ada/misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have not been able to get a constant upper bound from TYPE_SIZE_UNIT. * gnat.dg/varsize_temp.adb: New test. From-SVN: r114938
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index ad21877..6d8ad6a 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3833,6 +3833,7 @@ extern tree expr_last (tree);
extern tree expr_only (tree);
extern tree size_in_bytes (tree);
extern HOST_WIDE_INT int_size_in_bytes (tree);
+extern HOST_WIDE_INT max_int_size_in_bytes (tree);
extern tree bit_position (tree);
extern HOST_WIDE_INT int_bit_position (tree);
extern tree byte_position (tree);