Commit a16fa075 by Richard Biener Committed by Richard Biener

re PR ipa/86124 (ICE in create_variable_info_for, at tree-ssa-structalias.c:6123)

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
parent 4c1d999a
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
......
/* { dg-do compile } */
/* { dg-options "-O -fipa-pta" } */
extern void a (void);
void b (void)
{
void *c;
c = a;
*(char *)c = 1;
}
......@@ -6120,7 +6120,8 @@ create_variable_info_for (tree decl, const char *name, bool add_id)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment