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]

[committed] Fix libgomp.c++/task-4.C


Hi!

walk_tree isn't walking TREE_TYPEs, so scan_omp_1_op has to do it itself.
Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk.

2009-05-29  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/39958
	* omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
	for trees other than decls/types.

--- gcc/omp-low.c.jj	2009-05-25 08:30:35.000000000 +0200
+++ gcc/omp-low.c	2009-05-29 11:57:47.000000000 +0200
@@ -1911,7 +1911,11 @@ scan_omp_1_op (tree *tp, int *walk_subtr
       if (ctx && TYPE_P (t))
 	*tp = remap_type (t, &ctx->cb);
       else if (!DECL_P (t))
-	*walk_subtrees = 1;
+	{
+	  *walk_subtrees = 1;
+	  if (ctx)
+	    TREE_TYPE (t) = remap_type (TREE_TYPE (t), &ctx->cb);
+	}
       break;
     }
 

	Jakub


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