]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix build issue with NO_FUNCTION_CSE
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 12 Jan 2017 17:41:49 +0000 (17:41 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 12 Jan 2017 17:41:49 +0000 (17:41 +0000)
* postreload.c (reload_cse_simplify): Check for NO_FUNCTION_CSE
definition instead of using it directly.

From-SVN: r244376

gcc/ChangeLog
gcc/postreload.c

index c362621be3574dc6c206ace3cf2f8f0ae0c1112e..81888b4ed12a0f6b2a3547e03272b8d2deb5f242 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * postreload.c (reload_cse_simplify): Check for NO_FUNCTION_CSE
+       definition instead of using it directly.
+
 2017-01-12  Maxim Ostapenko  <m.ostapenko@samsung.com>
 
        Backport from mainline
index ba6591d08203abab52e1883afe4cb72f356dfb0f..fc0499a2e3f2c3dbe529a28643100b0bce9a33e1 100644 (file)
@@ -122,8 +122,10 @@ reload_cse_simplify (rtx_insn *insn, rtx testreg)
 
   /* If NO_FUNCTION_CSE has been set by the target, then we should not try
      to cse function calls.  */
-  if (NO_FUNCTION_CSE && CALL_P (insn))
+#ifdef NO_FUNCTION_CSE
+  if (CALL_P (insn))
     return false;
+#endif
 
   if (GET_CODE (body) == SET)
     {