This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r114938 - in /trunk/gcc: ChangeLog ada/misc.c f...
- From: hainque at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 23 Jun 2006 16:18:50 -0000
- Subject: r114938 - in /trunk/gcc: ChangeLog ada/misc.c f...
Author: hainque
Date: Fri Jun 23 16:18:49 2006
New Revision: 114938
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114938
Log:
* 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.
Added:
trunk/gcc/testsuite/gnat.dg/varsize_temp.adb
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ada/misc.c
trunk/gcc/function.c
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree.c
trunk/gcc/tree.h