-
- Downloads
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
Showing
- gcc/ChangeLog 15 additions, 0 deletionsgcc/ChangeLog
- gcc/ada/misc.c 31 additions, 4 deletionsgcc/ada/misc.c
- gcc/function.c 4 additions, 15 deletionsgcc/function.c
- gcc/gimplify.c 36 additions, 4 deletionsgcc/gimplify.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gnat.dg/varsize_temp.adb 29 additions, 0 deletionsgcc/testsuite/gnat.dg/varsize_temp.adb
- gcc/tree.c 33 additions, 0 deletionsgcc/tree.c
- gcc/tree.h 1 addition, 0 deletionsgcc/tree.h
Loading
Please register or sign in to comment