Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide private functions with __attribute__((visibility("hidden"))) #19655

Merged
merged 2 commits into from
Jun 18, 2022

Conversation

xenu
Copy link
Member

@xenu xenu commented Apr 21, 2022

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.

@xenu xenu force-pushed the xenu/hidden branch 2 times, most recently from 6a862b9 to 7b2b768 Compare June 18, 2022 04:44
xenu added 2 commits June 18, 2022 07:26
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.
@xenu xenu removed the hasConflicts label Jun 18, 2022
@xenu xenu merged commit 0351a62 into Perl:blead Jun 18, 2022
@xenu xenu deleted the xenu/hidden branch June 18, 2022 06:51
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.

2 participants