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

Improve static address taken function rewriting #447

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

rinon
Copy link
Collaborator

@rinon rinon commented Oct 15, 2024

Handles adding used attribute to functions defined in headers or that begin with a macro expansion.

@rinon rinon requested review from ayrtonm and kkysen October 15, 2024 00:28
@rinon rinon force-pushed the sjc/static_addr_taken_used branch from ce58ae2 to 669f781 Compare October 15, 2024 00:33
rinon added 2 commits October 14, 2024 17:36
Fixes a bug when the static function and its use are in different files (i.e. function definition is in a header).
@rinon rinon force-pushed the sjc/static_addr_taken_used branch from 669f781 to c811095 Compare October 15, 2024 00:37
@rinon
Copy link
Collaborator Author

rinon commented Oct 15, 2024

Weird, on my system the main binary identical name function is called correctly, but in CI it isn't.

@rinon
Copy link
Collaborator Author

rinon commented Oct 15, 2024

I'm disabling the identically named function part of the test. That should be fixed separately, as it is unrelated to this change.

Copy link
Contributor

@ayrtonm ayrtonm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rinon rinon merged commit b503402 into main Oct 17, 2024
34 checks passed
@rinon rinon deleted the sjc/static_addr_taken_used branch October 17, 2024 20:25
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