2018-06-14 Richard Biener <rguenther@suse.de>
PR ipa/86124
* tree-ssa-struct-alias.c (create_variable_info_for): Handle
NULL cgraph_node.
* gcc.dg/pr86124.c: New testcase.
From-SVN: r261587
+2018-06-14 Richard Biener <rguenther@suse.de>
+
+ PR ipa/86124
+ * tree-ssa-struct-alias.c (create_variable_info_for): Handle
+ NULL cgraph_node.
+
2018-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* config/rtems.h (STDINT_LONG32): Define.
+2018-06-14 Richard Biener <rguenther@suse.de>
+
+ PR ipa/86124
+ * gcc.dg/pr86124.c: New testcase.
+
2018-06-13 Martin Sebor <msebor@redhat.com>
PR tree-optimization/86114
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -fipa-pta" } */
+
+extern void a (void);
+
+void b (void)
+{
+ void *c;
+ c = a;
+ *(char *)c = 1;
+}
cgraph_node *node;
if (in_ipa_mode
&& TREE_CODE (decl) == FUNCTION_DECL
- && (node = cgraph_node::get (decl))->ifunc_resolver)
+ && (node = cgraph_node::get (decl))
+ && node->ifunc_resolver)
{
varinfo_t fi = get_vi_for_tree (node->get_alias_target ()->decl);
constraint_expr rhs