+2019-10-18 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/92056
+ * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
+ before calling compute_builtin_object_size.
+
2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
PR target/65342
+2019-10-18 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/92056
+ * gcc.dg/tree-ssa/pr92056.c: New test.
+
2019-10-17 Paolo Carlini <paolo.carlini@oracle.com>
* g++.old-deja/g++.other/decl9.C: Check locations too.
--- /dev/null
+/* PR tree-optimization/92056 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-final { scan-tree-dump-times "return 1;" 2 "optimized" } } */
+/* { dg-final { scan-tree-dump-not "strcmp \\(" "optimized" } } */
+
+void bar (int, char *);
+
+int
+foo (int x, char *y, const char *z)
+{
+ char *a;
+ __builtin_sprintf (y, z);
+ if (x == 3)
+ a = __builtin_malloc (5);
+ else if (x == 7)
+ a = __builtin_malloc (6);
+ else
+ a = __builtin_malloc (7);
+ bar (x, a);
+ return __builtin_strcmp (a, "abcdefg") != 0;
+}
+
+int
+baz (int x)
+{
+ char *a;
+ if (x == 3)
+ a = __builtin_malloc (5);
+ else if (x == 7)
+ a = __builtin_malloc (6);
+ else
+ a = __builtin_malloc (7);
+ bar (x, a);
+ return __builtin_strcmp (a, "abcdefg") != 0;
+}