* gcse.c (gcse_constant_p): Fix typo in last change.
authorHans-Peter Nilsson <hp@axis.com>
Thu, 30 Apr 2009 08:10:37 +0000 (08:10 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Thu, 30 Apr 2009 08:10:37 +0000 (08:10 +0000)
From-SVN: r146999

gcc/ChangeLog
gcc/gcse.c

index 90e4ab11399ba5c691597a323fdab42f287f740a..a17306fdd3a6554dd46e2e40caa9e6f7404a4236 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
+
+       * gcse.c (gcse_constant_p): Fix typo in last change.
+
 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
 
        * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
index fefdb8fce1f113f405aec064d220b25e8aab1aea..ab3137eae023d7465043c204eaec4f5f2de5bc83 100644 (file)
@@ -1303,7 +1303,7 @@ gcse_constant_p (const_rtx x)
 
   /* Since X might be inserted more than once we have to take care that it
      is sharable.  */
-  return CONSTANT_P (x) && (GET_CODE (X) != CONST || shared_const_p (x));
+  return CONSTANT_P (x) && (GET_CODE (x) != CONST || shared_const_p (x));
 }
 
 /* Scan pattern PAT of INSN and add an entry to the hash TABLE (set or