value-prof.c (gimple_ic): Fix tuplification bug.
authorJan Hubicka <jh@suse.cz>
Wed, 10 Sep 2008 11:37:18 +0000 (13:37 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 10 Sep 2008 11:37:18 +0000 (11:37 +0000)
* value-prof.c (gimple_ic): Fix tuplification bug.
* sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized var
warning.

From-SVN: r140228

gcc/ChangeLog
gcc/sched-deps.c
gcc/value-prof.c

index 8c231a2b2e5949a3db87b576171055d051996fb3..e6ede43f21a7da03cffba27b9b08dce21f3db7e8 100644 (file)
@@ -1,3 +1,9 @@
+2008-09-10  Jan Hubicka  <jh@suse.cz>
+
+       * value-prof.c (gimple_ic): Fix tuplification bug.
+       * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized var
+       warning.
+
 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/37353
index b7aa6b4d9ebb0dcebf5efc8a019b9338b39ba9bb..784f84ff63dd5689aefa422e24e9542c156ff961 100644 (file)
@@ -527,7 +527,7 @@ bool
 sched_insns_conditions_mutex_p (const_rtx insn1, const_rtx insn2)
 {
   rtx cond1, cond2;
-  bool rev1, rev2;
+  bool rev1 = false, rev2 = false;
 
   /* df doesn't handle conditional lifetimes entirely correctly;
      calls mess up the conditional lifetimes.  */
index fac124ffddf554834abf1e5e9f43c7bc4c629008..1900faa5299c96d2b397e34c4577e45d182e35d4 100644 (file)
@@ -1117,8 +1117,7 @@ gimple_ic (gimple stmt, gimple call, struct cgraph_node *direct_call,
   bb1end = stmt3;
 
   stmt1 = gimple_copy (stmt);
-  gimple_call_set_fn (stmt,
-                     build_addr (direct_call->decl, current_function_decl));
+  gimple_call_set_fndecl (stmt1, direct_call->decl);
   gsi_insert_before (&gsi, stmt1, GSI_SAME_STMT);
   bb2end = stmt1;
   bb3end = stmt;