]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libcpp: Fix ATTR_LIKELY definition PR preprocessor/103355
authorChristophe Lyon <christophe.lyon@foss.st.com>
Tue, 23 Nov 2021 16:06:42 +0000 (16:06 +0000)
committerChristophe Lyon <christophe.lyon@foss.st.com>
Tue, 23 Nov 2021 16:06:42 +0000 (16:06 +0000)
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.

libcpp/system.h

index f6fc583ab806afe8edf93df2bb9d9b2f5c4f2c71..b78ab813d2fca33977790e33ef8f1289ba97448c 100644 (file)
@@ -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.  */