This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix libgomp.c++/task-4.C
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 May 2009 15:16:41 +0200
- Subject: [committed] Fix libgomp.c++/task-4.C
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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