From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3DFD73858C60; Sat, 22 Jan 2022 05:04:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DFD73858C60 From: "cnsun at uwaterloo dot ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/104178] New: -fcompare-debug failure at -O3 -m32 Date: Sat, 22 Jan 2022 05:04:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cnsun at uwaterloo dot ca X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 22 Jan 2022 05:04:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104178 Bug ID: 104178 Summary: -fcompare-debug failure at -O3 -m32 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: cnsun at uwaterloo dot ca Target Milestone: --- $ gcc-trunk small.c -w -m32 -fcompare-debug -O3 gcc-trunk: error: small.c: =E2=80=98-fcompare-debug=E2=80=99 failure (lengt= h) $ cat small.c static int a, g, h, k, l, m, p, r, s, u, w, z, aa, ab, ac, ad; char b, ae, af; struct c { int d; int e; } e[1]; static char f; static short i; static struct c j, x; static unsigned n; int *o, *t; static char q; int v; int y; int ag; int ah; int ai; int aj; int ak; static char al() { int am[] =3D {0, 1, 9, 6, 3, 4, 3, 0, 3, 4, 3, 9, 0, 6, 1, 1, 6, 0, 2, 4, 6, 4, 2, 4, 6, 1, 1, 6, 0, 9, 9, 0, 3, 0, 3, 4, 3, 0, 3}; int an =3D 8, ao =3D r; int c[] =3D {2, 2, 2, 2, 2}; char ap; if (ao) { ap =3D af; for (; t; t++) printf("index =3D \n"); } af =3D r =3D ao; int *aq =3D 0; { int *b[] =3D {o, o, o, o, o, o, o, o, o, o, o, o, o}; if (r) { struct c c[] =3D {*e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e,= *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *= e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *= e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *= e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *= e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *= e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *= e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *e, *= e, *e, *e, *e, *e, *e, *e, *e, *e}; k =3D ab; for (; u;) { struct c d =3D {1}; ak =3D 0; int ar =3D f ^ p; as: if (ar) { printf("", p); p =3D a ^ p; } } } if (z) goto at; a =3D l; an =3D 5; } if (f) { int *au[10]; aa =3D 0; for (; aa < 10; aa++) au[aa] =3D &an; for (; m;) ; a =3D r; } if (g) f =3D 1; for (; f;) { while (an < 5 || i) ae =3D q; int c[] =3D {*o, *o, *o, *o, *o, *o, *o, *o, *o, *o, *o, *o, *o}; if (w) for (;;) { if (r) break; a =3D a ^ printf(&b); for (; ac; ac++) ; } else *aq =3D r; ai =3D r; n =3D (an || ~r) + n || j.d; if (r) a =3D a ^ 5; if (s) printf(&b); printf("", s); if (p) { s =3D 3; for (; s;) if (ap) ap =3D 0; } int av =3D h ^ q, aw =3D j.e ^ av; while (h++) { a =3D a ^ 5; if (k) printf(&b); } if (aw) v =3D j.e ^ q; at: b =3D ag =3D w =3D 0; if (f) goto ax; z =3D h; a =3D k; if (n) printf("", m); if (k) { printf("", k); m =3D n & m + k; } a =3D j.d; u =3D n + l; if (ah) break; ay: if (l) q =3D j.d; } int az =3D i || m; int ba =3D g || f; g =3D i =3D az; *e =3D x; char bb =3D n & m & p || r; ax: if (y) { printf("", ba); goto as; } af =3D bb; b =3D i | n; if (j.d) printf("", e); char bc =3D p & n | i; n =3D bc; int bd =3D l & m; m =3D bd; if (aj) { printf("", ad); m =3D l; goto ay; } l =3D f; j =3D e[0]; } int main() { al(); } $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-lin= ux-gnu/12.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.OLkXuGPSxC-gcc-builder/gcc/configure --enable-languages=3Dc,c++,lto --enable-checking-yes --enable-multiarch --prefix=3D/scratch/software/gcc-trunk --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.1 20220121 (experimental) [master -gcaca8eddd] (GCC)=20 $=