public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/98393] [11 Regression] valgrind error for ./gcc.target/m68k/pr52573.c since r11-5928-gfc7b4248172561a9
Date: Sat, 02 Jan 2021 19:35:32 +0000	[thread overview]
Message-ID: <bug-98393-4-oMrPKug547@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98393-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98393

--- Comment #10 from David Binderman <dcb314 at hotmail dot com> ---
Reduced test case:

typedef struct {
  short a;
  struct {
    unsigned short b;
    unsigned short c
  } d[]
} e;
enum { f, g, h, i };
e j;
char k, l;
e *m;
void n(void) {
  int o;
  char *q, *r = 0, *s, *t, *p = &k;
  for (; *p; ++p)
    switch (o) {
    case f:
      o = s = p;
    case g:
      switch (*p) {
      case '@':
        t = p;
        o = h;
      }
      break;
    case h:
      q = p;
    case i:
      if (p == '#')
        r = p;
    }
  j.d[0].b = q - &k;
  j.d[0].c = r - q;
  if (s) {
    j.d[0].b = s - &k;
    j.d[0].c = t - s;
  }
  if (m)
    j.d[0].b = j.d[0].c = l;
}

  parent reply	other threads:[~2021-01-02 19:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-19 17:31 [Bug c/98393] New: new valgrind error for ./gcc.target/m68k/pr52573.c dcb314 at hotmail dot com
2020-12-19 17:58 ` [Bug c/98393] " dcb314 at hotmail dot com
2020-12-19 22:06 ` dcb314 at hotmail dot com
2020-12-19 22:31 ` dcb314 at hotmail dot com
2020-12-19 22:35 ` dcb314 at hotmail dot com
2020-12-19 22:43 ` dcb314 at hotmail dot com
2020-12-19 23:00 ` dcb314 at hotmail dot com
2020-12-21  9:04 ` [Bug tree-optimization/98393] [11 Regression] valgrind error for ./gcc.target/m68k/pr52573.c since r11-5928-gfc7b4248172561a9 marxin at gcc dot gnu.org
2020-12-21  9:06 ` marxin at gcc dot gnu.org
2020-12-21  9:39 ` dcb314 at hotmail dot com
2021-01-02 19:35 ` dcb314 at hotmail dot com [this message]
2021-01-04  9:05 ` rguenth at gcc dot gnu.org
2021-01-04 11:13 ` cvs-commit at gcc dot gnu.org
2021-01-04 11:14 ` rguenth at gcc dot gnu.org
2021-01-04 11:15 ` rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-98393-4-oMrPKug547@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).