From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1652) id 1FB353858D28; Tue, 23 Nov 2021 16:11:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FB353858D28 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Christophe Lyon To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5472] libcpp: Fix ATTR_LIKELY definition PR preprocessor/103355 X-Act-Checkin: gcc X-Git-Author: Christophe Lyon X-Git-Refname: refs/heads/master X-Git-Oldrev: 8632f8c65de6e9f301c2e729eb14b43427031665 X-Git-Newrev: 46d3cfd29dc701e1e0d18b0380d6299fce7944f2 Message-Id: <20211123161104.1FB353858D28@sourceware.org> Date: Tue, 23 Nov 2021 16:11:04 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 16:11:04 -0000 https://gcc.gnu.org/g:46d3cfd29dc701e1e0d18b0380d6299fce7944f2 commit r12-5472-g46d3cfd29dc701e1e0d18b0380d6299fce7944f2 Author: Christophe Lyon Date: Tue Nov 23 16:06:42 2021 +0000 libcpp: Fix ATTR_LIKELY definition PR preprocessor/103355 Fix the definition of ATTR_LIKELY when __has_cpp_attribute is not defined, as it is the case with old compilers such as gcc-4.8.5. libcpp/: PR preprocessor/103355 * system.h (ATTR_LIKELY): Fix definition. Diff: --- libcpp/system.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcpp/system.h b/libcpp/system.h index f6fc583ab80..b78ab813d2f 100644 --- a/libcpp/system.h +++ b/libcpp/system.h @@ -430,6 +430,8 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; # else # define ATTR_LIKELY # endif +#else +# define ATTR_LIKELY #endif /* Poison identifiers we do not want to use. */