This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/18067] [4.0 Regression] ICE at loc_descriptor_from_tree_1 in dwarf2out.c (VLA)


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]