Skip to content

Fix typo in __GNUC_PREREQ__ version check#1086

Open
marmitar wants to merge 1 commit intointel:mainfrom
marmitar:fix/gnuc-prereq
Open

Fix typo in __GNUC_PREREQ__ version check#1086
marmitar wants to merge 1 commit intointel:mainfrom
marmitar:fix/gnuc-prereq

Conversation

@marmitar
Copy link

__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
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>
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.

3 participants