Repository navigation
Fix compile error with gcc 9: use of [[unlikely]] - #392
Merged
Merged
Conversation
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
fast_float 8.2.9 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * Remove an else if statement that is always false by @correctmost in fastfloat/fast_float#390 * Remove an unreachable return statement by @correctmost in fastfloat/fast_float#389 * Fix compile error with gcc 9: use of [[unlikely]] by @biojppm in fastfloat/fast_float#392 * reject non-digit wide code units in uint8/uint16 integer fast path by @sahvx655-wq in fastfloat/fast_float#391 ## New Contributors * @correctmost made their first contribution in fastfloat/fast_float#390 * @sahvx655-wq made their first contribution in fastfloat/fast_float#391 **Full Changelog**: https://github.com/fastfloat/fast_float/compare/v8.2.8...v8.2.9</pre> <p>View the full release notes at <a href="https://github.com/fastfloat/fast_float/releases/tag/v8.2.9">https://github.com/fastfloat/fast_float/releases/tag/v8.2.9</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!11380
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gcc 9 (and only 9) advertises availability of
[[unlikely]]but then fails to compile it. Fixed by selectively disabling on gcc 9. With this change, now fast_float compiles in all existing gcc and clang versions.Also, removed the value of 1 from
#define FAST_FLOAT_USE_UNLIKELY_ATTR 1, to avoid erroneous hint to subsequent use of#ifinstead of#ifdef.