* match.pd (X / C1 op C2): Don't call unsigned_type_for on
range_check_type result.
+ 2019-09-01 Jakub Jelinek <jakub@redhat.com>
+
+ PR lto/91572
+ * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
+ GIMPLE_ASM TREE_LIST operands.
+
2019-08-29 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/91351
2019-10-21 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-09-01 Jakub Jelinek <jakub@redhat.com>
+
+ PR lto/91572
+ * g++.dg/lto/pr91572_0.C: New test.
+
2019-08-29 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/91351
--- /dev/null
+// PR lto/91572
+// { dg-lto-do link }
+// { dg-lto-options { { -O -fPIC -flto } } }
+// { dg-require-effective-target shared }
+// { dg-require-effective-target fpic }
+// { dg-extra-ld-options "-shared" }
+
+void foo (char);
+namespace N {
+ class A { A (); };
+ A::A () { asm ("" : : "g" (0)); }
+}
{
tree arg = gimple_op (stmt, i);
find_decls_types (arg, fld);
+ /* find_decls_types doesn't walk TREE_PURPOSE of TREE_LISTs,
+ which we need for asm stmts. */
+ if (arg
+ && TREE_CODE (arg) == TREE_LIST
+ && TREE_PURPOSE (arg)
+ && gimple_code (stmt) == GIMPLE_ASM)
+ find_decls_types (TREE_PURPOSE (arg), fld);
}
}
}