This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32152] omp lowering creates mismatched types
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2007 10:09:03 -0000
- Subject: [Bug middle-end/32152] omp lowering creates mismatched types
- References: <bug-32152-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-05-30 10:09 -------
It looks like the following will fix it
Index: gimplify.c
===================================================================
--- gimplify.c (revision 125161)
+++ gimplify.c (working copy)
@@ -5308,7 +5308,7 @@ gimplify_omp_atomic_pipeline (tree *expr
floating point. This allows the atomic operation to properly
succeed even with NaNs and -0.0. */
x = build3 (COND_EXPR, void_type_node,
- build2 (NE_EXPR, boolean_type_node, oldival, oldival2),
+ build2 (NE_EXPR, boolean_type_node, fold_convert (itype,
oldival), oldival2),
build1 (GOTO_EXPR, void_type_node, label), NULL);
gimplify_and_add (x, pre_p);
but this routine is a twisted maze ;)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32152