From: Christophe Lyon Date: Tue, 23 Nov 2021 16:06:42 +0000 (+0000) Subject: libcpp: Fix ATTR_LIKELY definition PR preprocessor/103355 X-Git-Tag: basepoints/gcc-13~2841 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46d3cfd29dc701e1e0d18b0380d6299fce7944f2;p=thirdparty%2Fgcc.git 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 --git a/libcpp/system.h b/libcpp/system.h index f6fc583ab806..b78ab813d2fc 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. */