re PR middle-end/28724 (atomic produces type mismatches)

PR middle-end/28724
	* gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
	to itype in assignment to oldival2.

From-SVN: r116153
This commit is contained in:
Jakub Jelinek 2006-08-15 16:56:28 +02:00 committed by Jakub Jelinek
parent 8e5fde8713
commit d0f53cbc80
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-08-15 Jakub Jelinek <jakub@redhat.com>
PR middle-end/28724
* gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
to itype in assignment to oldival2.
2006-07-14 Andrew Pinski <pinksia@physics.uc.edu>
PR c/27490

View File

@ -5129,7 +5129,8 @@ gimplify_omp_atomic_pipeline (tree *expr_p, tree *pre_p, tree addr,
gimplify_and_add (x, pre_p);
}
x = build2 (MODIFY_EXPR, void_type_node, oldival2, oldival);
x = build2 (MODIFY_EXPR, void_type_node, oldival2,
fold_convert (itype, oldival));
gimplify_and_add (x, pre_p);
args = tree_cons (NULL, fold_convert (itype, newival), NULL);