From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A7552386F436; Sat, 2 Jan 2021 19:35:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7552386F436 From: "dcb314 at hotmail dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2021 19:35:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98393 --- Comment #10 from David Binderman --- 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 =3D 0, *s, *t, *p =3D &k; for (; *p; ++p) switch (o) { case f: o =3D s =3D p; case g: switch (*p) { case '@': t =3D p; o =3D h; } break; case h: q =3D p; case i: if (p =3D=3D '#') r =3D p; } j.d[0].b =3D q - &k; j.d[0].c =3D r - q; if (s) { j.d[0].b =3D s - &k; j.d[0].c =3D t - s; } if (m) j.d[0].b =3D j.d[0].c =3D l; }=