This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples] more cfg + openmp fixes
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: dnovillo at google dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 May 2008 20:57:02 -0400
- Subject: [tuples] more cfg + openmp fixes
Minor oversights. This fixes another bunch of regressions.
Committed to b-r-a-n-c-h.
* omp-low.c (optimize_omp_library_calls): Make sure statement is
a GIMPLE_CALL before we look inside of it.
* tree-cfg.c (move_stmt_op): Exit gracefully.
Index: omp-low.c
===================================================================
--- omp-low.c (revision 135313)
+++ omp-low.c (working copy)
@@ -2544,7 +2544,7 @@ optimize_omp_library_calls (void)
gimple call = gsi_stmt (gsi);
tree decl;
- if (call
+ if (gimple_code (call) == GIMPLE_CALL
&& (decl = gimple_call_fndecl (call))
&& DECL_EXTERNAL (decl)
&& TREE_PUBLIC (decl)
Index: tree-cfg.c
===================================================================
--- tree-cfg.c (revision 135313)
+++ tree-cfg.c (working copy)
@@ -5313,6 +5313,8 @@ move_stmt_op (tree *tp, int *walk_subtre
}
else if (TYPE_P (t))
*walk_subtrees = 0;
+
+ return NULL_TREE;
}
/* Like move_stmt_op, but for gimple statements.