Skip to content

Fix typo in __GNUC_PREREQ__ version check#1086

Merged
bgotowal merged 1 commit into
intel:mainfrom
marmitar:fix/gnuc-prereq
Jun 12, 2026
Merged

Fix typo in __GNUC_PREREQ__ version check#1086
bgotowal merged 1 commit into
intel:mainfrom
marmitar:fix/gnuc-prereq

Conversation

@marmitar

Copy link
Copy Markdown
Contributor

__GNUC_MINOR__ was missing a trailing underscore, which prevented __builtin_expect() from being used via __predict_false() in the error path of checked functions like __memcpy_chk(). __builtin_expect is defined from GCC 3 (2001) and Clang 2.2 (2008).

@marmitar

Copy link
Copy Markdown
Contributor Author

@jbdelcuv Just so you know, I can't merge this as don't have write access to the repo. A maintainer must do it.

__GNUC_MINOR__ was missing a trailing underscore, which prevented
__builtin_expect() from being used via __predict_false() in the error
path of checked functions like __memcpy_chk(). __builtin_expect is
defined from GCC 3 (2001) and Clang 2.2 (2008).

Signed-off-by: Tiago de Paula <tiagodepalves@gmail.com>
@bgotowal bgotowal merged commit 870ae2a into intel:main Jun 12, 2026
2 checks passed
@bgotowal

Copy link
Copy Markdown
Contributor

Thanks @marmitar for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants