https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105377

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yes, it is an extension, but if the compiler doesn't recognize it, it shouldn't
do anything with it.  So it is just fine to use it...
Especially when gcc only uses it when the compiler tells it it supports it...
#ifdef __has_cpp_attribute
# if __has_cpp_attribute(likely)
#  define ATTR_LIKELY [[likely]]
# elif __has_cpp_attribute(__likely__)
#  define ATTR_LIKELY [[__likely__]]
# else
#  define ATTR_LIKELY
# endif
#else
# define ATTR_LIKELY
#endif

Reply via email to