+2014-07-28 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/61921
+ * tree-ssa-structalias.c (create_variable_info_for_1): Check
+ if there is a varpool node before dereferencing it.
+
2014-07-28 Roman Gareev <gareevroman@gmail.com>
* graphite-sese-to-poly.c:
+2014-07-28 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/61921
+ * gfortran.dg/pr61921.f90: New testcase.
+
2014-07-28 Richard Biener <rguenther@suse.de>
PR rtl-optimization/61801
--- /dev/null
+! { dg-do compile }
+! { dg-options "-O2 -fipa-pta" }
+MODULE min_heap
+ TYPE heap_t
+ END TYPE heap_t
+CONTAINS
+ ELEMENTAL FUNCTION get_left_child(n) RESULT (child)
+ INTEGER, INTENT(IN) :: n
+ END FUNCTION get_left_child
+ ELEMENTAL FUNCTION get_value(heap, n) RESULT (value)
+ TYPE(heap_t), INTENT(IN) :: heap
+ INTEGER, INTENT(IN) :: n
+ END FUNCTION get_value
+END MODULE min_heap
+
auto_vec<fieldoff_s> fieldstack;
fieldoff_s *fo;
unsigned int i;
+ varpool_node *vnode;
if (!declsize
|| !tree_fits_uhwi_p (declsize))
in IPA mode. Else we'd have to parse arbitrary initializers. */
&& !(in_ipa_mode
&& is_global_var (decl)
- && varpool_node::get (decl)->get_constructor ()))
+ && (vnode = varpool_node::get (decl))
+ && vnode->get_constructor ()))
{
fieldoff_s *fo = NULL;
bool notokay = false;