]> gcc.gnu.org Git - gcc.git/commit
libcpp: Use [[likely]] conditionally
authorMarek Polacek <polacek@redhat.com>
Mon, 22 Nov 2021 16:29:40 +0000 (11:29 -0500)
committerMarek Polacek <polacek@redhat.com>
Tue, 23 Nov 2021 02:43:38 +0000 (21:43 -0500)
commit630686f93f0018fa1ef128aa673fddd302cc83e1
tree26e9d26bbbc8b103e2c8199ce6d818d3f90bae7d
parente888bea2384a0d8d29a6545c4f57f41cb49df0a6
libcpp: Use [[likely]] conditionally

Let's hide [[likely]] behind a macro, to suppress warnings if the
compiler doesn't support it.

Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
PR preprocessor/103355

libcpp/ChangeLog:

* lex.c: Use ATTR_LIKELY instead of [[likely]].
* system.h (ATTR_LIKELY): Define.
libcpp/lex.c
libcpp/system.h
This page took 0.066336 seconds and 5 git commands to generate.