2019-08-15 Richard Biener <rguenther@suse.de>
PR tree-optimization/91445
* gcc.dg/torture/pr91445.c: New testcase.
From-SVN: r274533
+2019-08-15 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/91445
+ * gcc.dg/torture/pr91445.c: New testcase.
+
2019-08-15 Richard Biener <rguenther@suse.de>
* gcc.dg/pr80170.c: Adjust to use __SIZETYPE__.
--- /dev/null
+/* { dg-do run } */
+
+struct S { _Bool x; };
+
+void
+foo (struct S *s)
+{
+ __builtin_memset (s, 0x11, sizeof (struct S));
+ s->x = 1;
+}
+
+int
+main ()
+{
+ struct S s;
+ foo (&s);
+ char c;
+ __builtin_memcpy (&c, &s.x, 1);
+ if (c != 1)
+ __builtin_abort ();
+ return 0;
+}