This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]