Backported from mainline
2010-07-01 Richard Guenther <rguenther@suse.de>
* omp-low.c (scan_omp_1_op): Don't change type of INTEGER_CSTs
directly.
From-SVN: r172111
+2011-04-07 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from mainline
+ 2010-07-01 Richard Guenther <rguenther@suse.de>
+
+ * omp-low.c (scan_omp_1_op): Don't change type of INTEGER_CSTs
+ directly.
+
2011-04-07 Andrey Belevantsev <abel@ispras.ru>
Backport from mainline
{
*walk_subtrees = 1;
if (ctx)
- TREE_TYPE (t) = remap_type (TREE_TYPE (t), &ctx->cb);
+ {
+ tree tem = remap_type (TREE_TYPE (t), &ctx->cb);
+ if (tem != TREE_TYPE (t))
+ {
+ if (TREE_CODE (t) == INTEGER_CST)
+ *tp = build_int_cst_wide (tem,
+ TREE_INT_CST_LOW (t),
+ TREE_INT_CST_HIGH (t));
+ else
+ TREE_TYPE (t) = tem;
+ }
+ }
}
break;
}