diff mbox

[gomp4] use integer_zerop

Message ID 55F07FC8.8050500@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Sept. 9, 2015, 6:51 p.m. UTC
I've applied this, where I'd incorrectly compared nodes for equality, rather 
than the node value.

nathan
diff mbox

Patch

2015-09-09  Nathan Sidwell  <nathan@codesourcery.com>

	* omp-low.c (execute_oacc_transform): Use integer_zerop, not
	direct node comparison.

Index: gcc/omp-low.c
===================================================================
--- gcc/omp-low.c	(revision 227599)
+++ gcc/omp-low.c	(working copy)
@@ -14829,7 +14829,7 @@  execute_oacc_transform ()
 
 	if (purpose[ix])
 	  {
-	    if (purpose[ix] == boolean_false_node)
+	    if (integer_zerop (purpose[ix]))
 	      fn_level = ix + 1;
 	    else if (fn_level < 0)
 	      fn_level = ix;