public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5472] libcpp: Fix ATTR_LIKELY definition PR preprocessor/103355
@ 2021-11-23 16:11 Christophe Lyon
0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2021-11-23 16:11 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:46d3cfd29dc701e1e0d18b0380d6299fce7944f2
commit r12-5472-g46d3cfd29dc701e1e0d18b0380d6299fce7944f2
Author: Christophe Lyon <christophe.lyon@foss.st.com>
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-23 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23 16:11 [gcc r12-5472] libcpp: Fix ATTR_LIKELY definition PR preprocessor/103355 Christophe Lyon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).