This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18067] [4.0 Regression] ICE at loc_descriptor_from_tree_1 in dwarf2out.c (VLA)
- From: "phython at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2004 16:33:44 -0000
- Subject: [Bug tree-optimization/18067] [4.0 Regression] ICE at loc_descriptor_from_tree_1 in dwarf2out.c (VLA)
- References: <20041019230355.18067.phython@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From phython at gcc dot gnu dot org 2004-10-31 16:33 -------
I hacked around the ICE by doing nothing for SSA_NAMEs in
loc_descriptor_from_tree_1. The optimized dump clearly shows that SSA_NAMES in
declarations are not rewritten out of SSA.
;; Function foo (foo)
foo (i)
{
int a[D.1141][D.1138_9 * 4];
const int j;
void * saved_stack.1;
void * D.1143;
int[0][(unsigned int) (j_3 * j_3 - 1)] * a.0;
unsigned int D.1141;
bit_size_type D.1140;
bit_size_type D.1139;
unsigned int D.1138;
int D.1137;
<bb 0>:
saved_stack.1 = __builtin_stack_save ();
j = i + 1;
D.1143 = __builtin_alloca ((unsigned int) (j * j) * 4);
__builtin_stack_restore (saved_stack.1);
return;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18067