diff options
author | Christophe Lyon <christophe.lyon@foss.st.com> | 2021-11-23 16:06:42 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@foss.st.com> | 2021-11-23 16:06:42 +0000 |
commit | 46d3cfd29dc701e1e0d18b0380d6299fce7944f2 (patch) | |
tree | d3a1168e33c1b08aadc0ea1dc078924af475f31c | |
parent | 8632f8c65de6e9f301c2e729eb14b43427031665 (diff) | |
download | gcc-46d3cfd29dc701e1e0d18b0380d6299fce7944f2.tar.gz |
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.
-rw-r--r-- | libcpp/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
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. */ |