Repository navigation
hide private functions with __attribute__((visibility("hidden"))) - #19655
Merged
Merged
Conversation
khwilliamson
approved these changes
May 3, 2022
xenu
force-pushed
the
xenu/hidden
branch
2 times, most recently
from
June 18, 2022 04:44
6a862b9 to
7b2b768
Compare
Both Perl_peep and Perl_pp_uc are private. Check for Perl_croak instead; it's a part of the public API.
This allows us to enforce API boundaries and potentially enables compiler optimisations. We've been always hiding non-public symbols on Windows. This commit brings that to the other platforms.
freebsd-git
pushed a commit
to freebsd/freebsd-ports
that referenced
this pull request
May 3, 2025
Taken from Perl/perl5#19655: > hide private functions with __attribute__((visibility("hidden"))) > This allows us to enforce API boundaries and potentially enables > compiler optimisations.
camachat
pushed a commit
to camachat/freebsd-ports
that referenced
this pull request
Jul 22, 2026
Taken from Perl/perl5#19655: > hide private functions with __attribute__((visibility("hidden"))) > This allows us to enforce API boundaries and potentially enables > compiler optimisations.
camachat
pushed a commit
to camachat/freebsd-ports
that referenced
this pull request
Jul 24, 2026
Taken from Perl/perl5#19655: > hide private functions with __attribute__((visibility("hidden"))) > This allows us to enforce API boundaries and potentially enables > compiler optimisations.
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.
This allows us to enforce API boundaries and potentially enables
compiler optimisations.
We've been always hiding non-public symbols on Windows. This commit
brings that to the other platforms.
Of course, we're in freeze, so this PR shouldn't be merged until 5.36.0 is released.