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 middle-end/33423] [4.2/4.3 regression]: internal compiler error: in expand_expr_real_1, at expr.c:8670



------- Comment #6 from hjl at lucon dot org  2007-09-15 18:50 -------
Another simple testcase:
---
static char buf;

void
test6 (void)
{
  int len;
  void *p;

  for (len = 0; len < 2; len++)
    {
      p = __builtin___memset_chk (&buf, '\0', len, 1);
      if (p != &buf) return;
    }
}
---

fold_builtin_memset was added to return COMPOUND_EXPR via
omit_one_operand. But there was nothing added to handle it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33423


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