OSDN Git Service

* trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
[pf3gnuchains/gcc-fork.git] / gcc / tree-ssa-structalias.c
index e6e1c81..def8958 100644 (file)
@@ -1809,7 +1809,7 @@ perform_var_substitution (constraint_graph_t graph)
 
       if (graph->label[node] == 0 && TEST_BIT (graph->direct_nodes, node))
        {
-         if (dump_file && (dump_flags && TDF_DETAILS))
+         if (dump_file && (dump_flags & TDF_DETAILS))
            fprintf (dump_file,
                     "%s is a non-pointer variable, eliminating edges.\n",
                     get_varinfo (node)->name);
@@ -4692,6 +4692,7 @@ compute_points_to_sets (struct alias_info *ai)
   timevar_push (TV_TREE_PTA);
 
   init_alias_vars ();
+  init_alias_heapvars ();
 
   intra_create_variable_infos ();
 
@@ -4934,14 +4935,16 @@ struct tree_opt_pass pass_ipa_pta =
 void
 init_alias_heapvars (void)
 {
-  heapvar_for_stmt = htab_create_ggc (11, tree_map_hash, tree_map_eq,
-                                     NULL);
+  if (!heapvar_for_stmt)
+    heapvar_for_stmt = htab_create_ggc (11, tree_map_hash, tree_map_eq,
+                                       NULL);
 }
 
 void
 delete_alias_heapvars (void)
 {
   htab_delete (heapvar_for_stmt);
+  heapvar_for_stmt = NULL;
 }