public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/98366] New: [11 Regression] wrong-code with memcmp and -m32
@ 2020-12-18  2:52 mpolacek at gcc dot gnu.org
  2020-12-18  2:53 ` [Bug middle-end/98366] " mpolacek at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-12-18  2:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98366
           Summary: [11 Regression] wrong-code with memcmp and -m32
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

struct S {
  int b;
  int alignment;
  int c : 7;
  int d : 8;
} const e[] = {{.0, 3, '(', 2.0}};
typedef struct S S;

int memcmp (const void *, const void *, __SIZE_TYPE__);

int
main ()
{
  _Bool b = (!memcmp(e, (S[]){{.alignment = 3, '(', 2.0}}, sizeof (S)));
  if (!b)
    __builtin_abort ();
}

with -m32 -O2 generates a binary that aborts.  Started with r11-2709.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-12-19 21:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18  2:52 [Bug middle-end/98366] New: [11 Regression] wrong-code with memcmp and -m32 mpolacek at gcc dot gnu.org
2020-12-18  2:53 ` [Bug middle-end/98366] " mpolacek at gcc dot gnu.org
2020-12-18  2:56 ` mpolacek at gcc dot gnu.org
2020-12-18  8:59 ` pinskia at gcc dot gnu.org
2020-12-18  9:06 ` marxin at gcc dot gnu.org
2020-12-18  9:18 ` jakub at gcc dot gnu.org
2020-12-18  9:26 ` jakub at gcc dot gnu.org
2020-12-18  9:35 ` jakub at gcc dot gnu.org
2020-12-18 15:43 ` jakub at gcc dot gnu.org
2020-12-19 21:24 ` cvs-commit at gcc dot gnu.org
2020-12-19 21:32 ` jakub at gcc dot gnu.org

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