From: Kyrylo Tkachov Date: Thu, 12 Jan 2017 17:41:49 +0000 (+0000) Subject: Fix build issue with NO_FUNCTION_CSE X-Git-Tag: releases/gcc-5.5.0~590 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6772bac7efb15af138ff8b6cd0c4d45eca07d929;p=thirdparty%2Fgcc.git Fix build issue with NO_FUNCTION_CSE * postreload.c (reload_cse_simplify): Check for NO_FUNCTION_CSE definition instead of using it directly. From-SVN: r244376 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c362621be357..81888b4ed12a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-01-12 Kyrylo Tkachov + + * postreload.c (reload_cse_simplify): Check for NO_FUNCTION_CSE + definition instead of using it directly. + 2017-01-12 Maxim Ostapenko Backport from mainline diff --git a/gcc/postreload.c b/gcc/postreload.c index ba6591d08203..fc0499a2e3f2 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -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) {